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.11.tar.gz (69.7 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.11-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

redc-0.1.11-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

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

redc-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redc-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redc-0.1.11-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: redc-0.1.11.tar.gz
  • Upload date:
  • Size: 69.7 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.11.tar.gz
Algorithm Hash digest
SHA256 549803b7ec2c9075ff2be6472d6e664b06f4523ff0d29977f621130081434d4f
MD5 602f52cd400da655c746f42b7628900b
BLAKE2b-256 4556d62f4930b9d4941b634736cfac595f002dc9fbe8a31839b54f51f3a82e9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.11-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c99b85fabcf6037f674cc2e71ee9dfbb5d08c07516143696d3267a9587f16c50
MD5 6067d4cfe39fa2c41e96e7a608de99a5
BLAKE2b-256 6732c807290e41ad8f7a0cf4ac94f7e5276abdce6b9d4d2e5916267fa9924a61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.11-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 859b7453a03a687b8cfcc82f5625180b409b802ac50a6c09bf270efdfdb5765d
MD5 855a74a5d9927cba5093c0f3b1e7ab38
BLAKE2b-256 d2dd68d680ec8bb5321cdfd735752748cf10ad4a9dd9ce29d9a7d7c2c75152d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.11-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 644e763c7ffef17d7d3177817905ca4ca2fbb5a94cc0a16ef99ca8547487dd5c
MD5 5a45f4b52afbdf7f5510e447ab6b75f2
BLAKE2b-256 c65d8824a2582e5abcc366415f034a0dd4201b11cc4055b0e1f4c86aa58a6b3c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.11-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7dba248ba63f79811c3faf492ac47e507508b8974f03c6ac1efa6cbd37553ccc
MD5 3d4e68c5c650dde7984d51aecacaa036
BLAKE2b-256 9472b154b2ded4c4de1e4468e966acedd62305279d9f81b6ec1bed4d20045643

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.11-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 24ac7595f674209344662cfe8bad6b82174129c464288d5f8deea6fc3410e9a1
MD5 daedc9eb13822cffa3c2c01d6e9419c8
BLAKE2b-256 9436bc1ca73b28e3af6b08c0326590506a50bb5a5ca70b9c12ab8163d700d7a8

See more details on using hashes here.

Provenance

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