Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python client library for WebDAV

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.

like image 900
Kamil Kisiel Avatar asked Oct 08 '09 17:10

Kamil Kisiel


People also ask

What is WebDAV client?

WebDAV stands for Web Distributed Authoring and Versioning, which is an extension to HTTP that lets clients edit remote content on the web. In essence, WebDAV enables a web server to act as a file server, allowing authors to collaborate on web content.

What applications use WebDAV?

Microsoft Office, Dreamweaver, Photoshop On Windows, several well-known applications contain integrated WebDAV client functionality, such as Microsoft's Office, Adobe's Photoshop and Dreamweaver programs. They're able to directly open and save to URLs, and tend to make heavy use of WebDAV locks when editing a file.

How do I connect to WebDAV?

Connect to a WebDAV serverIn the Finder on your Mac, choose Go > Connect to Server, enter the address of the server in the Server Address field, then click Connect. Enter the address of the server in the Server Address field. Click Connect.

What is WebDAV server used for?

Briefly: WebDAV stands for "Web-based Distributed Authoring and Versioning". It is a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on remote web servers.


1 Answers

It's sad that for this question ("What Python webdav library to use?"), which for sure interests more than one person, unrelated answer was accepted ("don't use Python webdav library"). Well, common problem on Stackexchange.

For people who will be looking for real answers, and given the requirements in the original question (simple API similar to "os" module), I may suggest easywebdav, which has very easy API and even nice and simple implementation, offering upload/download and few file/dir management methods. Due to simple implementation, it so far doesn't support directory listing, but bug for that was filed, and the author intends to add it.

like image 198
pfalcon Avatar answered Sep 17 '22 21:09

pfalcon