Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dfranganillo/DavPy

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DavPy

Simple wrapper to work with Basic Auth webdavs. Compatible python 2.6, 2.7, 3

Install

Manual way

python setup.py install

Source code

github

Using API

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")

About

Python wrapper to work with Basic Auth webdavs

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.