Simple wrapper to work with Basic Auth webdavs. Compatible python 2.6, 2.7, 3
Manual way
python setup.py install
Source code
davfs = DavPy({
"user": username,
"password": password,
"host": dav host, if empty defaults to webdav.yandex.ru,
"retry_limit": if empty defaults to 3
})
davfs.list(u"/") # list files and folder in root folder at remote server
davfs.sync(u"local folder", u"remote folder for upload files from local folder")
davfs.mkdir(u"path to remote folder, which you need to create")
davfs.download(u"path to remote file which your need to download") #function return file in bytearray
davfs.downloadTo(u"path to remote file which your need to download", u"local path to save file"):
davfs.delete(u"Delete remote file")
davfs.upload(u"path to local file", u"remote path for uploading file")