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.8.tar.gz (68.3 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.8-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.8-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.8-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.8-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.8-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.8.tar.gz.

File metadata

  • Download URL: redc-0.1.8.tar.gz
  • Upload date:
  • Size: 68.3 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.8.tar.gz
Algorithm Hash digest
SHA256 133ed1c8932e7447aabc32f9da8ed294ad7364c69b2d54e1bc8e56301fc68022
MD5 a71982ebd289cb2c92c07591d7802458
BLAKE2b-256 d2d724f7df72476a8bcc0996048e9f99fc35b5f0f6e8c9d1329de99cd471cdfb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.8-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 86eded63d7f13c9092bc619b3163fc196424bfc890de2ae768f47fbd2ef30675
MD5 f4e93536dd34a61dfb6191f251ac3fb4
BLAKE2b-256 a8bd91bcf03d2c4cb233dce2abaef7d64e8c89d9088782a24860bc8b17f3f9e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.8-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5c4b68d9409876fe251f474e68695c535623bf336d07a571a32db8e2adde02ba
MD5 522ae760abab6a91f5be0fa25ace0513
BLAKE2b-256 9f48ae9a938b9fc2cb9fcb55fd86c6fb214def9dd8ee5f64f4059c8b2b2e28d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1121ab00dc6a0550d6fca8c5d07f91c53909ab90ce68515890d1284c6af65b2b
MD5 2c5258a46b296773cbf53883c5fb4e7f
BLAKE2b-256 8296b7bb5d178b35cd920de52aca43865074d20ae5767c80871bcb75bc888d37

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 87cddeb7247f5eb579326079bd1d25afa3d77150a7b90236780b040d89f05143
MD5 4be2310dfc90e7183d72c5d61e732c2e
BLAKE2b-256 2474cbb1022c92af1a0554b49096c3eb71d13d98429ce2c57108cf0e3d8ae6cd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.8-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5790e4164428f2b5fbaf335ca061994a145882201be5b1f60caed4d23e626af6
MD5 bc4d5b41d2a1590fbbc36fcf32bd9896
BLAKE2b-256 b4b111e5b954b411e8690aed3df3eb45b94c49557dec12aee96b39248975ed02

See more details on using hashes here.

Provenance

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