Skip to content

moooozi/requers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors