cacheyou


Namecacheyou JSON
Version 23.3 PyPI version JSON
download
home_page
Summaryhttplib2 caching for requests
upload_time2023-05-25 02:54:39
maintainer
docs_urlNone
author
requires_python>=3.7
license
keywords requests http caching web
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# CacheYou

[![Latest Version](https://img.shields.io/pypi/v/cacheyou.svg)](https://pypi.python.org/pypi/cacheyou)
[![CI](https://github.com/frostming/cacheyou/actions/workflows/tests.yml/badge.svg)](https://github.com/frostming/cacheyou/actions/workflows/tests.yml)

CacheYou is a fork of [CacheControl] which is a port of the caching algorithms in httplib2 for use with
requests session object.

[CacheControl]: https://github.com/ionrock/cachecontrol

## Quickstart

```python
import requests
from cacheyou import CacheControl

sess = requests.session()
cached_sess = CacheControl(sess)

response = cached_sess.get('http://google.com')
```

If the URL contains any caching based headers, it will cache the
result in a simple dictionary.

For more info, check out the [docs]

[docs]: http://cacheyou.readthedocs.org/en/latest/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "cacheyou",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "requests http caching web",
    "author": "",
    "author_email": "Frost Ming <me@frostming.com>, Eric Larson <eric@ionrock.org>",
    "download_url": "https://files.pythonhosted.org/packages/8e/6e/8a9d13f938789b29e89b78cfeb9d0a9e002c67272ead73060c8306b74fc8/cacheyou-23.3.tar.gz",
    "platform": null,
    "description": "\n# CacheYou\n\n[![Latest Version](https://img.shields.io/pypi/v/cacheyou.svg)](https://pypi.python.org/pypi/cacheyou)\n[![CI](https://github.com/frostming/cacheyou/actions/workflows/tests.yml/badge.svg)](https://github.com/frostming/cacheyou/actions/workflows/tests.yml)\n\nCacheYou is a fork of [CacheControl] which is a port of the caching algorithms in httplib2 for use with\nrequests session object.\n\n[CacheControl]: https://github.com/ionrock/cachecontrol\n\n## Quickstart\n\n```python\nimport requests\nfrom cacheyou import CacheControl\n\nsess = requests.session()\ncached_sess = CacheControl(sess)\n\nresponse = cached_sess.get('http://google.com')\n```\n\nIf the URL contains any caching based headers, it will cache the\nresult in a simple dictionary.\n\nFor more info, check out the [docs]\n\n[docs]: http://cacheyou.readthedocs.org/en/latest/\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "httplib2 caching for requests",
    "version": "23.3",
    "project_urls": {
        "Documentation": "https://cacheyou.readthedocs.io",
        "Homepage": "https://github.com/frostming/cacheyou",
        "Release notes": "https://cacheyou.readthedocs.io/en/latest/release_notes.html"
    },
    "split_keywords": [
        "requests",
        "http",
        "caching",
        "web"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41e11864f74d5ea8edfe4e217ce6cf81d04989b32ef949487b289753227a64af",
                "md5": "0725f7d02d8e002b28576d27d2441df5",
                "sha256": "eeed1d071495ed59be0049c3897a4c3c056c4b30f751b3197b823c518bcac604"
            },
            "downloads": -1,
            "filename": "cacheyou-23.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0725f7d02d8e002b28576d27d2441df5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 21956,
            "upload_time": "2023-05-25T02:54:34",
            "upload_time_iso_8601": "2023-05-25T02:54:34.304904Z",
            "url": "https://files.pythonhosted.org/packages/41/e1/1864f74d5ea8edfe4e217ce6cf81d04989b32ef949487b289753227a64af/cacheyou-23.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8e6e8a9d13f938789b29e89b78cfeb9d0a9e002c67272ead73060c8306b74fc8",
                "md5": "1fa21b2d3b8a547f77d1ee6a8a421fdd",
                "sha256": "7e408f15f4978fea2247734b308621f75f7fe169b461679519c72e8a85d61d5d"
            },
            "downloads": -1,
            "filename": "cacheyou-23.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1fa21b2d3b8a547f77d1ee6a8a421fdd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 43192,
            "upload_time": "2023-05-25T02:54:39",
            "upload_time_iso_8601": "2023-05-25T02:54:39.044221Z",
            "url": "https://files.pythonhosted.org/packages/8e/6e/8a9d13f938789b29e89b78cfeb9d0a9e002c67272ead73060c8306b74fc8/cacheyou-23.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-25 02:54:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "frostming",
    "github_project": "cacheyou",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "cacheyou"
}
        
Elapsed time: 0.07986s