Skip to main content

RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library

Project description

Version CURL version Downloads

RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library. It provides a simple and intuitive interface for making HTTP requests and handling responses

Features

  • Asynchronous by Design: Built with asyncio for non-blocking HTTP requests
  • HTTP/2 Support: Fully compatible with HTTP/2 for faster and more efficient communication
  • curl Backend: Leverages the speed and reliability of curl for HTTP operations
  • Streaming Support: Stream large responses with ease using callback functions
  • Proxy Support: Easily configure proxies for your requests

Installation

You can install RedC via pip:

pip install redc

Quick Start

import asyncio
from redc import Client

async def main():
    async with Client(base_url="https://jsonplaceholder.typicode.com") as client:
        # Make a GET request
        response = await client.get("/posts/1")
        response.raise_for_status()
        print(response.status_code)  # 200
        print(response.json())  # {'userId': 1, 'id': 1, 'title': '...', 'body': '...'}

        # Make a POST request with JSON data
        response = await client.post(
            "/posts",
            json={"title": "foo", "body": "bar", "userId": 1},
        )
        response.raise_for_status()
        print(response.status_code)  # 201
        print(response.json())  # {'id': 101, ...}

asyncio.run(main())

License

MIT LICENSE

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

redc-0.1.12.tar.gz (69.8 kB view details)

Uploaded Source

Built Distributions

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

redc-0.1.12-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

redc-0.1.12-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

redc-0.1.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redc-0.1.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file redc-0.1.12.tar.gz.

File metadata

  • Download URL: redc-0.1.12.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for redc-0.1.12.tar.gz
Algorithm Hash digest
SHA256 b3e7d1f913f04145f292e329b2cec2989477b2bb41bf96936f2dc57a7913a66e
MD5 c82758b3fb354779a09e86d0c13a250f
BLAKE2b-256 0197eae3d2c31f9bc6f6633b00ddf45bac1168cbf392c301873de49789e59ecd

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12.tar.gz:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redc-0.1.12-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.12-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a51ebfc4d35559b42e5ad2acbb470a8bb2474fa3ecb6b058a846dfeb10de753e
MD5 74256d65a337077e7097c367f31fbc6e
BLAKE2b-256 c08f710164b505e51f31d9194b70ae1a23ae16319b12998173899c67aaa10b7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redc-0.1.12-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.12-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 6887be6b8452dc6581feccee17e81d8c9648a253014ae1ed071171296521e097
MD5 97a5fdc148b6c368fc43d5bc26a18607
BLAKE2b-256 1730d8806026e8259dad334adf937098d7848f6e1bf50fe07edac1b7b0089de3

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redc-0.1.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 da96d5ec5b22dd24e6254f03b93c956b244fd651c77494097411090bcc4f30cc
MD5 7cc856e56ce6e8b9e003a8cf6032abb5
BLAKE2b-256 53344316f808a4cf1f8de08e2b281d4422c24849af962ae245bc7592ea8bb57a

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redc-0.1.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 287ae99b5fc34090fee8dd9069f6713baca2b2e353f02e624f4a1d05f0206945
MD5 19cbd1ac5b60ea54701a7d3c231186f5
BLAKE2b-256 7b6caf9f44a03e4ae9cd87a21665988061e519d3dc2b69ed33e4b03e147f04c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file redc-0.1.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 56c3a2e213c09ef3f32afd3dd6ea74618bb1f74f4cf55e8303532755bbd958df
MD5 6b8c70ca857dbc6b41bf93958e16aaae
BLAKE2b-256 9a014b02aa4237600f4d3d560e03d713288d06883b5acc66b31c79bb2e6782fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.12-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: build_wheels.yml on AYMENJD/redc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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