cachecontrol-uwsgi
Backend for CacheControl using uwsgi's caching framework.
Only works inside of uWSGI (the uwsgi module must be importable), and needs a configured cache (see uWSGI's --cache2 option) to work.
For an example uWSGI setup with a working cache, see test_app.py and its integration tests inside the repository. It's a test application that doesn't use CacheControl but has a configured cache that works.
Usage
import requests
from cachecontrol import CacheControl
from cachecontrol_uwsgi import UWSGICache
cached_session = CacheControl(requests.session(), cache=UWSGICache("cache_name"))
response = cached_session.get("http://httpbin.org/status/200")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cachecontrol-uwsgi-1.0.0.tar.gz.
File metadata
- Download URL: cachecontrol-uwsgi-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d4aceecd146c68c074b431053030d3c0841d47480452c91212239b27449f7ef
|
|
| MD5 |
db4b200e13a0b0912280911e8423ae0e
|
|
| BLAKE2b-256 |
4c4cc3c1fab2590b923fb7a3b0214c0d27800b53d47f4356b607d0f6df7f4526
|