No project description provided
Project description
from storages import YandexDiskClient
# Замените 'YOUR_ACCESS_TOKEN' на ваш токен Яндекс.Диска
# Замените 'YOUR_ENCRYPTION_KEY' на ваш ключ шифрования
yandex_disk = YandexDiskClient(
"YOUR_ACCESS_TOKEN",
"YOUR_ENCRYPTION_KEY",
)
# Пример загрузки и шифрования файла
local_file = "docker-compose.yaml"
remote_path = "docker-compose.yaml"
yandex_disk.upload_and_encrypt_file(local_file, remote_path)
# Пример дешифрования файла
decrypted_local_file = "docker-compose2.yaml"
yandex_disk.decrypt_file(remote_path, decrypted_local_file)
# Пример получения данных файлов
files = yandex_disk.list_files("/")
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 Distribution
encrypt_storage-0.1.1.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for encrypt_storage-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722d742739ceb4cc1412e3e8f4634be7ddeb32af3fbf21b59b67c354c70b7832 |
|
MD5 | 8fd281ca7c97ebd223d1f2cde1966c92 |
|
BLAKE2b-256 | 48288e77c7a1654e03e578a5a8d5897c0d6b0fd43c49b027de28ddb1c1778eb7 |