Skip to main content

Fast, minimalistic HTTP client using trio.

Project description

celox

Tests Coverage Status

Minimalistic, fast HTTP/1.1 client 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.3.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

celox-0.0.3-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file celox-0.0.3.tar.gz.

File metadata

  • Download URL: celox-0.0.3.tar.gz
  • Upload date:
  • Size: 33.1 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.3.tar.gz
Algorithm Hash digest
SHA256 de88a627375f978873b1ab646c6abdc779c0605b941cac61ae9fb0dffa6d91c7
MD5 b87b410c36c9aadab5482206abab7253
BLAKE2b-256 42ef95865c5f7a1df4831f5b7bf978e057afb485530d5a53df62eca4a53e843e

See more details on using hashes here.

File details

Details for the file celox-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: celox-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 38.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8e032b4e2f2d74d7cbb0f5822601ddc6cf90aad1553a46b4a8c79073d08b6e88
MD5 b7467f7633badad62504bb1576732a62
BLAKE2b-256 5bad42c0531dee2f9d043a11cf42915dd9258af315aff8f4038d5c02bc99ac8a

See more details on using hashes here.

Supported by

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