Pre-release
This release is a pre-release and may not be stable for production use.
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:
>>> 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:
>>> new_user = my_api.post_users(data={'email': 'someguy@something.com', 'password': 'correct-horse-battery-staple'})
How to install
$ 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.
Metadata
Release files for apiconsumer 1.0.0b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apiconsumer-1.0.0b3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / apiconsumer-1.0.0b3-py2.py3-none-any.whl
| Download URL | apiconsumer-1.0.0b3-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
16e75fb055f0e75f6495641644abc1dd3315e7c9232b0f33678a8162a01d38c2
|
|
BLAKE2b-256 checksum How to use checksums |
28e51d7b61ec3ee657d96fd1e96577771b318525b6cfda9b16b83981a9af166f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |