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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloud189-0.1.5.tar.gz
  • Upload date:
  • Size: 11.0 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.5.tar.gz
Algorithm Hash digest
SHA256 0f677036e194c96c3a29c7a47aa45457cc7b6845a7a517d2c7e823cee3670a16
MD5 cd67c191cdc255c6110b8f96171f69b7
BLAKE2b-256 c19d2906cd7594a8c6d4f492e4e0e4d8662a1802c74e197163ec74399c7bc5f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cloud189-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 64bcaebd32ea13f8d6264d60a879d0e7582f13fd88d45338b6cfd37ba434c28e
MD5 b01c6dc457b5e0facb56c0f4880cf808
BLAKE2b-256 151586012e39a72109bf2b8578fb9540a7760206079e8881a765cbbc2d99d64a

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