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.5.tar.gz (68.0 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.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

redc-0.1.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.7 MB view details)

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

redc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redc-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for redc-0.1.5.tar.gz
Algorithm Hash digest
SHA256 aa8a58a7af36c38536a3e1430cde95c6395cec8cc56109434606d53420afa841
MD5 4a284fa9c90f2c4a91274c365f58aa65
BLAKE2b-256 ddfbf9cea257511369a9a628f63bba40bff8d657c37e938d5ec5df0b007fc422

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5.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.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc676ed421ceff565b8a4657639d19db7a280cfe252bb1eb4685bce61c3a7368
MD5 f8d01bf6001e075d9deda3e900ff01c6
BLAKE2b-256 9660d93fff77b962f89b331fc0b5d0e4ca3e59f41df8d6a685f50c9d3ead4560

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_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.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2475778feb65ac17114e6fcb8bb6b0d4142f7690ac9b6614510e265cca0d0b7d
MD5 cd859ef5aa6df4118d0f3f0251394c68
BLAKE2b-256 a02d89eb0c01f3e919a0281544aff987a8135463280a47770a149cc9c281f640

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_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.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ccac0e9ac8fdad9bd9c4ea76438b63e4b52707166d89ea4a0422c10f9c88f64
MD5 a0aa195dbc18570c9ec6af0d904db282
BLAKE2b-256 99f17dca1ff6017ea4845c5a9bdf6a836942c834e4c12eeff9dd3add37e967e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_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.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a044550ef14fafafcd98306f3d6d16b121cc407d66160e7674be72184c7d94ac
MD5 9c34906975d1432b8d2472c6dbc23294
BLAKE2b-256 9920bc313ca933e06da88e9dba12341108c9b2c4f074d22fdf602bcc14bdaa17

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_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.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3559b846666a49669bbcb61bd6876e326108a53354890ef971bee7f2ad928e33
MD5 c9f64650235d9683b38b32e8705b9b57
BLAKE2b-256 2d4335739403e1db991a87cffd3ce094824b48a36d58f0b46fc07ba5fb2902fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_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