746b25d53a2976dca6f18138f00ffa2c499c1817
All checks were successful
Verify Dev Build / publish (push) Successful in 31s
🦀 OxideHTTP
High-performance Python HTTP client. Rust engine (pyreqwest) + HTTPX Interface + Redis-backed Resiliency.
🚀 Features
- GCRA Rate Limiting: Smooth, distributed throttling via Redis.
- Smart Caching: Avoid redundant hits with TTL-based Redis caching.
- Blazing Fast: Core logic offloaded to Rust.
- UV Ready: Optimized for the modern Python ecosystem.
📦 Installation
OxideHTTP is available via our private PyPI index. Configure uv to pull from it:
# Add the index to your project
uv add oxidehttp --index https://git.miwory.dev/api/packages/OxideHTTP/pypi/simple
Alternatively, add it to your pyproject.toml:
[[tool.uv.index]]
name = "OxideHTTP"
url = "https://git.miwory.dev/api/packages/OxideHTTP/pypi/simple"
🛠 Usage
from oxidehttp import OxideClient
async with OxideClient(
base_url="https://api.example.com",
redis_url="redis://localhost:6379",
ratelimit_limit=60, # 60 req/min
ratelimit_key="service-alpha"
) as client:
# This call is cached for 60 seconds
res = await client.get("/data", cache_ttl=60)
json = await res.json()
print(json)
Description
Languages
Python
100%