764 shaares
94 liens privés
94 liens privés
EasyWebDAV2: Is a fork of EasyWebDAV library with included pull requests and some additional fixes. A WebDAV Client in Python
Features
- Basic authentication
- Creating directories, removing directories and files
- Uploading and downloading files
- Directory listing
- Support for client side SSL certificates
Quick Start
import easywebdav2
# Start off by creating a client object. Username and
# password may be omitted if no authentication is needed.
webdav = easywebdav2.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')