You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.1 KiB

4 years ago
  1. Metadata-Version: 2.1
  2. Name: CacheControl
  3. Version: 0.12.5
  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. Keywords: requests http caching web
  10. Platform: UNKNOWN
  11. Classifier: Development Status :: 4 - Beta
  12. Classifier: Environment :: Web Environment
  13. Classifier: License :: OSI Approved :: Apache Software License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Programming Language :: Python :: 2
  16. Classifier: Programming Language :: Python :: 2.7
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.4
  19. Classifier: Programming Language :: Python :: 3.5
  20. Classifier: Programming Language :: Python :: 3.6
  21. Classifier: Topic :: Internet :: WWW/HTTP
  22. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  23. Requires-Dist: requests
  24. Requires-Dist: msgpack
  25. Provides-Extra: filecache
  26. Requires-Dist: lockfile (>=0.9) ; extra == 'filecache'
  27. Provides-Extra: redis
  28. Requires-Dist: redis (>=2.10.5) ; extra == 'redis'
  29. ==============
  30. CacheControl
  31. ==============
  32. .. image:: https://img.shields.io/pypi/v/cachecontrol.svg
  33. :target: https://pypi.python.org/pypi/cachecontrol
  34. :alt: Latest Version
  35. .. image:: https://travis-ci.org/ionrock/cachecontrol.png?branch=master
  36. :target: https://travis-ci.org/ionrock/cachecontrol
  37. CacheControl is a port of the caching algorithms in httplib2_ for use with
  38. requests_ session object.
  39. It was written because httplib2's better support for caching is often
  40. mitigated by its lack of threadsafety. The same is true of requests in
  41. terms of caching.
  42. Quickstart
  43. ==========
  44. .. code-block:: python
  45. import requests
  46. from cachecontrol import CacheControl
  47. sess = requests.session()
  48. cached_sess = CacheControl(sess)
  49. response = cached_sess.get('http://google.com')
  50. If the URL contains any caching based headers, it will cache the
  51. result in a simple dictionary.
  52. For more info, check out the docs_
  53. .. _docs: http://cachecontrol.readthedocs.org/en/latest/
  54. .. _httplib2: https://github.com/jcgregorio/httplib2
  55. .. _requests: http://docs.python-requests.org/