Fast, minimalistic HTTP client using trio.
Project description
Celox – an aiohttp-esque HTTP/1.1 client built with trio
A minimalistic, fast and straightforward HTTP/1.1 client built using trio as a backend.
Syntax is similair to aiohttp and requests.
Features
- GET, HEAD, POST, PUT, PATCH, DELETE methods
- HTTP & HTTPS proxies
- Timeouts
- Cookie handling
- Aiohttp-esque response body streaming.
- Disable SSL/TLS verification
- Connection caching
Table of contents
Quickstart
- 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
API Overview
TODO
Dependencies
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
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 Distribution
celox-0.0.5.tar.gz
(34.0 kB
view details)
Built Distribution
celox-0.0.5-py3-none-any.whl
(39.3 kB
view details)
File details
Details for the file celox-0.0.5.tar.gz
.
File metadata
- Download URL: celox-0.0.5.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5ca7d2f956254a27b374fcb120bf1082660d8286dd4154ed3f1bd6a06b88a3 |
|
MD5 | 3b270b283fc01059c5787fd6abbf2d2d |
|
BLAKE2b-256 | 7205af8c5f0bee4dd8f9d517ac74d6f0a09aa075a9fea64cad4c54846679caae |
File details
Details for the file celox-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: celox-0.0.5-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8a18fb000a001ff30db4bc29aab66f6d836ad8b69c1b1e7c3e1d901e5b1046f |
|
MD5 | bb737973dd5492bd2f569297cfb687da |
|
BLAKE2b-256 | 5ee20cd82429797a604ba04852ff1a33439f3ae89086156ba5f8f6d5b4d46b28 |