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_user_size_info()

Features

  • Login to Cloud189
  • List files and folders
  • Download files
  • Upload files
  • Delete files/folders

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.4.tar.gz (11.1 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.4-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cloud189-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d2fd6c7babfe631a2a8a533f2aa937def216db6309a802a71ac490fac6edc201
MD5 ec28f9d2e5727835d3d3d13ad5ff6f50
BLAKE2b-256 439d37429d09876d4f9c0ffb275cd781bfa6025b5bb781947a45e8ccd39eac3b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cloud189-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0785185dc7fb8a2f7553d1cdaa8d9476a121e2ca747d106d0af113d9a6520776
MD5 f8ea11e59f62c139cd20226da8d8c4b7
BLAKE2b-256 6d0e45218b05c63603e7260c6b0854ed713ce22013ff5722cc5c5c2feb4a2695

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