Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/CacheControl-0.11.7-py3.9.egg-info/PKG-INFO @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
| author | shellac |
|---|---|
| date | Mon, 22 Mar 2021 18:12:50 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4f3585e2f14b |
|---|---|
| 1 Metadata-Version: 2.1 | |
| 2 Name: CacheControl | |
| 3 Version: 0.11.7 | |
| 4 Summary: httplib2 caching for requests | |
| 5 Home-page: https://github.com/ionrock/cachecontrol | |
| 6 Author: Eric Larson | |
| 7 Author-email: eric@ionrock.org | |
| 8 License: UNKNOWN | |
| 9 Description: ============== | |
| 10 CacheControl | |
| 11 ============== | |
| 12 | |
| 13 .. image:: https://img.shields.io/pypi/v/cachecontrol.svg | |
| 14 :target: https://pypi.python.org/pypi/cachecontrol | |
| 15 :alt: Latest Version | |
| 16 | |
| 17 .. image:: https://travis-ci.org/ionrock/cachecontrol.png?branch=master | |
| 18 :target: https://travis-ci.org/ionrock/cachecontrol | |
| 19 | |
| 20 CacheControl is a port of the caching algorithms in httplib2_ for use with | |
| 21 requests_ session object. | |
| 22 | |
| 23 It was written because httplib2's better support for caching is often | |
| 24 mitigated by its lack of threadsafety. The same is true of requests in | |
| 25 terms of caching. | |
| 26 | |
| 27 | |
| 28 Quickstart | |
| 29 ========== | |
| 30 | |
| 31 .. code-block:: python | |
| 32 | |
| 33 import requests | |
| 34 | |
| 35 from cachecontrol import CacheControl | |
| 36 | |
| 37 | |
| 38 sess = requests.session() | |
| 39 cached_sess = CacheControl(sess) | |
| 40 | |
| 41 response = cached_sess.get('http://google.com') | |
| 42 | |
| 43 If the URL contains any caching based headers, it will cache the | |
| 44 result in a simple dictionary. | |
| 45 | |
| 46 For more info, check out the docs_ | |
| 47 | |
| 48 .. _docs: http://cachecontrol.readthedocs.org/en/latest/ | |
| 49 .. _httplib2: https://github.com/jcgregorio/httplib2 | |
| 50 .. _requests: http://docs.python-requests.org/ | |
| 51 | |
| 52 Keywords: requests http caching web | |
| 53 Platform: UNKNOWN | |
| 54 Classifier: Development Status :: 4 - Beta | |
| 55 Classifier: Environment :: Web Environment | |
| 56 Classifier: License :: OSI Approved :: Apache Software License | |
| 57 Classifier: Operating System :: OS Independent | |
| 58 Classifier: Programming Language :: Python :: 2.6 | |
| 59 Classifier: Programming Language :: Python :: 2.7 | |
| 60 Classifier: Programming Language :: Python :: 3 | |
| 61 Classifier: Programming Language :: Python :: 3.2 | |
| 62 Classifier: Programming Language :: Python :: 3.3 | |
| 63 Classifier: Programming Language :: Python :: 3.4 | |
| 64 Classifier: Topic :: Internet :: WWW/HTTP | |
| 65 Provides-Extra: filecache |
