Skip to main content

requests-etag

Wrapper over requests package to support etag caching by default

Install

pip install requests-etag

Usage

>>> import requests_etag
>>> res = requests_etag.get('https://example.com/')
>>> res.status_code
200
>>> len(res.text)
1527903
>>> res = requests_etag.get('https://example.com/') # cached
>>> res.status_code
304
>>> len(res.text)
1527903

Configuration

import requests_etag

requests_etag.config['dir'] = 'mycache'
requests_etag.config['db'] = 'db.sqlite3'

Metadata

Release files for requests-etag 1.0.0

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

Source distribution (sdist)

Source distribution for requests-etag 1.0.0
File Size Uploaded Provenance Actions
requests-etag-1.0.0.tar.gz 3.1 kB Without provenance Details for requests-etag-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for requests-etag 1.0.0
File Interpreter ABI Platform Actions
requests_etag-1.0.0-py3-none-any.whl Python 3 none any Details for requests_etag-1.0.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / requests-etag-1.0.0.tar.gz

Download URL requests-etag-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c2876f7e7b17ebc7e278912ca8994bd07ca86a60a3a8fd96dfee4aeca19ac547
BLAKE2b-256 checksum
How to use checksums
c5ced8f92db779d4eb15e6460d40b0df2a56ba1bbdf69e03a78c64071171781b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / requests_etag-1.0.0-py3-none-any.whl

Download URL requests_etag-1.0.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e04aeab3310dc4f4063468aa5460970db4889d1b7776577af5ebf3b6339ae0e
BLAKE2b-256 checksum
How to use checksums
a72e8d91e67a6c5641505b013499e08c0236eedd90a04c0cd28d93dd5c0358cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Security for requests-etag 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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