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
  • curl Backend: Leverages the speed and reliability of libcurl 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.1.dev1.tar.gz (61.8 MB 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.1.dev1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

redc-0.1.1.dev1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

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

redc-0.1.1.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redc-0.1.1.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.1.dev1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file redc-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: redc-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 61.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for redc-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 5d3a37dcc9c79cf74eea68886f65ad335f36e3b45239692c975f28dfd3e5b6bb
MD5 5134309c033217dafc6b4aaa33f3dc3c
BLAKE2b-256 68109daaa20fa31519c7b41c810c6525daa75939abb27a3fe050f0536765f356

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 097ff522f52ac505cde37c9d8575b389c06614e9f12df8dcca1c7a7c4d881cd9
MD5 6d562af9baeaf1cd17aee50b2b8ec308
BLAKE2b-256 387da1e74824a9ab2f10f77042a669cd85315f620271ebbf5837d6b1290732a3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa372cb274f991297b71034fae7855451aafbc4438fb8bcb7abd5cb8e47ed7a6
MD5 1cdb59f3357fa89428ea8db855877598
BLAKE2b-256 52bcebfa0f7d148bd9af2d0ff76ac9170f4968b0bf5c30a06fc27a8a180f7f14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c27b2c3bb19318cd0523c6fc4fe84226f42e8ac05401242bcd453ffcd29bbe4
MD5 1a67bc756c106a0d8d9618adccfa329c
BLAKE2b-256 b7125ec0b1de7dafe7602721dfeb3568eb24537a45798c5ac23f25d72a79e100

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09625406d6ea3eb3e2a2863effe2d8a701f19a857f12e4bcd447395868274b61
MD5 73e604ba036ec8ba0202025db24cc10c
BLAKE2b-256 0dafbee3ba44d27968beb450491cf5f33642123541907a99912240faaed91af5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc77d637e4c50ef1bbb41b19237b6fbadcd3dbbb945eb4b4f9d913d946a79adb
MD5 80c9dc78ed0edd82b7ef2a6152f3905d
BLAKE2b-256 215df5985a51538c4bce2a110cc77eae7f5259f9d857b7a950a403d8a8d95050

See more details on using hashes here.

Provenance

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