py115


Namepy115 JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryPython SDK for 115 cloud storage service.
upload_time2024-01-18 05:26:02
maintainer
docs_urlNone
author
requires_python>=3.9
licenseMIT 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 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": "",
    "name": "py115",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "115,cloud-storage,sdk",
    "author": "",
    "author_email": "deadblue <public@dead.blue>",
    "download_url": "https://files.pythonhosted.org/packages/3b/37/9aa79b4aa7aac9f4ade93f8279b2764a93c4d38f0cf487d76916cfa477ad/py115-0.0.4.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.4",
    "project_urls": {
        "Documentation": "https://py115.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/deadblue/py115"
    },
    "split_keywords": [
        "115",
        "cloud-storage",
        "sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e9e3fe66d99b232fd4326cac812f9c22d6a7b66c7e0efd8168f1f5f65ad2b7c7",
                "md5": "522544c05117e36fcd3549c239733ee4",
                "sha256": "d8427436e7593d35f0088a9c29f7acf90b825a41ad3df969f8511cbc1e69c541"
            },
            "downloads": -1,
            "filename": "py115-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "522544c05117e36fcd3549c239733ee4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 26139,
            "upload_time": "2024-01-18T05:26:00",
            "upload_time_iso_8601": "2024-01-18T05:26:00.623417Z",
            "url": "https://files.pythonhosted.org/packages/e9/e3/fe66d99b232fd4326cac812f9c22d6a7b66c7e0efd8168f1f5f65ad2b7c7/py115-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b379aa79b4aa7aac9f4ade93f8279b2764a93c4d38f0cf487d76916cfa477ad",
                "md5": "b38ca507ca8694e7009c2d5fa593deb6",
                "sha256": "e3d4bbced58796203ee8cfa707228757943de738ffe2c8b7ce45d37301c06a4d"
            },
            "downloads": -1,
            "filename": "py115-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b38ca507ca8694e7009c2d5fa593deb6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 19716,
            "upload_time": "2024-01-18T05:26:02",
            "upload_time_iso_8601": "2024-01-18T05:26:02.536336Z",
            "url": "https://files.pythonhosted.org/packages/3b/37/9aa79b4aa7aac9f4ade93f8279b2764a93c4d38f0cf487d76916cfa477ad/py115-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-18 05:26:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "deadblue",
    "github_project": "py115",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "lz4",
            "specs": []
        },
        {
            "name": "pycryptodome",
            "specs": [
                [
                    ">=",
                    "3.17.0"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        }
    ],
    "lcname": "py115"
}
        
Elapsed time: 3.39629s