py115j


Namepy115j JSON
Version 0.0.6 PyPI version JSON
download
home_pageNone
SummaryPython SDK for 115 cloud storage service.
upload_time2024-09-18 05:34:30
maintainerNone
docs_urlNone
authorNone
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 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/4d/18/6902991d07b00c47b28553f98784b2a897173e87889be9ab82a55958f741/py115j-0.0.6.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.6",
    "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": "17fe6d2d15d71c98567c73b371a02779f63816167158001e81d840de51e9d578",
                "md5": "45ebb6b9982719e8c6cbabc4ecb55ed1",
                "sha256": "ae16dc39ef14a17ec12929353c45cd9fcc254ac9e65d3d68f143168b49c2d400"
            },
            "downloads": -1,
            "filename": "py115j-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "45ebb6b9982719e8c6cbabc4ecb55ed1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 26224,
            "upload_time": "2024-09-18T05:34:28",
            "upload_time_iso_8601": "2024-09-18T05:34:28.955586Z",
            "url": "https://files.pythonhosted.org/packages/17/fe/6d2d15d71c98567c73b371a02779f63816167158001e81d840de51e9d578/py115j-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d186902991d07b00c47b28553f98784b2a897173e87889be9ab82a55958f741",
                "md5": "3b157410195bdf933f7969d0b59d90f2",
                "sha256": "a57a15be48254561bf0a38ab41ce96d270af3573c348db245a01190fd710f0c4"
            },
            "downloads": -1,
            "filename": "py115j-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "3b157410195bdf933f7969d0b59d90f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 19906,
            "upload_time": "2024-09-18T05:34:30",
            "upload_time_iso_8601": "2024-09-18T05:34:30.959270Z",
            "url": "https://files.pythonhosted.org/packages/4d/18/6902991d07b00c47b28553f98784b2a897173e87889be9ab82a55958f741/py115j-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-18 05:34:30",
    "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"
}
        
Elapsed time: 0.46387s