Metadata-Version: 2.1
Name: py115j
Version: 0.0.6
Summary: Python SDK for 115 cloud storage service.
Author-email: deadblue <public@dead.blue>
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.
Project-URL: Homepage, https://github.com/jxxghp/py115
Project-URL: Documentation, https://py115.readthedocs.io/en/latest/
Keywords: 115,cloud-storage,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE

=====
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
