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.10.tar.gz (68.9 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.10-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

redc-0.1.10-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.2 MB view details)

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

redc-0.1.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redc-0.1.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.10-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (14.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: redc-0.1.10.tar.gz
  • Upload date:
  • Size: 68.9 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.10.tar.gz
Algorithm Hash digest
SHA256 36f3181bc3adb2f970692ae1ecde9c03a0cae2e3fac1f5796d0f0de02b46fedf
MD5 fad4d35c48db11c5783d462362bc5f67
BLAKE2b-256 79a46607ac5a23904cbf111c698fa3f94d626c292eec1dc302bff2ce7fd379ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.10-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 902900b03c92ab25671e423f1c06763f70741b3ae827d00d2a3353e2980fe62c
MD5 22eee632ffa1c4eea265376395f8657c
BLAKE2b-256 9cf092da732a1faf20697996ffb8e07ab725e57082a9ccba46f2a2557cf3283b

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.10-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.10-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.10-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2f5a774dbaa15ae9b9762b0e3f5b735ccfa1465a31fb7423bfccbeb704961f53
MD5 0651ddc0a94ee8b7df32f2f7ddff4032
BLAKE2b-256 9389d95f314462e5a850d5527e34db239680b61c935ba59972c3047c04bc1633

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.10-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.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.10-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 375460ab5b0f2a2b0bbcbc299f9ec84acd1c572b820030c4e9ca0d7cacc34ada
MD5 b80683a26096e7f78e5de43bba030d86
BLAKE2b-256 5fa52b07fecc7ebfd2c252383e03323b3e5f2e0582d808faf9609f35f831c2d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.10-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.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.10-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2498a01ff90889b937715b7fe0eff1e749cdd8fbf5b800cf6a47cf735ce467d1
MD5 d993f623a6f51993e7ce08ab5cf5e3fc
BLAKE2b-256 c75625e5fe2e234b71cd1a0a9094cee7b878ba8f55e87c57407e9be4314d85d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.10-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.10-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for redc-0.1.10-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 17ca01502f5a309d26ec887267b137e8b5370a3581a3342b30d030a8a491319a
MD5 7f817dada329cf2b6c5f16316913e670
BLAKE2b-256 fadcd3043a1ff0fe018356acda1bc56ad25e96f7db26227293721d343bc8a428

See more details on using hashes here.

Provenance

The following attestation bundles were made for redc-0.1.10-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