redc 0.1.4__tar.gz → 0.1.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {redc-0.1.4 → redc-0.1.6}/.github/workflows/before-all.sh +1 -1
  2. {redc-0.1.4 → redc-0.1.6}/PKG-INFO +7 -7
  3. {redc-0.1.4 → redc-0.1.6}/README.md +6 -6
  4. {redc-0.1.4 → redc-0.1.6}/pyproject.toml +1 -1
  5. {redc-0.1.4 → redc-0.1.6}/redc/__init__.py +1 -1
  6. {redc-0.1.4 → redc-0.1.6}/redc/client.py +4 -1
  7. {redc-0.1.4 → redc-0.1.6}/.clang-format +0 -0
  8. {redc-0.1.4 → redc-0.1.6}/.github/workflows/build_wheels.yml +0 -0
  9. {redc-0.1.4 → redc-0.1.6}/.gitignore +0 -0
  10. {redc-0.1.4 → redc-0.1.6}/CMake/PreventInSourceBuild.cmake +0 -0
  11. {redc-0.1.4 → redc-0.1.6}/CMakeLists.txt +0 -0
  12. {redc-0.1.4 → redc-0.1.6}/LICENSE +0 -0
  13. {redc-0.1.4 → redc-0.1.6}/assets/images/redc-logo.png +0 -0
  14. {redc-0.1.4 → redc-0.1.6}/redc/callback.py +0 -0
  15. {redc-0.1.4 → redc-0.1.6}/redc/callbacks.py +0 -0
  16. {redc-0.1.4 → redc-0.1.6}/redc/codes.py +0 -0
  17. {redc-0.1.4 → redc-0.1.6}/redc/exceptions/__init__.py +0 -0
  18. {redc-0.1.4 → redc-0.1.6}/redc/ext/redc.cpp +1 -1
  19. {redc-0.1.4 → redc-0.1.6}/redc/ext/redc.h +0 -0
  20. {redc-0.1.4 → redc-0.1.6}/redc/ext/utils/concurrentqueue.h +0 -0
  21. {redc-0.1.4 → redc-0.1.6}/redc/ext/utils/curl_utils.h +0 -0
  22. {redc-0.1.4 → redc-0.1.6}/redc/ext/utils/memoryview.h +0 -0
  23. {redc-0.1.4 → redc-0.1.6}/redc/response.py +0 -0
  24. {redc-0.1.4 → redc-0.1.6}/redc/utils/__init__.py +0 -0
  25. {redc-0.1.4 → redc-0.1.6}/redc/utils/_io_utils.py +0 -0
  26. {redc-0.1.4 → redc-0.1.6}/redc/utils/headers.py +0 -0
  27. {redc-0.1.4 → redc-0.1.6}/redc/utils/http.py +0 -0
  28. {redc-0.1.4 → redc-0.1.6}/redc/utils/json_encoder.py +0 -0
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- CURL_VERSION="8.13.0"
3
+ CURL_VERSION="8.14.1"
4
4
 
5
5
  # deps
6
6
  yum install wget gcc make libpsl-devel libidn-devel zlib-devel libnghttp2-devel perl-IPC-Cmd -y
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: redc
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library
5
5
  Keywords: asyncio,http,client,http-client,curl,libcurl
6
6
  Author-Email: AYMEN Mohammed <let.me.code.safe@gmail.com>
@@ -14,17 +14,17 @@ Description-Content-Type: text/markdown
14
14
  <img src="https://raw.githubusercontent.com/AYMENJD/redc/refs/heads/main/assets/images/redc-logo.png">
15
15
  </div>
16
16
 
