I'd like to implement a piece of functionality in my application that uploads and manipulates files on a WebDAV server. I'm looking for a mature Python library that would give an interface similar to the os.*
modules for working with the remote files. Googling has turned up a smattering of options for WebDAV in Python, but I'd like to know which are in wider use these days.
views:
518answers:
3
+2
A:
I don't know of any specifically but, depending on your platform, it may be simpler to mount and access the WebDAV-served files through the file system. There's davfs2 out there and some OS's, like Mac OS X, have WebDAV file system support built in.
Ned Deily
2009-10-09 02:00:54
Yeah, that's certainly another option. If I'm going to be mounting it, I might as well use NFS, but mounting is what I was trying to avoid by using WebDAV in the first place.
Kamil Kisiel
2009-10-09 16:45:03
+1 for the mount solution. This is the Unix way of solving such problems. @Kamil What were your arguments against mounting so you decided to find a WebDAV library?
Andrey Vlasovskikh
2009-10-21 11:18:03
A:
I have no experience with any of these libraries, but the Python Package Index ("PyPi") lists quite a few webdav modules.
dcrosta
2009-10-09 02:16:07
A:
Apparently you're looking for a WebDAV client library.
Not sure how the gazillion hits came up, it seems the following 2 looks relevant:
- PyDAV: http://users.sfo.com/~jdavis/Software/PyDAV/readme.html#client
- Zope - and look for client.py
Gyuri
2009-10-09 18:06:36