This release is a pre-release and may not be stable for production use.
rust_requests
rust_requests is a blazing fast async/await HTTP client for Python written on Rust using reqwests.
- Works 15% faster than
aiohttpon average - RAII approach without context managers
- Memory-efficient lazy JSON parser
- Fully-typed even being written on Rust
Overview
import asyncio
import datetime
import rust_requests
async def main():
client = rust_requests.Client(
user_agent="rust_requests/1.0",
headers={"X-Foo": "bar"},
store_cookie=True
)
request = rust_requests.Request(
"GET", "https://google.com/search",
),
query={"q": "hi"},
headers={"X-Bar": "foo"},
timeout=datetime.timedelta(seconds=30),
)
response = await client.send(request)
print(response.status)
data = await response.json()
data.show()
asyncio.run(main())
## Installlation
Currently the library is not published to PyPI, so the only way to install it is from GitHub:
```bash
python -m pip install -U https://github.com/cop-discord/rust_requests/archive/main.zip
Metadata
Release files for rust-requests 0.1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rust_requests-0.1.0b1.tar.gz | 565.3 kB | Without provenance | Details for rust_requests-0.1.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.12+ x86-64 | Details for rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
Total release size: 4.5 MB
Release files / rust_requests-0.1.0b1.tar.gz
| Download URL | rust_requests-0.1.0b1.tar.gz |
|---|---|
| Size | 565.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b867355c45d71ce3e7082f0a4146b4007a8203badd1f168d6ca39a4a3e7c7e65
|
|
BLAKE2b-256 checksum How to use checksums |
837951df50e69f078bee43a90901f8e41c578b738c6164bed831873e0882850c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.5.1
|
Release files / rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
| Download URL | rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl |
|---|---|
| Size | 4.0 MB |
| Tags | CPython 3.9 Linux glibc 2.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
bb1836e5ef49995ec5b203269611e6177cb9b5a2b540c41cc6ddec0ab7937254
|
|
BLAKE2b-256 checksum How to use checksums |
6056182d86180b4c47630a62e5befe4a0acbbb7d0a7770d2d59eb00fdbd3a13b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.5.1
|
Security for rust-requests 0.1.0b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.