Installation
pip install zimran-http
Usage
from zimran.http_client import AsyncHttpClient, HttpClient
# async
async with AsyncHttpClient(service='...') as client:
response = await client.get('/endpoint')
# sync
client = HttpClient(service='...')
response = client.get('/endpoint')
# custom response handler
async def custom_handler(response: httpx.Response):
# your logic with response handler here
...
response = await client.get('/endpoint', response_handler=custom_handler)
Release files for zimran-http 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zimran_http-1.0.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zimran_http-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / zimran_http-1.0.0.tar.gz
| Download URL | zimran_http-1.0.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e446107d745cc9a63086f827f67a3c9034ce6819d08184c436a01096fe33e7b1
|
|
BLAKE2b-256 checksum How to use checksums |
14a05f76a738ad04df26c7fef44d5dd981570a0c310ee39b713db99e2165b205
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / zimran_http-1.0.0-py3-none-any.whl
| Download URL | zimran_http-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd946a52f7ded764f00c11ca97fa6f2501a0df937f4cba9517116fd0b101917e
|
|
BLAKE2b-256 checksum How to use checksums |
12daa6c19f29368e2ca2f9f2be69f24a58cc3d8ad8646bf305be6b7ef2bad2ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|