RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library
Project description
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
asynciofor non-blocking HTTP requests - HTTP/2 Support: Fully compatible with
HTTP/2for 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file redc-0.1.1.tar.gz.
File metadata
- Download URL: redc-0.1.1.tar.gz
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253f033e311b6264adc71864520e77666ee139ea5d5db23768521b29a233923f
|
|
| MD5 |
a2a6763ea31f48d89efbab6382385fd2
|
|
| BLAKE2b-256 |
a49b55e7284671ac073a255524f99ef547d132f3ccd4e682e37a3fa4e74ae2a4
|
Provenance
The following attestation bundles were made for redc-0.1.1.tar.gz:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1.tar.gz -
Subject digest:
253f033e311b6264adc71864520e77666ee139ea5d5db23768521b29a233923f - Sigstore transparency entry: 169716040
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type:
File details
Details for the file redc-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: redc-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.13t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
275c88aa789d30b7896cd2b483e3766490906a7107246a9e44a7cec3918105df
|
|
| MD5 |
73b05aab2b61c4ce3621d26299b2d6a7
|
|
| BLAKE2b-256 |
dcd6b828eca5acf07b4486b3d95784d0f9c57a69719f6417c4c131793f055496
|
Provenance
The following attestation bundles were made for redc-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
275c88aa789d30b7896cd2b483e3766490906a7107246a9e44a7cec3918105df - Sigstore transparency entry: 169716041
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type:
File details
Details for the file redc-0.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: redc-0.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ea82fa21282d7a9bc99a23282aea8d29d6de1f76a087aceec435251a7a1a86
|
|
| MD5 |
f7abc4e5d66c947c15bc491c7f5d6baa
|
|
| BLAKE2b-256 |
4e8c8f97bcc542211f4d6e24dbbf52d01161733ea653aea17e5492403ae5979b
|
Provenance
The following attestation bundles were made for redc-0.1.1-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
c6ea82fa21282d7a9bc99a23282aea8d29d6de1f76a087aceec435251a7a1a86 - Sigstore transparency entry: 169716046
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type:
File details
Details for the file redc-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: redc-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8851b42225081c66649ff5dd68e2e133cb777ce87efa015baf269ca80d303ec
|
|
| MD5 |
41ddfd511764d64678d25145308800df
|
|
| BLAKE2b-256 |
f47389c254dac265b384a4f6f099d40d769eb9b413c776fda2a1b6157c3708d6
|
Provenance
The following attestation bundles were made for redc-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
c8851b42225081c66649ff5dd68e2e133cb777ce87efa015baf269ca80d303ec - Sigstore transparency entry: 169716047
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type:
File details
Details for the file redc-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: redc-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44a3165f86fac04e374a6d39b6756f025e207b1534d6e8bcb936d8f03135f95e
|
|
| MD5 |
8004471585da93b804711144087fc7cd
|
|
| BLAKE2b-256 |
353109da005a481180ca438da3dfdd8ffc90adc526398f3311ba091f685c7602
|
Provenance
The following attestation bundles were made for redc-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
44a3165f86fac04e374a6d39b6756f025e207b1534d6e8bcb936d8f03135f95e - Sigstore transparency entry: 169716045
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type:
File details
Details for the file redc-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: redc-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 12.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c2a4c40110fd372deb152b9e7a5b64d4aa772a9497b0ecab0117c8c4f25d8ee
|
|
| MD5 |
e7fa5bdd153ffe8a28d9afab394d9a91
|
|
| BLAKE2b-256 |
43da32d4554a426d1e4672f1742cbf9cc8e39c273cfb78816a2651a56202a64a
|
Provenance
The following attestation bundles were made for redc-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
build_wheels.yml on AYMENJD/redc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
redc-0.1.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl -
Subject digest:
0c2a4c40110fd372deb152b9e7a5b64d4aa772a9497b0ecab0117c8c4f25d8ee - Sigstore transparency entry: 169716042
- Sigstore integration time:
-
Permalink:
AYMENJD/redc@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AYMENJD
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yml@af8943fbd09b4e4cdf76bfe4f23807db1eabd812 -
Trigger Event:
push
-
Statement type: