Skip to main content

yydiskarc: a command-line tool to backup documents from Yandex.Disk public resources

Project description

ydiskarc (pronounced Ai-disk-arc) is a command line tool used to backup Yandex.Disk public resources. Public resources are opnly shared files and folders from Yandex.Disk service. Yandex provides free-to-use API that allow to download the data.

1 Main features

  • Metadata extraction

  • Download any public resource file or directory

2 Installation

2.1 Any OS

A universal installation method (that works on Windows, Mac OS X, Linux, …, and always provides the latest version) is to use pip:

# Make sure we have an up-to-date version of pip and setuptools:
$ pip install --upgrade pip setuptools

$ pip install --upgrade ydiskarc

(If pip installation fails for some reason, you can try easy_install ydiskarc as a fallback.)

2.2 Python version

Python version 3.6 or greater is required.

3 Usage

Synopsis:

$ ydiskarc [command] [flags]

See also python -m ydiskarc and ydiskarc [command] --help for help for each command.

4 Commands

4.1 Sync command

Synchronizes files and metadata from public resource of directory type to the local directory.

Extracts all files and metadata from “https://disk.yandex.ru/d/VVNMYpZtWtST9Q” resource to the dir “mos9maystyle”

$ ydiskarc sync --url https://disk.yandex.ru/d/VVNMYpZtWtST9Q -o mos9maystyle

4.2 Full command

Downloads single file or directory. Single file downloaded with original file format. Directory downloaded as ZIP file with all files inside.

Downloads file from url “https://disk.yandex.ru/i/t_pNaarK8UJ-bQ” and saves it into folder “files” with metadata saved as “_metadata.json”

$ ydiskarc full --url https://disk.yandex.ru/i/t_pNaarK8UJ-bQ -o files -v -m

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ydiskarc-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file ydiskarc-1.0.1.tar.gz.

File metadata

  • Download URL: ydiskarc-1.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for ydiskarc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0543c9a58b255db7ddbc204e6c6b0ec1401649393a4363ddfc94d998cb9f340d
MD5 a50f8f62576c972791a7f1fb3256e711
BLAKE2b-256 e48c89bf8e3ebda45a6fd2dd345c377be9c6fbf2d006cbd848934dddda817668

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page