https://github.com/deadblue/py115
A Python API SDK of 115 cloud storage.
https://github.com/deadblue/py115
115 cloud-storage sdk-python
Last synced: 29 days ago
JSON representation
A Python API SDK of 115 cloud storage.
- Host: GitHub
- URL: https://github.com/deadblue/py115
- Owner: deadblue
- License: mit
- Created: 2023-03-29T12:12:52.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-06T15:53:44.000Z (over 1 year ago)
- Last Synced: 2025-12-15T04:38:58.450Z (4 months ago)
- Topics: 115, cloud-storage, sdk-python
- Language: Python
- Homepage:
- Size: 168 KB
- Stars: 38
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PY115
A Python API SDK of 115 cloud storage service.
**Version 0.1.x is under development.**
## Example
```python
from py115 import Cloud
# Connect to cloud
cloud = Cloud(credential={
'UID': 'UID-value-in-cookie',
'CID': 'CID-value-in-cookie',
'KID': 'KID-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