Skip to main content

A Rust-based HTTP client for Python with some requests-like methods.

Project description

requers

A fast, Rust-based HTTP client for Python with a requests-like API.

Installation

pip install requers

Usage

import requers

# GET request
response = requers.get('https://httpbin.org/get')
print(response.status_code)
print(response.text)

# Download a file
handle = requers.download_file('https://example.com/file.zip', 'file.zip')
while not handle.is_finished():
    progress = handle.get_progress()
    print(f"Downloaded: {progress['downloaded']} / {progress['total']}")

Features

  • Fast HTTP requests powered by Rust
  • File downloading with progress tracking and resumability
  • SHA256 hashing for files and bytes
  • Similar API to the popular requests library

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

requers-0.1.0-cp310-cp310-win_amd64.whl (443.9 kB view details)

Uploaded CPython 3.10Windows x86-64

requers-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

requers-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (570.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file requers-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: requers-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 443.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for requers-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9e32ba627652247f134d53718d94caa5ef8b9b650649944643783a2c7d179e6
MD5 fc74a0862e8d762cafd8abd5f88a7b61
BLAKE2b-256 55c2ffe87c4688acdf8621566d7a65f86272a6f44189c6e3528ae752f896af56

See more details on using hashes here.

File details

Details for the file requers-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for requers-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ac6107863d2f0e2710de0df670f3ecfeb7882dda48ceebf00cc28b87505f888d
MD5 cbf8ba48af63cf3ea104c260a152419d
BLAKE2b-256 1807cf6eef83e8bca2f26255eaff38af18e190891edef7a1c448708884bba679

See more details on using hashes here.

File details

Details for the file requers-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for requers-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dabe777f39ed627e4c9757223125f67ce2ce01f3e294b5096138e25bf4b9cd33
MD5 9256a21fd230acc9bcd8370a5055a698
BLAKE2b-256 ae42e641c397aa7f27495b076bc6b63274b420e1c8071117fedb8157b47a8b4f

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