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.dev2.tar.gz (61.9 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.dev2-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.dev2-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.dev2-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.dev2-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.dev2-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.dev2.tar.gz.

File metadata

  • Download URL: redc-0.1.1.dev2.tar.gz
  • Upload date:
  • Size: 61.9 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.dev2.tar.gz
Algorithm Hash digest
SHA256 85db8b8a3bb76a80a10c20bc3a756e849f61d654031fa621bdc7a338e57ca443
MD5 0e715284062f50b4d5becbf7bc764a04
BLAKE2b-256 1cc5d985f3a712cfe42f225081f3fa4a8d156d1cf8232d8526996809c59b1454

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b21df6aa4fbc890d02fa04911b2ecba15b3ad1f336a2457da2b7f21e12340b2
MD5 5521c148d1cb28f3f29481717e2292f4
BLAKE2b-256 dcbf872c94d1ac496e6d0f38cc74a50d2c14ca4cf251a403563aef380799b97d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev2-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6bb088d8106f1f8fb4a469edfd5d6b24a8070b6e2d2dc8a6db79815bf08209ee
MD5 5a73fcb2e194c8bdecdc32349684c4ea
BLAKE2b-256 a670880df23447ace4b67d0f7e67402b32c6cfa034b074e80a97a0cfa5585485

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70fdb8a3517236640c9bd51a3ceae94763e56eeb0a137ae2f234529e21170006
MD5 d00dc78454a8439e32a1efac901a2735
BLAKE2b-256 5b5130cac3d65386829d1ef7a3f05336bfcc94eccdd147eaea75d3bf832e972f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9948dee947827123f2cbdd5343b0231c611461a353eee875f62a4417f18e6228
MD5 ab40f0698b317462d359f56373c3a4b0
BLAKE2b-256 831f20556b4a4f3a0fc56084226d2297cfca41ab404b8723f772f222811c9a03

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.1.dev2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 89016eb38f75d5a041610d5ccca3668c80bb58b79d26f532d342d137c31d0f23
MD5 279484b9f03b2db4783f8b2e161d9527
BLAKE2b-256 bbaf7b6125a201e14b1ab93bcd4cb1f57e5b6b9e4c67955450438d8dd8754d62

See more details on using hashes here.

Provenance

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