Easy-Requests
A Python library for simplified HTTP requests, featuring rate limiting, browser-like headers, and automatic retries. Built on the official requests library for reliability.
Features
- Save responses to cache
- Use any session (e.g., bypass Cloudflare using cloudscraper)
- Configurable wait between requests without thread blocking
- Automatic retries for failed requests
pip install easy-requests
Usage
Basic Usage
from easy_requests import Connection, init_cache
init_cache(".cache")
connection = Connection()
# to generate headers that mimic the browser
connection.generate_headers()
response = connection.get("https://example.com")
Using with Cloudscraper
from easy_requests import Connection
import cloudscraper
connection = Connection(cloudscraper.create_scraper())
response = connection.get("https://example.com")
Configuring cache
This won't use caching without you configuring it.
You can configure the default cache either with environment variables or using init_cache. The env keys are EASY_REQUESTS_CACHE_DIR and EASY_REQUESTS_CACHE_EXPIRES (in days).
from easy_requests import init_cache
init_cache(".cache")
Alternatively you can pass arguments into Connection(...) and the request function:
cache_enabled: Optional[bool]cache_directory: Optional[str]cache_expires_after: Optional[timedelta]
from easy_requests import Connection
Connection(
cache_enabled = True
)
If you pass in cache_enabled=True it will raise a Value error if no cache directory was found.
Metadata
Release files for easy-reqeusts 1.1.3
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 |
|---|---|---|---|---|
| easy_reqeusts-1.1.3.tar.gz | 8.0 kB | Without provenance | Details for easy_reqeusts-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_reqeusts-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for easy_reqeusts-1.1.3-py3-none-any.whl |
Total release size: 16.9 kB
Release files / easy_reqeusts-1.1.3.tar.gz
| Download URL | easy_reqeusts-1.1.3.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ee7348754a178967278d7e3f14fc1722628cfa8e29dd0681a38b8bc95b2601b
|
|
BLAKE2b-256 checksum How to use checksums |
1c4ecbd910e3c621e5f2add1d3264f471739eae2ed116b72889c18f0048a3a32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / easy_reqeusts-1.1.3-py3-none-any.whl
| Download URL | easy_reqeusts-1.1.3-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d4d98b65a9908cc82a7b1d5319884f69b3a43c817827deb179881437746e9f3
|
|
BLAKE2b-256 checksum How to use checksums |
3bba45e9e38396fb8ae8ca28bc3378bbacfe94f840fad457a93bce47b9f31571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for easy-reqeusts 1.1.3
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.