Clent for Yandex.Disk
Project description
YaDiskClient
Client for Yandex.Disk based on WebDav.
Install
pip install YaDiskClient
Source code
Using API
from YaDiskClient.YaDiskClient import YaDisk disk = YaDisk(login, password) 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for YaDiskClient-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c04416dddda1a694ebfb9df0d3a9c7f3f90d34fc84212fb611ead25a6404b7c |
|
MD5 | 25aaac5d4682055845b3bb929e57ab00 |
|
BLAKE2b-256 | 07c2c7a3ee90303a717d19df19433827986b66da4ebf47b5ceb8aa68961d0c22 |