Skip to content

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

License

Notifications You must be signed in to change notification settings

418Coffee/celox

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages