A minimalistic, fast and straightforward HTTP/1.1 client built using trio as a backend.
Syntax is similair to aiohttp and requests.
- GET, HEAD, POST, PUT, PATCH, DELETE methods
- HTTP & HTTPS proxies
- Timeouts
- Cookie handling
- Aiohttp-esque response body streaming.
- Disable SSL/TLS verification
- Connection caching
- Install celox
pip install celox
- Have fun 🥳
import trio
import celox
async def main():
async with celox.Client() as client:
async with client.get("https://httpbin.org/") as resp:
body = await resp.read()
print(body)
print(resp)
trio.run(main)
- For more examples take a look here
TODO
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.