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'
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)
| File | Size | Uploaded | |
|---|---|---|---|
| requests-etag-1.0.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_etag-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|