Name | py115j JSON |
Version |
0.0.7
JSON |
| download |
home_page | None |
Summary | Python SDK for 115 cloud storage service. |
upload_time | 2024-09-25 23:54:20 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | MIT License Copyright 2023 deadblue Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
115
cloud-storage
sdk
|
VCS |
|
bugtrack_url |
|
requirements |
httpx
lz4
pycryptodome
pytz
requests
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
=====
PY115
=====
An API client of 115 cloud storage service.
Install
=======
.. code:: shell
# Install from PyPI
pip install py115
# Or install from source
pip install git+https://github.com/deadblue/py115.git
Usage
=====
.. code:: python
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
========
https://py115.readthedocs.io/en/stable/
License
=======
MIT
Raw data
{
"_id": null,
"home_page": null,
"name": "py115j",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "115, cloud-storage, sdk",
"author": null,
"author_email": "deadblue <public@dead.blue>",
"download_url": "https://files.pythonhosted.org/packages/95/4e/ebc3b27a90efe304cd7fc6d3d0616a9a758b408176cbfa294895752bd76a/py115j-0.0.7.tar.gz",
"platform": null,
"description": "=====\nPY115\n=====\n\nAn API client of 115 cloud storage service.\n\nInstall\n=======\n\n.. code:: shell\n\n # Install from PyPI\n pip install py115\n\n # Or install from source\n pip install git+https://github.com/deadblue/py115.git\n\n\nUsage\n=====\n\n.. code:: python\n\n import py115\n from py115.types import Credentail\n\n # Connect to cloud\n cloud = py115.connect(credential=Credential(\n uid='', cid='', seid=''\n ))\n # OR\n # cloud = py115.connect(credential={\n # 'UID': '',\n # 'CID': '',\n # 'SEID': '',\n #})\n\n # Get storage service\n storage = cloud.storage()\n # Get file list under root directory\n for file in storage.list(dir_id='0'):\n print('File: %r' % file)\n\n # Get offline service\n offline = cloud.offline()\n # Get task list\n for task in offline.list():\n print('Task: %r' % task)\n # Add task by download URLs\n offline.add_url(\n 'magnet:?xt=urn:btih:000123456789abcdef1151150123456789abcdef',\n 'ed2k://|file|ED2k-file|115115115|1234567890abcdef1234567890abcdef|/',\n 'https://dl.some-server.com/some/file.ext'\n )\n\n\nDocument\n========\n\nhttps://py115.readthedocs.io/en/stable/\n\n\nLicense\n=======\n\nMIT\n",
"bugtrack_url": null,
"license": "MIT License Copyright 2023 deadblue Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Python SDK for 115 cloud storage service.",
"version": "0.0.7",
"project_urls": {
"Documentation": "https://py115.readthedocs.io/en/latest/",
"Homepage": "https://github.com/jxxghp/py115"
},
"split_keywords": [
"115",
" cloud-storage",
" sdk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f7a1c6e8f03f41569eb36521338c1ad670487dcc3f4f2e36131b98f0106a9616",
"md5": "1f4d54b89b91383643effd2212514def",
"sha256": "b83ea673b4f559a0cacbfd08c9dc375ba265d3e7653c798e1af3c1ed7258ca40"
},
"downloads": -1,
"filename": "py115j-0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1f4d54b89b91383643effd2212514def",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 26215,
"upload_time": "2024-09-25T23:54:17",
"upload_time_iso_8601": "2024-09-25T23:54:17.668610Z",
"url": "https://files.pythonhosted.org/packages/f7/a1/c6e8f03f41569eb36521338c1ad670487dcc3f4f2e36131b98f0106a9616/py115j-0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "954eebc3b27a90efe304cd7fc6d3d0616a9a758b408176cbfa294895752bd76a",
"md5": "7af640ac4df6479f20a7d351d00b62f3",
"sha256": "c974364a9544efa9b861b5ea718c7ada5aa866f3ddd7b3edd94e20847b711a59"
},
"downloads": -1,
"filename": "py115j-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "7af640ac4df6479f20a7d351d00b62f3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 19944,
"upload_time": "2024-09-25T23:54:20",
"upload_time_iso_8601": "2024-09-25T23:54:20.281608Z",
"url": "https://files.pythonhosted.org/packages/95/4e/ebc3b27a90efe304cd7fc6d3d0616a9a758b408176cbfa294895752bd76a/py115j-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-25 23:54:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jxxghp",
"github_project": "py115",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "httpx",
"specs": [
[
"~=",
"0.27.0"
]
]
},
{
"name": "lz4",
"specs": []
},
{
"name": "pycryptodome",
"specs": [
[
">=",
"3.17.0"
]
]
},
{
"name": "pytz",
"specs": []
},
{
"name": "requests",
"specs": []
}
],
"lcname": "py115j"
}