Metadata-Version: 2.1
Name: requests-etag
Version: 1.0.0
Summary: Wrapper over requests package to support etag caching by default
Home-page: https://github.com/sandbox-pokhara/requests-etag
Author: Pradish Bijukchhe
Author-email: pradishbijukchhe@gmail.com
Project-URL: Bug Tracker, https://github.com/sandbox-pokhara/requests-etag/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3
Description-Content-Type: text/markdown
License-File: LICENSE

# requests-etag

Wrapper over requests package to support etag caching by default

## Install

```
pip install requests-etag
```

## Usage

```python
>>> 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

```python
import requests_etag

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