Go to file
Ciaran Gultnieks 8159e85172 Allow an auth object to be passed when connecting
This means other authentication methods can be used, e.g. digest
or NTLM, by simply constructing one of the relevant auth objects
supplied with the Requests library.
2012-11-13 08:59:46 +00:00
easywebdav Allow an auth object to be passed when connecting 2012-11-13 08:59:46 +00:00
.gitignore Added .gitignore 2012-03-11 11:52:41 +02:00
LICENSE Initial commit 2012-03-08 14:32:06 +02:00
README.md Update README re directory listing 2012-11-13 08:54:26 +00:00
REQUESTS_LICENSE Initial commit 2012-03-08 14:32:06 +02:00
setup.py Added homepage to setup.py 2012-03-12 13:32:53 +02:00

README.md

EasyWebDAV: A WebDAV Client in Python

Features

  • Basic authentication
  • Creating directories, removing directories and files
  • Uploading and downloading files
  • Directory listing

Installation

Install using distribute:

easy_install easywebdav

Quick Start

import easywebdav
# Start off by creating a client object. Username and
# password may be omitted if no authentication is needed.
webdav = easywebdav.connect('webdav.your-domain.com', username='myuser', password='mypass')
# Do some stuff:
webdav.mkdir('some_dir')
webdav.rmdir('another_dir')
webdav.download('remote/path/to/file', 'local/target/file')
webdav.upload('local/path/to/file', 'remote/target/file')

Client object API

The API is pretty much self-explanatory:

cd(path)
mkdir(path, safe=False)
mkdirs(path)
rmdir(path, safe=False)
delete(file_path)
upload(local_path, remote_path)
download(remote_path, local_path)