Client for Yandex.Disk based on WebDav.
pip install YaDiskClient
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
- For run tests:
- Set Yandex username and password in file YaDiskClient/test_YaDiskClient.py
- python test_YaDiskClient.py