Skip to main content

Fast, minimalistic HTTP client using trio.

Project description

Celox – an aiohttp-esque HTTP/1.1 client built with trio

Tests Coverage Status

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

  1. Install celox
pip install celox
  1. 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)
  1. 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

MIT

Project details


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)

Uploaded Source

Built Distribution

celox-0.0.5-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

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

Hashes for celox-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5e5ca7d2f956254a27b374fcb120bf1082660d8286dd4154ed3f1bd6a06b88a3
MD5 3b270b283fc01059c5787fd6abbf2d2d
BLAKE2b-256 7205af8c5f0bee4dd8f9d517ac74d6f0a09aa075a9fea64cad4c54846679caae

See more details on using hashes here.

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

Hashes for celox-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a8a18fb000a001ff30db4bc29aab66f6d836ad8b69c1b1e7c3e1d901e5b1046f
MD5 bb737973dd5492bd2f569297cfb687da
BLAKE2b-256 5ee20cd82429797a604ba04852ff1a33439f3ae89086156ba5f8f6d5b4d46b28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page