Skip to main content

Python SDK for 115 cloud storage service.

Project description

PY115

A Python API SDK of 115 cloud storage service.

Version 0.1.x is under development.

Example

from py115 import Cloud

# Connect to cloud
cloud = Cloud(credential={
    'UID':  'UID-value-in-cookie',
    'CID':  'CID-value-in-cookie',
    'SEID': 'SEID-value-in-cookie',
})

# Get storage service
storage = cloud.storage()
# Get file list under root directory
for file in storage.list_files(dir_id='0'):
    print('File: %r' % file)

# Get offline service
offline = cloud.offline()
# Get task list
for task in offline.list():
    print('Task: %r' % task)
# Add task by download URLs
offline.add_urls(
    'magnet:?xt=urn:btih:000123456789abcdef1151150123456789abcdef',
    'ed2k://|file|ED2k-file|115115115|1234567890abcdef1234567890abcdef|/',
    'https://dl.some-server.com/some/file.ext'
)

License

MIT

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

py115-0.1.1.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

py115-0.1.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file py115-0.1.1.tar.gz.

File metadata

  • Download URL: py115-0.1.1.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for py115-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98dfb49bbd64bfa399e049401e97ebfc3943f08f2189bb2924129e29ef5001dd
MD5 9d91798a19a7c0ddd99cbffabe53fa9d
BLAKE2b-256 f86b050bfb258359930c1aa72cb82c9a969949b608b5ba5d1caa1bf5c7091cee

See more details on using hashes here.

Provenance

The following attestation bundles were made for py115-0.1.1.tar.gz:

Publisher: pypi.yml on deadblue/py115

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py115-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py115-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for py115-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6898f45bb33b20597643278bfca62df6df378ae2512496f49843b6d163181f1
MD5 503446aaf0968293d62a4158e7fc1551
BLAKE2b-256 c9b118ebb6e372ac195e8a4cfd99ea15535aa32208be780eb97dbd6bba1676a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for py115-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on deadblue/py115

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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