Python SDK for 115 cloud storage service.
Project description
An API client of 115 cloud storage service.
Install
# Install from PyPI
pip install py115
# Or install from source
pip install git+https://github.com/deadblue/py115.git
Usage
import py115
from py115.types import Credentail
# Connect to cloud
cloud = py115.connect(credential=Credential(
uid='', cid='', seid=''
))
# OR
# cloud = py115.connect(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'
)
Document
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py115j-0.0.7.tar.gz
(19.9 kB
view details)
Built Distribution
py115j-0.0.7-py3-none-any.whl
(26.2 kB
view details)
File details
Details for the file py115j-0.0.7.tar.gz
.
File metadata
- Download URL: py115j-0.0.7.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c974364a9544efa9b861b5ea718c7ada5aa866f3ddd7b3edd94e20847b711a59 |
|
MD5 | 7af640ac4df6479f20a7d351d00b62f3 |
|
BLAKE2b-256 | 954eebc3b27a90efe304cd7fc6d3d0616a9a758b408176cbfa294895752bd76a |
File details
Details for the file py115j-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: py115j-0.0.7-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b83ea673b4f559a0cacbfd08c9dc375ba265d3e7653c798e1af3c1ed7258ca40 |
|
MD5 | 1f4d54b89b91383643effd2212514def |
|
BLAKE2b-256 | f7a1c6e8f03f41569eb36521338c1ad670487dcc3f4f2e36131b98f0106a9616 |