Skip to main content

Python SDK for 115 cloud storage service.

Project description

An API client of 115 cloud storage service.

Install

pip install git+https://github.com/deadblue/py115.git

Example

import py115
from py115.types import Credentail

# Connect to cloud
cloud = py115.connect(
    credential=Credential(
        uid='', cid='', seid=''
    )
)

# Get storage service
storage = cloud.storage()
# Get file list under root directory
for file in storage.list(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_url(
    'magnet:?xt=urn:btih:000123456789abcdef1151150123456789abcdef',
    'ed2k://|file|ED2k-file|115115115|1234567890abcdef1234567890abcdef|/',
    'https://dl.some-server.com/some/file.ext'
)

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.0.1.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

py115-0.0.1-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

Supported by

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