Prod-ready HTTP client with timeout and retries
Project description
fw-http-client
Prod-ready HTTP client with timeouts and retries by default.
Installation
Add as a poetry
dependency to your project:
poetry add fw-http-client
Usage
from fw_http_client import HttpClient
client = HttpClient(client_name="my-app", client_version="1.0")
data = client.get("https://httpbin.org/json")
assert data.slideshow.title == "Sample Slide Show"
Development
Install the project using poetry
and enable pre-commit
:
poetry install
pre-commit install
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file fw_http_client-1.7.2-py3-none-any.whl
.
File metadata
- Download URL: fw_http_client-1.7.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/5.10.197+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf0d635a306b9027f61653377abda5dbd754dce5ac52744d35d3e809fac4cd05 |
|
MD5 | 57e9400e4fc8d8514a21f84e80032988 |
|
BLAKE2b-256 | 6790a73720c4bdd5fe626a148f215dcb54be9d40042b4d55586f0b733dbf20d5 |