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.3.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.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloud189-0.1.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0a7

File hashes

Hashes for cloud189-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c4d0b238df1aca0ea50f5c2dd4d832f6a86535ba17e087244e112a5d114aa881
MD5 e86a39384784dfc30da6297fc5f04e56
BLAKE2b-256 525457a282a0aa73c08986a8dc0bc552b0729da783db3c52aace6e81e5ae0b2e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cloud189-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3252feffa866a52aedc5f44d092e446e5d7828ad9c668b054e70c7cfae893ade
MD5 10b424c99153bbafe7f7fcd73dc2fb1f
BLAKE2b-256 feff3d2f2e34067adef29d9ea906b26f4680cfe42c06550d1c8232d0dc6c9e9d

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