Skip to main content

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)

Source distribution for zimran-http 1.0.0
File Size Uploaded
zimran_http-1.0.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zimran-http 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page