cachecontrol-uwsgi-1.0.0
توضیحات
A cache provider for CacheControl using UWSGI's caching framework.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cachecontrol-uwsgi-1.0.0 |
| نام | cachecontrol-uwsgi |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | etene |
| ایمیل نویسنده | etienne.noss+pypi@gmail.com |
| آدرس صفحه اصلی | https://github.com/etene/cachecontrol-uwsgi |
| آدرس اینترنتی | https://pypi.org/project/cachecontrol-uwsgi/ |
| مجوز | - |
# cachecontrol-uwsgi
[](https://travis-ci.org/etene/cachecontrol-uwsgi) [](https://coveralls.io/github/etene/cachecontrol-uwsgi?branch=travis-ci)
Backend for [CacheControl](https://github.com/ionrock/cachecontrol) using [uwsgi's caching framework](https://uwsgi-docs.readthedocs.io/en/latest/Caching.html).
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](./test_app.py) and [its integration tests](./tests/integration.py) inside the repository. It's a test application that doesn't use CacheControl but has a configured cache that works.
## Usage
```python
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")
```
نحوه نصب
نصب پکیج whl cachecontrol-uwsgi-1.0.0:
pip install cachecontrol-uwsgi-1.0.0.whl
نصب پکیج tar.gz cachecontrol-uwsgi-1.0.0:
pip install cachecontrol-uwsgi-1.0.0.tar.gz