{ "info": { "author": "etene", "author_email": "etienne.noss+pypi@gmail.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# cachecontrol-uwsgi\n[![Build Status](https://travis-ci.org/etene/cachecontrol-uwsgi.svg?branch=master)](https://travis-ci.org/etene/cachecontrol-uwsgi) [![Coverage Status](https://coveralls.io/repos/github/etene/cachecontrol-uwsgi/badge.svg?branch=travis-ci)](https://coveralls.io/github/etene/cachecontrol-uwsgi?branch=travis-ci)\n\nBackend for [CacheControl](https://github.com/ionrock/cachecontrol) using [uwsgi's caching framework](https://uwsgi-docs.readthedocs.io/en/latest/Caching.html).\n\nOnly works inside of uWSGI (the `uwsgi` module must be importable), and needs a configured cache (see uWSGI's `--cache2` option) to work.\n\nFor 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.\n\n## Usage\n\n```python\nimport requests\n\nfrom cachecontrol import CacheControl\nfrom cachecontrol_uwsgi import UWSGICache\n\ncached_session = CacheControl(requests.session(), cache=UWSGICache(\"cache_name\"))\n\nresponse = cached_session.get(\"http://httpbin.org/status/200\")\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/etene/cachecontrol-uwsgi", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cachecontrol-uwsgi", "package_url": "https://pypi.org/project/cachecontrol-uwsgi/", "platform": "", "project_url": "https://pypi.org/project/cachecontrol-uwsgi/", "project_urls": { "Homepage": "https://github.com/etene/cachecontrol-uwsgi" }, "release_url": "https://pypi.org/project/cachecontrol-uwsgi/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A cache provider for CacheControl using UWSGI's caching framework.", "version": "1.0.0" }, "last_serial": 5894941, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "db4b200e13a0b0912280911e8423ae0e", "sha256": "2d4aceecd146c68c074b431053030d3c0841d47480452c91212239b27449f7ef" }, "downloads": -1, "filename": "cachecontrol-uwsgi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "db4b200e13a0b0912280911e8423ae0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2451, "upload_time": "2019-09-27T08:51:19", "url": "https://files.pythonhosted.org/packages/4c/4c/c3c1fab2590b923fb7a3b0214c0d27800b53d47f4356b607d0f6df7f4526/cachecontrol-uwsgi-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db4b200e13a0b0912280911e8423ae0e", "sha256": "2d4aceecd146c68c074b431053030d3c0841d47480452c91212239b27449f7ef" }, "downloads": -1, "filename": "cachecontrol-uwsgi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "db4b200e13a0b0912280911e8423ae0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2451, "upload_time": "2019-09-27T08:51:19", "url": "https://files.pythonhosted.org/packages/4c/4c/c3c1fab2590b923fb7a3b0214c0d27800b53d47f4356b607d0f6df7f4526/cachecontrol-uwsgi-1.0.0.tar.gz" } ] }