httpr 0.1.0__cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.1.10__cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
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.
Potentially problematic release.
This version of httpr might be problematic. Click here for more details.
- httpr/__init__.py +4 -0
- httpr/httpr.cpython-313t-aarch64-linux-gnu.so +0 -0
- {httpr-0.1.0.dist-info → httpr-0.1.10.dist-info}/METADATA +17 -11
- httpr-0.1.10.dist-info/RECORD +8 -0
- httpr-0.1.0.dist-info/RECORD +0 -8
- {httpr-0.1.0.dist-info → httpr-0.1.10.dist-info}/WHEEL +0 -0
- {httpr-0.1.0.dist-info → httpr-0.1.10.dist-info}/licenses/LICENSE +0 -0
httpr/__init__.py
CHANGED
|
@@ -114,6 +114,10 @@ class AsyncClient(Client):
|
|
|
114
114
|
async def __aexit__(self, *args):
|
|
115
115
|
del self
|
|
116
116
|
|
|
117
|
+
async def aclose(self):
|
|
118
|
+
del self
|
|
119
|
+
return
|
|
120
|
+
|
|
117
121
|
async def _run_sync_asyncio(self, fn, *args, **kwargs):
|
|
118
122
|
loop = asyncio.get_running_loop()
|
|
119
123
|
return await loop.run_in_executor(None, partial(fn, *args, **kwargs))
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: httpr
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
@@ -22,7 +22,7 @@ Requires-Dist: mypy>=1.14.1 ; extra == 'dev'
|
|
|
22
22
|
Requires-Dist: ruff>=0.9.2 ; extra == 'dev'
|
|
23
23
|
Requires-Dist: maturin ; extra == 'dev'
|
|
24
24
|
Requires-Dist: trustme ; extra == 'dev'
|
|
25
|
-
Requires-Dist: mkdocs-material ; extra == 'docs'
|
|
25
|
+
Requires-Dist: mkdocs-material[imaging] ; extra == 'docs'
|
|
26
26
|
Requires-Dist: httpr[dev] ; extra == 'scratch'
|
|
27
27
|
Requires-Dist: matplotlib ; extra == 'scratch'
|
|
28
28
|
Requires-Dist: pandas ; extra == 'scratch'
|
|
@@ -47,19 +47,24 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
|
47
47
|
|
|
48
48
|
# httpr
|
|
49
49
|
|
|
50
|
-
**Blazing fast http-client** for Python in Rust 🦀 that can be used as drop-in replacement for `httpx` in most cases.
|
|
50
|
+
**Blazing fast http-client** for Python in Rust 🦀 that can be used as drop-in replacement for `httpx` and `requests` in most cases.
|
|
51
51
|
|
|
52
|
-
- **Fast**: httpr is built on top of `reqwests
|
|
53
|
-
- **Both async and sync**: httpr provides both a sync and async client.
|
|
54
|
-
- **Lightweight**: httpr is a lightweight http client with
|
|
55
|
-
- **Async**: first-class support
|
|
56
|
-
- **http2**: httpr supports
|
|
57
|
-
- **mTLS**: httpr supports mTLS.
|
|
58
|
-
|
|
52
|
+
- **Fast**: `httpr` is built on top of `reqwests`, which is a blazing fast http client in Rust. Check out the [benchmark](#benchmark).
|
|
53
|
+
- **Both async and sync**: `httpr` provides both a sync and async client.
|
|
54
|
+
- **Lightweight**: `httpr` is a lightweight http client with zero python-dependencies.
|
|
55
|
+
- **Async**: first-class async support.
|
|
56
|
+
- **http2**: `httpr` supports HTTP/2.
|
|
57
|
+
- **mTLS**: `httpr` supports mTLS.
|
|
58
|
+
|
|
59
|
+
## Not implemented yet
|
|
60
|
+
|
|
61
|
+
- **Streaming**: Streaming is not implemented yet.
|
|
62
|
+
- **Fine-grained error handling**: Fine-grained error handling is not implemented yet.
|
|
59
63
|
|
|
60
64
|
## Table of Contents
|
|
61
65
|
|
|
62
66
|
- [httpr](#httpr)
|
|
67
|
+
- [Not implemented yet](#not-implemented-yet)
|
|
63
68
|
- [Table of Contents](#table-of-contents)
|
|
64
69
|
- [Installation](#installation)
|
|
65
70
|
- [Install with uv](#install-with-uv)
|
|
@@ -310,7 +315,8 @@ Provides precompiled wheels for the following platforms:
|
|
|
310
315
|
|
|
311
316
|
## Acknowledgements
|
|
312
317
|
|
|
313
|
-
- [
|
|
318
|
+
- [uv](https://docs.astral.sh/uv/): The package manager used, and for leading the way in the "Rust for python tools"-sphere.
|
|
319
|
+
- [primp](https://github.com/deedy5/primp): *A lot* of code is borrowed from primp, that wraps rust library `rquest` for python in a similar way. If primp supported mTLS, I would have used it instead.
|
|
314
320
|
- [reqwests](https://github.com/seanmonstar/reqwest): The rust library that powers httpr.
|
|
315
321
|
- [pyo3](https://github.com/PyO3/pyo3)
|
|
316
322
|
- [maturin](https://github.com/PyO3/maturin)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
httpr-0.1.10.dist-info/METADATA,sha256=Skee3JJUdd1MTYEvMwOyyBBwMWSwhstTTDQQ2RM92UQ,12387
|
|
2
|
+
httpr-0.1.10.dist-info/WHEEL,sha256=Phm6cCaZq4rQ7-vRP4T5cvESiolFQpKFVu5LBH41bwI,132
|
|
3
|
+
httpr-0.1.10.dist-info/licenses/LICENSE,sha256=ZPD9tCar0h91tI4v-TuZdrjDdLqzU4rzPTxtP3x--uc,1063
|
|
4
|
+
httpr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
httpr/__init__.py,sha256=2AvAqECMH6euhi7kOacUDNZMSn3U0WvBW8KVPamg2-M,8689
|
|
6
|
+
httpr/httpr.pyi,sha256=PYXORKm_hXjnVPhEBgzbTLY97lYM2ZK-TpmwZAj0d9c,3729
|
|
7
|
+
httpr/httpr.cpython-313t-aarch64-linux-gnu.so,sha256=9rUAt6AucJUBdszXylGMcxQsS3qJyxH308QaHE8q8MQ,4753560
|
|
8
|
+
httpr-0.1.10.dist-info/RECORD,,
|
httpr-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
httpr-0.1.0.dist-info/METADATA,sha256=FgIF8afyC7W-QKc8owtoMA-38IEjWlOY5Sl2zBLm49g,12057
|
|
2
|
-
httpr-0.1.0.dist-info/WHEEL,sha256=Phm6cCaZq4rQ7-vRP4T5cvESiolFQpKFVu5LBH41bwI,132
|
|
3
|
-
httpr-0.1.0.dist-info/licenses/LICENSE,sha256=ZPD9tCar0h91tI4v-TuZdrjDdLqzU4rzPTxtP3x--uc,1063
|
|
4
|
-
httpr/__init__.py,sha256=gfa8_qVNDsXUHnOr3-6jiiuAUGkwHPymyPc0266b7qE,8628
|
|
5
|
-
httpr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
httpr/httpr.pyi,sha256=PYXORKm_hXjnVPhEBgzbTLY97lYM2ZK-TpmwZAj0d9c,3729
|
|
7
|
-
httpr/httpr.cpython-313t-aarch64-linux-gnu.so,sha256=HLn0bY3ErTVtqV9IobS_6SVZYhm1fkoxppwUNHaUqSY,4749464
|
|
8
|
-
httpr-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|