Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rust_requests-0.1.0b1.tar.gz (565.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

File details

Details for the file rust_requests-0.1.0b1.tar.gz.

File metadata

  • Download URL: rust_requests-0.1.0b1.tar.gz
  • Upload date:
  • Size: 565.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for rust_requests-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 b867355c45d71ce3e7082f0a4146b4007a8203badd1f168d6ca39a4a3e7c7e65
MD5 20b165e7d420930bbfe4bc27b077e217
BLAKE2b-256 837951df50e69f078bee43a90901f8e41c578b738c6164bed831873e0882850c

See more details on using hashes here.

File details

Details for the file rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for rust_requests-0.1.0b1-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 bb1836e5ef49995ec5b203269611e6177cb9b5a2b540c41cc6ddec0ab7937254
MD5 ecc36318a3ffe006f3e5a1a77315beb8
BLAKE2b-256 6056182d86180b4c47630a62e5befe4a0acbbb7d0a7770d2d59eb00fdbd3a13b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page