Skip to main content

Easy-Requests

publishing workflow

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-requests 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-requests 1.1.2
File Size Uploaded
easy_requests-1.1.2.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easy-requests 1.1.2
File Interpreter ABI Platform
easy_requests-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / easy_requests-1.1.2.tar.gz

Download URL easy_requests-1.1.2.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7d6055c8f39d0c925662aa68042eb5078270e2d9fa7b8ed86c98aa9223990d27
BLAKE2b-256 checksum
How to use checksums
bfff19d5cfdea37aac7ff09f9d65b8c0e0697eaef3092b77107a281d0323a511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2025.

Transparency log

Release files / easy_requests-1.1.2-py3-none-any.whl

Download URL easy_requests-1.1.2-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17900fc870d2b7d05b6e982b2ec9c6583814529b01615b968e96a39ea4fc612a
BLAKE2b-256 checksum
How to use checksums
adb7f45ce87ca30e7238b2e37a25264cf83138b82b3333b1c32246d95b801d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

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