apirequests-0.0.8
توضیحات
HTTP client built around "requests" library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | apirequests-0.0.8 |
| نام | apirequests |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | san4ez |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/alexandr-san4ez/apirequests |
| آدرس اینترنتی | https://pypi.org/project/apirequests/ |
| مجوز | MIT |
apirequests
===========
Implements a more convenient interface for constructing API to HTTP
resources.
Features
--------
- The ability to specify a ``host`` and use relative links;
- The choice between: checking the status of the response and raises
exceptions (``silent`` parameter);
- It is based on `requests`_ and supports all its interfaces;
- is will be more...
Install
-------
``pip install apirequests``
Usage
-----
.. code:: python
import apirequests
class GitHub(apirequests.Client):
silent = False
def __init__(self):
super(GitHub, self).__init__('https://api.github.com/')
github = GitHub()
print(github.get('zen').text)
print(github.get('users/defunkt').json())
.. _requests: https://github.com/requests/requests
نحوه نصب
نصب پکیج whl apirequests-0.0.8:
pip install apirequests-0.0.8.whl
نصب پکیج tar.gz apirequests-0.0.8:
pip install apirequests-0.0.8.tar.gz