{"id":24746983,"url":"https://github.com/etene/cachecontrol-uwsgi","last_synced_at":"2025-03-23T01:24:59.285Z","repository":{"id":62560612,"uuid":"205422575","full_name":"etene/cachecontrol-uwsgi","owner":"etene","description":"Backend for CacheControl using uwsgi's caching framework","archived":false,"fork":false,"pushed_at":"2019-09-28T15:11:10.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T22:18:31.811Z","etag":null,"topics":["backend","cachecontrol","python","requests","uwsgi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etene.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-30T16:51:42.000Z","updated_at":"2019-09-28T15:11:11.000Z","dependencies_parsed_at":"2022-11-03T14:45:33.935Z","dependency_job_id":null,"html_url":"https://github.com/etene/cachecontrol-uwsgi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etene%2Fcachecontrol-uwsgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etene%2Fcachecontrol-uwsgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etene%2Fcachecontrol-uwsgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etene%2Fcachecontrol-uwsgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etene","download_url":"https://codeload.github.com/etene/cachecontrol-uwsgi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245042494,"owners_count":20551604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","cachecontrol","python","requests","uwsgi"],"created_at":"2025-01-28T04:36:58.929Z","updated_at":"2025-03-23T01:24:59.255Z","avatar_url":"https://github.com/etene.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cachecontrol-uwsgi\n\n[![PyPI](https://img.shields.io/pypi/v/cachecontrol-uwsgi.svg)](https://pypi.org/project/cachecontrol-uwsgi/) ![Python versions](https://img.shields.io/pypi/pyversions/cachecontrol-django.svg) [![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=master)](https://coveralls.io/github/etene/cachecontrol-uwsgi?branch=master)\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```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetene%2Fcachecontrol-uwsgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetene%2Fcachecontrol-uwsgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetene%2Fcachecontrol-uwsgi/lists"}