Skip to main content

A Python SDK for interacting with Cloud189

Project description

Cloud189

A Python SDK for interacting with Cloud189 (天翼云盘).

Installation

pip install cloud189

Usage

from cloud189 import Cloud189

# Init & Login the client 
client = Cloud189({
    'username': 'your_username',
    'password': 'your_password'
})

# List files
file_list = client.get_all_files(folder_id)

# Download file
download_url = client.download(file_id)

# Upload file
file_id = client.upload(file_path, folder_id, rename)

# Delete file
client.delete(file_id, file_name, is_folder=False)

# Get media play url
media_url = client.get_play_url(file_id)

# Get cloud disk space info 
info = client.get_disk_space_info()

Features

  • Login to Cloud189
  • List files and folders
  • Download files
  • Upload files
  • Delete files/folders
  • Automatic retry mechanism for token expiration
  • Configurable retry count

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

cloud189-0.1.6.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloud189-0.1.6-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file cloud189-0.1.6.tar.gz.

File metadata

  • Download URL: cloud189-0.1.6.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cloud189-0.1.6.tar.gz
Algorithm Hash digest
SHA256 ca99e23eef7e3d46e7059386b26bd0faf8576b6a69d9382e0f6711a96c71a8cf
MD5 a903e34be5f6aca98e0e180c1d25ffaa
BLAKE2b-256 697baa5f9277f9020c6e430e08a0bb243fd5a06afc7b8549218a09be8f1d56e6

See more details on using hashes here.

File details

Details for the file cloud189-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cloud189-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cloud189-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0f3db128d82a40f39a2951d583e515b9f077da1847d8cb3384f66a542522a6
MD5 9a49ceb738cabbf11f967300f8acf6b4
BLAKE2b-256 9dc1fbbc6a881fb23d72cc11b1b432dd2b8bc5ae090084261241027833443cb7

See more details on using hashes here.

Supported by

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