views:

518

answers:

3

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.

+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
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
+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
A: 

I have no experience with any of these libraries, but the Python Package Index ("PyPi") lists quite a few webdav modules.

dcrosta
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:

Gyuri