apiconsumer-1.0.0b3
توضیحات
Lightweight requests wrapper for REST API calls
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | apiconsumer-1.0.0b3 |
| نام | apiconsumer |
| نسخه کتابخانه | 1.0.0b3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marko Stanojkovic |
| ایمیل نویسنده | marko@saberr.com |
| آدرس صفحه اصلی | https://github.com/saberr/apiconsumer |
| آدرس اینترنتی | https://pypi.org/project/apiconsumer/ |
| مجوز | BSD 3-Clause |
APICONSUMER: A super lightweight REST API requests wrapper
==========================================================
Following the same philosophy of Requests module (REST) ApiConsumer is here to make your life easier.
Are you lazy enough to configure authentication for every single request? How about handling errors? Wouldn't it be
great if all that could be done in 2 lines?
How to use
----------
Behold the power of ApiConsumer:
.. code-block:: python
>>> from apiconsumer import ApiConsumer
>>> my_api = ApiConsumer(url='https://myapi.com', extra_headers={'Authorization': 'JWT mytoken'})
>>> users = my_api.get_users()
Making POST request is also easy:
.. code-block:: python
>>> new_user = my_api.post_users(data={'email': 'someguy@something.com', 'password': 'correct-horse-battery-staple'})
How to install
--------------
.. code-block:: bash
$ pip install apiconsumer
Contribute
----------
Be our guest. We'd like to see your awesome ideas. Just fork the repo, create a branch and create pull request.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.18.4 | requests |
نحوه نصب
نصب پکیج whl apiconsumer-1.0.0b3:
pip install apiconsumer-1.0.0b3.whl
نصب پکیج tar.gz apiconsumer-1.0.0b3:
pip install apiconsumer-1.0.0b3.tar.gz