Metadata-Version: 2.1
Name: YaDiskClient
Version: 0.5.0
Summary: Clent for Yandex.Disk
Home-page: https://github.com/TyVik/YaDiskClient
Author: TyVik
Author-email: tyvik8@gmail.com
License: MIT
Keywords: Yandex.Disk,webdav,client,python,Yandex
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python
Classifier: Topic :: Internet
Classifier: Topic :: Utilities
Classifier: Topic :: System :: Archiving :: Backup
License-File: LICENSE
Requires-Dist: requests

YaDiskClient
============

.. image:: https://travis-ci.org/TyVik/YaDiskClient.svg?branch=master
    :target: https://travis-ci.org/TyVik/YaDiskClient?branch=master
.. image:: https://coveralls.io/repos/github/TyVik/YaDiskClient/badge.svg?branch=master
    :target: https://coveralls.io/github/TyVik/YaDiskClient?branch=master
.. image:: https://img.shields.io/pypi/pyversions/YaDiskClient.svg
    :target: https://pypi.python.org/pypi/YaDiskClient/
.. image:: https://img.shields.io/pypi/v/YaDiskClient.svg
    :target: https://pypi.python.org/pypi/YaDiskClient/
.. image:: https://img.shields.io/pypi/status/YaDiskClient.svg
    :target: https://pypi.python.org/pypi/YaDiskClient/
.. image:: https://img.shields.io/pypi/l/YaDiskClient.svg
    :target: https://pypi.python.org/pypi/YaDiskClient/

Client for Yandex.Disk based on WebDav.

Install
=======

    pip install YaDiskClient

Source code
===========

    `github <https://github.com/TyVik/YaDiskClient>`_

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:
    1. Set Yandex username and password in file tests/test_YaDiskClient.py
    2. python -m unittest discover -s tests -t tests


