Skip to main content

yandex-disk-webdav

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

Install

pip install yandexwebdav

Or

easy_install yandexwebdav

Or manual way

python setup.py install

Source code

github

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

conf.download(u”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

$ ydw.py -h

Usage: ydw.py [options]

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

Example

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

List remote dir

$ ydw.py –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

$ ydw.py –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

$ ydw.py –mkdir -r //test1

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

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

Download file

$ ydw.py –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

$ ydw.py –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

$ ydw.py –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

Metadata

Release files for yandexwebdav 0.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yandexwebdav 0.2.11
File Size Uploaded Provenance Actions
yandexwebdav-0.2.11.tar.gz 7.1 kB Without provenance Details for yandexwebdav-0.2.11.tar.gz

Release files / yandexwebdav-0.2.11.tar.gz

Download URL yandexwebdav-0.2.11.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
712166290fc412f01c7e665896072ec2e540285d747013209d62a71c55a27739
BLAKE2b-256 checksum
How to use checksums
8b615eda55dc50d4b96d7a1d818289af3f3380a1ce69bbea487712955e28688f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for yandexwebdav 0.2.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.11 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page