Skip to main content

Simple wrapper to work with yandex disk using webdav Basic Auth

Project description


Simple wrapper to work with yandex disk using webdav Basic Auth. Compatible python 2.6, 2.7, 3


pip install yandexwebdav


easy_install yandexwebdav

Or manual way

python install

Source code


Using API

conf = Config({ “user”:”<– username –>”, “password”:”<– password –>” })

conf.list(u”/”) # list files and folder in root folder at remote server

conf.sync(u”local folder”, u”remote folder for upload files from local folder”)

conf.mkdir(u”path to remote folder, which you need to create”)”path to remote file which your need to download”) #function return file in bytearray

conf.downloadTo(u”path to remote file which your need to download”, u”local path to save file”):

conf.delete(u”Delete remote file”)

conf.upload(u”path to local file”, u”remote path for uploading file”)

Using interactive tool

$ -h

Usage: [options]


-h, –help show this help message and exit

—list list of files and directories at remote server

–sync synchronize folder

—mkdir create remote folder

–download Download file to localstorage

—delete Delete file from remote server

–upload Upload file from localpath to remote server

-l LOCAL, –local=LOCAL local path

-r REMOTE, –remote=REMOTE remote path


After first execution is appearead interactive configurator. You need to input your yandex name {username}@{|} password, host {} and limit of threads, which used in parralel folder’s sync. Config saves in ~/.yandexwebdavconf

List remote dir

$ –list -r //

05-12-13 00:43 - list /

05-12-13 00:43 - list(0): /

Folder: /test/

File: /test.png

File: /test.mp4

Sync local and remote folders

$ –sync -l /d/share/test -r //test

05-12-13 00:49 - sync /test

05-12-13 00:49 - sync: d:/share/test /test

05-12-13 00:49 - list(0): /test

05-12-13 00:49 - mkdir(0): /test

05-12-13 00:49 - upload(0): d:/share/test.txt /test/test.txt

Create dir

$ –mkdir -r //test1

05-12-13 00:49 - mkdir /test1

05-12-13 00:49 - mkdir(0): /test1

Download file

$ –download -l /d/share/test/test1.txt -r //test/test.txt

05-12-13 00:51 - download d:/share/test/test1.txt //test/test.txt

05-12-13 00:51 - downloadTo(0): //test/test.txt d:/share/test/test1.txt

Delete file

$ –delete -r //test/test.txt

05-12-13 00:52 - delete //test/test.txt

05-12-13 00:52 - delete(0): //test/test.txt

Upload file

$ –upload -l /d/share/test/test.txt -r //test/test.txt

05-12-13 00:53 - upload d:/share/test/test.txt //test/test.txt

05-12-13 00:53 - upload(0): d:/share/test/test.txt //test/test.txt

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yandexwebdav, version 0.2.11
Filename, size File type Python version Upload date Hashes
Filename, size yandexwebdav-0.2.11.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page