17
- [![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![CURL version](https://img.shields.io/badge/Curl-v8.13.0-red?logo=curl)](https://curl.se/ch/8.13.0.html) [![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)
17
+ [![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![CURL version](https://img.shields.io/badge/Curl-v8.14.1-red?logo=curl)](https://curl.se/ch/8.14.1.html) [![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)
18
18
 
19
19
  **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
20
20
 
21
21
  ## Features
22
22
 
23
- - **Asynchronous by Design**: Built with `asyncio` for non-blocking HTTP requests
24
- - **HTTP/2 Support**: Fully compatible with `HTTP/2` for faster and more efficient communication
25
- - **curl Backend**: Leverages the speed and reliability of curl for HTTP operations
26
- - **Streaming Support**: Stream large responses with ease using callback functions
27
- - **Proxy Support**: Easily configure proxies for your requests
23
+ - **Asynchronous by Design**: Built with `asyncio` for non-blocking HTTP requests
24
+ - **HTTP/2 Support**: Fully compatible with `HTTP/2` for faster and more efficient communication
25
+ - **curl Backend**: Leverages the speed and reliability of curl for HTTP operations
26
+ - **Streaming Support**: Stream large responses with ease using callback functions
27
+ - **Proxy Support**: Easily configure proxies for your requests
28
28
 
29
29
  ## Installation
30
30
 
@@ -2,17 +2,17 @@
2
2
  <img src="https://raw.githubusercontent.com/AYMENJD/redc/refs/heads/main/assets/images/redc-logo.png">
3
3
  </div>
4
4
 
5
- [![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![CURL version](https://img.shields.io/badge/Curl-v8.13.0-red?logo=curl)](https://curl.se/ch/8.13.0.html) [![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)
5
+ [![Version](https://img.shields.io/pypi/v/redc?style=flat&logo=curl&logoColor=red&color=red)](https://pypi.org/project/RedC) [![CURL version](https://img.shields.io/badge/Curl-v8.14.1-red?logo=curl)](https://curl.se/ch/8.14.1.html) [![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)
6
6
 
7
7
  **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
8
8
 
9
9
  ## Features
10
10
 
11
- - **Asynchronous by Design**: Built with `asyncio` for non-blocking HTTP requests
12
- - **HTTP/2 Support**: Fully compatible with `HTTP/2` for faster and more efficient communication
13
- - **curl Backend**: Leverages the speed and reliability of curl for HTTP operations
14
- - **Streaming Support**: Stream large responses with ease using callback functions
15
- - **Proxy Support**: Easily configure proxies for your requests
11
+ - **Asynchronous by Design**: Built with `asyncio` for non-blocking HTTP requests
12
+ - **HTTP/2 Support**: Fully compatible with `HTTP/2` for faster and more efficient communication
13
+ - **curl Backend**: Leverages the speed and reliability of curl for HTTP operations
14
+ - **Streaming Support**: Stream large responses with ease using callback functions
15
+ - **Proxy Support**: Easily configure proxies for your requests
16
16
 
17
17
  ## Installation
18
18
 
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "redc"
7
- version = "0.1.4"
7
+ version = "0.1.6"
8
8
  description = "RedC is a high-performance, asynchronous HTTP client library for Python, built on top of the powerful curl library"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "AYMEN Mohammed", email = "let.me.code.safe@gmail.com" }]
@@ -15,7 +15,7 @@ __all__ = [
15
15
  "Response",
16
16
  ]
17
17
 
18
- __version__ = "0.1.4"
18
+ __version__ = "0.1.6"
19
19
  __copyright__ = "Copyright (c) 2025 RedC, AYMENJD"
20
20
  __license__ = "MIT License"
21
21
 
@@ -240,7 +240,10 @@ class Client:
240
240
 
241
241
  if headers is not None:
242
242
  if isinstance(headers, dict):
243
- headers = {**self.__default_headers, **headers}
243
+ headers = {
244
+ **self.__default_headers,
245
+ **{k.lower(): v for k, v in headers.items()},
246
+ }
244
247
  headers = [f"{k}: {v}" for k, v in headers.items()]
245
248
  else:
246
249
  raise TypeError("headers must be of type dict[str, str]")
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -127,8 +127,8 @@ py_object RedC::request(const char *method, const char *url, const char *raw_dat
127
127
 
128
128
  for (auto const &it : dict_obj) {
129
129
  curl_mimepart *part = curl_mime_addpart(curl_mime_.mime);
130
- curl_mime_name(part, nb::str(it.first).c_str());
131
130
  curl_mime_data(part, nb::str(it.second).c_str(), CURL_ZERO_TERMINATED);
131
+ curl_mime_name(part, nb::str(it.first).c_str());
132
132
  }
133
133
  }
134
134
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes