YaDiskClient
Client for Yandex.Disk based on WebDav.
Install
pip install YaDiskClient
Source code
Passwords and tokens
You must use application password, not account password! Details - https://yandex.ru/support/id/authorization/app-passwords.html
Also, you can create OAuth-token for your application. Details - https://yandex.ru/dev/disk/doc/dg/concepts/quickstart.html
Both methods are supported. You should use method set_login or set_token before start.
Using API
from YaDiskClient.YaDiskClient import YaDisk disk = YaDisk() disk.set_auth(login, password) """ Library also supports token authorization via: disk.set_token(token) """ disk.df() # show used and available space disk.ls(path) # list of files/folder with attributes disk.mkdir(path) # create directory disk.rm(path) # remove file or directory disk.cp(src, dst) # copy from src to dst disk.mv(src, dst) # move from src to dst disk.upload(src, dst) # upload local file src to remote file dst disk.download(src, dst) # download remote file src to local file dst disk.publish_doc(path) # return public url disk.hide_doc(path) # remove public url form Yandex Disk
Tests
- For run tests:
Set Yandex username and password in file tests/test_YaDiskClient.py
python -m unittest discover -s tests -t tests
Metadata
Release files for YaDiskClient 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| YaDiskClient-1.0.1.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| YaDiskClient-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / YaDiskClient-1.0.1.tar.gz
| Download URL | YaDiskClient-1.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3c10113f6ab158f4747e5569f5a88e1408bc0c4e8d723d63cda1b5f33efca95
|
|
BLAKE2b-256 checksum How to use checksums |
e8f59ce466d671379f4f3789b27d1b2bc832162e385a30500fd38edb3377098a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / YaDiskClient-1.0.1-py3-none-any.whl
| Download URL | YaDiskClient-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff485644a9599aefb625270b0a934a9b0b83fe06f5546448a5d0fd6eace05f4e
|
|
BLAKE2b-256 checksum How to use checksums |
7a5e39fba7874406bd1915b0406d2fe451c823ef67940b7b5d47aa1bd432a7c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for YaDiskClient 1.0.1
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.