Metadata-Version: 2.0
Name: pyopenload
Version: 0.5
Summary: Python wrapper for openload.co API
Home-page: https://github.com/mohan3d/PyOpenload
Author: Mohaned Magdy
Author-email: mohan3d94@gmail.com
License: MIT
Keywords: openload,wrapper,api,api client
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: requests (>=2.18.3)

PyOpenload |StarButton|
=======================

python wrapper for `Openload.co`_ `API`_.

|pypi| |format| |CodacyBadge| |license|

Install
-------

.. code-block:: bash

    $ pip install pyopenload


Usage
-----

All `API`_ features are implemented.

**Retrieve account info**

.. code:: python

    from openload import OpenLoad

    openload = OpenLoad('login', 'key')

    account_info = openload.account_info()
    print(account_info)


**Upload file**

.. code:: python

    from openload import OpenLoad

    openload = OpenLoad('login', 'key')

    uploaded_file_info = openload.upload_file('/home/username/file.txt')
    print(uploaded_file_info)


**Retrieve file info**

.. code:: python

    from openload import OpenLoad

    openload = OpenLoad('login', 'key')

    # Random file id.
    file_id = 'YMTqhQAuzVX'

    file_info = openload.file_info(file_id)
    print(file_info)

Documentation
-------------

documentation is available at https://pyopenload.readthedocs.io/.

.. _Openload.co: https://openload.co
.. _API: https://openload.co/api

.. |StarButton| image:: https://img.shields.io/github/stars/mohan3d/pyopenload.svg?style=social&label=Star&maxAge=3600
    :target: https://github.com/mohan3d/PyOpenload

.. |pypi| image:: https://img.shields.io/pypi/v/pyopenload.svg?maxAge=3600&style=flat-square
    :target: https://pypi.python.org/pypi/pyopenload

.. |format| image:: https://img.shields.io/pypi/format/pyopenload.svg?maxAge=3600&style=flat-square
    :target: https://pypi.python.org/pypi/pyopenload

.. |CodacyBadge| image:: https://img.shields.io/codacy/grade/42d0f198fcbe43daae71e21b6a3540fe.svg?maxAge=3600&style=flat-square
    :target: https://www.codacy.com/app/mohan3d94/PyOpenload?utm_source=github.com&utm_medium=referral&utm_content=mohan3d/PyOpenload&utm_campaign=badger

.. |license| image:: https://img.shields.io/pypi/l/pyopenload.svg?maxAge=3600&style=flat-square
    :target: https://choosealicense.com/licenses/mit/

