Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 1.78 KB

README.md

File metadata and controls

72 lines (48 loc) · 1.78 KB

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