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

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

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

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

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

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.6-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_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.6.tar.gz.

File metadata

  • Download URL: redc-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 69e4e3cd64afa992e0bb8f40fb1438dce45ccf3a429b710e357960044236aa0c
MD5 8d40b2d08439538381fbb79a96b9a4bc
BLAKE2b-256 f83293620943ca7a1080d98ad7a67d712462d0ce1ed8648a4634271ffe640bd2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.6-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 bb66bcfb859d9859dfd981158f1e4f06096deb47d331c14a13cf0fdcab1063fd
MD5 78573c0171d6c7db36f91ac47b58d95d
BLAKE2b-256 ddd12500e0a3e5f8c1bc954e45ff3cc3b78643762697cb9be55d7a1daee3718e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.6-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e7f92805cf18bf5bbfd7e7a5e25bf46e040e70f5d0d72cfce5f7b4eb824c294e
MD5 c6aabb15a5eb2f53438a77ecf1ab2f0a
BLAKE2b-256 b0d097da37c68e6c237442a0821aa42da866ef4fddde08c7bdfafea23ae266f6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4480a0a930379afac810917a8bc72e52de22e7f43a883101abe7ba99a77fdd73
MD5 65006040e0ec4103c7df17de392349c2
BLAKE2b-256 e52aba586ae142795aeeb772ee4464f4902cf162b3106bac8575a2856c3acc7f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 de3a6e7f9e7cf248264bb98ded787bf8381ade1503fee266eccb4d506fa0642b
MD5 9a842d038511af5867ad59464e5eff00
BLAKE2b-256 73458f0944648ad7a262011c6bf3d4795bf0e8168bb86cebbcf8563e04344754

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.6-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9a0ea59aa26e4f2f5902ca67ccc7f47a58c96357cc4a52fb5890042aed238f94
MD5 d5917d926ad48595303f59e1867e099d
BLAKE2b-256 7e07d6e9b7afa1e863bb6eb9397d280ac4eda92606836aeb9fcfe47358e03f14

See more details on using hashes here.

Provenance

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