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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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