Skip to main content
Pre-release

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.


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

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)

Source distribution for rust-requests 0.1.0b1
File Size Uploaded
rust_requests-0.1.0b1.tar.gz 565.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rust-requests 0.1.0b1
File Interpreter ABI Platform
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

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

Release history Release notifications | RSS feed

This release

0.1.0b1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page