redc


Nameredc JSON
Version 0.1.0.dev5 PyPI version JSON
download
home_pageNone
SummaryRedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library
upload_time2025-01-31 20:25:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT
keywords asyncio http client http-client curl libcurl
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <img src="/assets/images/redc-logo.png">
</div>

[![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![Downloads](https://static.pepy.tech/personalized-badge/redc?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/redc)

**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:

```bash
pip install redc
```

## Quick Start

```python
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")
        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},
        )
        print(response.status_code)  # 201
        print(response.json())  # {'id': 101, ...}

asyncio.run(main())
```

## License

MIT [LICENSE](LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "redc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "asyncio, http, client, http-client, curl, libcurl",
    "author": null,
    "author_email": "AYMEN Mohammed <let.me.code.safe@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/0b/65/a24d1100951b925eeff628091f456874bf97f7be735071cd8061c1f7a62c/redc-0.1.0.dev5.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <img src=\"/assets/images/redc-logo.png\">\n</div>\n\n[![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![Downloads](https://static.pepy.tech/personalized-badge/redc?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/redc)\n\n**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\n\n## Features\n\n- **Asynchronous by Design**: Built with `asyncio` for non-blocking HTTP requests\n- **curl Backend**: Leverages the speed and reliability of libcurl for HTTP operations\n- **Streaming Support**: Stream large responses with ease using callback functions\n- **Proxy Support**: Easily configure proxies for your requests\n\n## Installation\n\nYou can install RedC via pip:\n\n```bash\npip install redc\n```\n\n## Quick Start\n\n```python\nimport asyncio\nfrom redc import Client\n\nasync def main():\n    async with Client(base_url=\"https://jsonplaceholder.typicode.com\") as client:\n        # Make a GET request\n        response = await client.get(\"/posts/1\")\n        print(response.status_code)  # 200\n        print(response.json())  # {'userId': 1, 'id': 1, 'title': '...', 'body': '...'}\n\n        # Make a POST request with JSON data\n        response = await client.post(\n            \"/posts\",\n            json={\"title\": \"foo\", \"body\": \"bar\", \"userId\": 1},\n        )\n        print(response.status_code)  # 201\n        print(response.json())  # {'id': 101, ...}\n\nasyncio.run(main())\n```\n\n## License\n\nMIT [LICENSE](LICENSE)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library",
    "version": "0.1.0.dev5",
    "project_urls": {
        "Source": "https://github.com/AYMENJD/redc",
        "Tracker": "https://github.com/AYMENJD/redc/issues"
    },
    "split_keywords": [
        "asyncio",
        " http",
        " client",
        " http-client",
        " curl",
        " libcurl"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a90313bf78def756a0c26cefffefc26c2254fd48486d224a761642944ba9cc9a",
                "md5": "fcbd6e4411e8d88f2c576b0bd0648362",
                "sha256": "b15643414faf2a970cb5a2c9580ea49112bfed6c26d36bb43b69b424b1f45980"
            },
            "downloads": -1,
            "filename": "redc-0.1.0.dev5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fcbd6e4411e8d88f2c576b0bd0648362",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.9",
            "size": 11745210,
            "upload_time": "2025-01-31T20:25:25",
            "upload_time_iso_8601": "2025-01-31T20:25:25.419412Z",
            "url": "https://files.pythonhosted.org/packages/a9/03/13bf78def756a0c26cefffefc26c2254fd48486d224a761642944ba9cc9a/redc-0.1.0.dev5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "74d9f060f18d30cca2aac45acec94a9c06c66f02a859a3b1f82af04932ac9d05",
                "md5": "5ff2f856b02141fcee4c9a777772cf50",
                "sha256": "fc488daf3c46a780d04c417bcddcc59a01446392e4d8a499a21919607278e84d"
            },
            "downloads": -1,
            "filename": "redc-0.1.0.dev5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "5ff2f856b02141fcee4c9a777772cf50",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.9",
            "size": 11744944,
            "upload_time": "2025-01-31T20:25:30",
            "upload_time_iso_8601": "2025-01-31T20:25:30.077252Z",
            "url": "https://files.pythonhosted.org/packages/74/d9/f060f18d30cca2aac45acec94a9c06c66f02a859a3b1f82af04932ac9d05/redc-0.1.0.dev5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "36c6b2bca849b7ab0da627849f45f209944ae2ba92da9fb1e494c61f323ca35d",
                "md5": "ce99c71d7439eb0f1a1085951de11ae5",
                "sha256": "6df0c3a893be552311f6a6cfdea8620e65c9559ce16931b1074122afd77e6a28"
            },
            "downloads": -1,
            "filename": "redc-0.1.0.dev5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "ce99c71d7439eb0f1a1085951de11ae5",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.9",
            "size": 11741467,
            "upload_time": "2025-01-31T20:25:33",
            "upload_time_iso_8601": "2025-01-31T20:25:33.485848Z",
            "url": "https://files.pythonhosted.org/packages/36/c6/b2bca849b7ab0da627849f45f209944ae2ba92da9fb1e494c61f323ca35d/redc-0.1.0.dev5-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "844d1b6ea3a838473d24f1add842ca8daf0bd5ec793ff05dd74757049a3caffe",
                "md5": "85b5e5e272f1758fcffc1bb812af89f0",
                "sha256": "69195ed2f0de63c90871649cf1ea90fc71c7ff86be6d738596b49d50b1d45e74"
            },
            "downloads": -1,
            "filename": "redc-0.1.0.dev5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "85b5e5e272f1758fcffc1bb812af89f0",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.9",
            "size": 11745439,
            "upload_time": "2025-01-31T20:25:36",
            "upload_time_iso_8601": "2025-01-31T20:25:36.882274Z",
            "url": "https://files.pythonhosted.org/packages/84/4d/1b6ea3a838473d24f1add842ca8daf0bd5ec793ff05dd74757049a3caffe/redc-0.1.0.dev5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0b65a24d1100951b925eeff628091f456874bf97f7be735071cd8061c1f7a62c",
                "md5": "92803857de75429d06596a2aadab1434",
                "sha256": "fc146d80f5ef9d01e1f5079a07649b31d874e0038a45a3fdd2f063208a54d8c9"
            },
            "downloads": -1,
            "filename": "redc-0.1.0.dev5.tar.gz",
            "has_sig": false,
            "md5_digest": "92803857de75429d06596a2aadab1434",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 46429284,
            "upload_time": "2025-01-31T20:25:43",
            "upload_time_iso_8601": "2025-01-31T20:25:43.191180Z",
            "url": "https://files.pythonhosted.org/packages/0b/65/a24d1100951b925eeff628091f456874bf97f7be735071cd8061c1f7a62c/redc-0.1.0.dev5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-31 20:25:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AYMENJD",
    "github_project": "redc",
    "github_not_found": true,
    "lcname": "redc"
}
        
Elapsed time: 1.18024s