https://github.com/community-of-python/base-client
https://github.com/community-of-python/base-client
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/community-of-python/base-client
- Owner: community-of-python
- Created: 2025-02-27T08:29:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T22:50:34.000Z (over 1 year ago)
- Last Synced: 2025-02-28T06:56:11.909Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Client with Circuit Breaker Integration
Asynchronous HTTP client with Circuit Breaker integration for failure handling and retries.
## Features
- 🚀 **Asynchronous client** based on `httpx.AsyncClient`
- ⚡ **Circuit Breaker integration** [circuit-breaker-box](https://github.com/community-of-python/circuit-breaker-box)
- 🔄 **Automatic retries** [tenacity](https://tenacity.readthedocs.io/en/latest/)
- 📝 **Detailed logging**
- 🛡️ **Flexible response validation**
- 🔧 **Flexible request preparation** supporting all `httpx` parameters
- 🧩 **Customizable response handlers** via inheritance
## Installation
```bash
pip install base-client
```
## Usage
See -> [Examples](examples/)
## Development
### Commands
Use -> [Justfile](Justfile)