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.7.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.7-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.7-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.7-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.7-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.7-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.7.tar.gz.

File metadata

  • Download URL: redc-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 b43abae6b2a39845d62fddbbfd8047f15973e857cc5eb823470b947fd8bd1075
MD5 497ae2d958a4d3c1d5e28a9a6452c9b0
BLAKE2b-256 ea663bb7ff02f444dd71badace4ee51a037306d5f4e01878763c8cf2ba26dc4d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.7-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 57b50a06b596784ba9c5d307e8c979b02b1028ed68c81c1d71c6159124e9eb0e
MD5 a23a2f9423ca67e2aaf33121e28c8006
BLAKE2b-256 fef0724b5e51752f390346d5b575defcb29420d25e1805959d38f71a21b5ed79

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.7-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f6f016a9bd374ba947f133b6d25d76a5d0cdb14f987ca4e7edcb0c9259a85413
MD5 3f190b5698ac4fc9020ade4d4a1870cb
BLAKE2b-256 f44f7d144801d856eebe725e5e0642d9697000955b780af8b16e0a5d62499b56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b9efda311241542dbe354a0914fad200c4d53eeb7ddf60a2c4d6bfeaa82638a9
MD5 e70a2f2e7c6d7aed7872dffe17f3718d
BLAKE2b-256 04b46960fce68eafb2de86615f3a16fb989e9f3316f0696e6792e99bc3215e66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 974d2d368edaddfcdbdf7e769bb280b2882d9d112dce97ca54c4eafd7b97be98
MD5 141df0a530cebf3892796539fdcb69d8
BLAKE2b-256 c60f51f5a141749a471334ba8b517a2c5962d43d80fb241bd6c6188d8896ff17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for redc-0.1.7-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0daade0088960fdfb3891c7ba69930c42111b5c3ad0a3f8bf08f4ad4f0eb6a99
MD5 55b6b1917c5d55ceb26bf7b5db259ce1
BLAKE2b-256 0b6772f7c85c2ce53962fa72050fe521a10baa49d43d85151b494605d3f6a1be

See more details on using hashes here.

Provenance

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