Ravenports generated: 06 Jun 2022 00:04
[ravenports.git] / bucket_34 / python-cachetools
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-cachetools
4 VERSION=                5.2.0
5 KEYWORDS=               python
6 VARIANTS=               py39 py310
7 SDESC[py310]=           Extensible memoizing collections (3.10)
8 SDESC[py39]=            Extensible memoizing collections (3.9)
9 HOMEPAGE=               https://github.com/tkem/cachetools/
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/68/aa/5fc646cae6e997c3adf3b0a7e257cda75cff21fcba15354dffd67789b7bb
14 DISTFILE[1]=            cachetools-5.2.0-py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[py310]=           single
17 SPKGS[py39]=            single
18
19 OPTIONS_AVAILABLE=      PY39 PY310
20 OPTIONS_STANDARD=       none
21 VOPTS[py310]=           PY39=OFF PY310=ON
22 VOPTS[py39]=            PY39=ON PY310=OFF
23
24 DISTNAME=               cachetools-5.2.0.dist-info
25
26 GENERATED=              yes
27
28 [PY39].USES_ON=                         python:py39,wheel
29
30 [PY310].USES_ON=                        python:py310,wheel
31
32 [FILE:3164:descriptions/desc.single]
33 cachetools
34 ========================================================================
35
36    :alt: Latest PyPI version
37
38    :alt: CI build status
39
40    :alt: Documentation build status
41
42    :alt: Test coverage
43
44    :alt: Libraries.io SourceRank
45
46    :alt: License
47
48    :alt: Code style: black
49
50 This module provides various memoizing collections and decorators,
51 including variants of the Python Standard Library's `@lru_cache`_
52 function decorator.
53
54 .. code-block:: python
55
56    from cachetools import cached, LRUCache, TTLCache
57
58    # speed up calculating Fibonacci numbers with dynamic programming
59    @cached(cache={})
60    def fib(n):
61        return n if n < 2 else fib(n - 1) + fib(n - 2)
62
63    # cache least recently used Python Enhancement Proposals
64    @cached(cache=LRUCache(maxsize=32))
65    def get_pep(num):
66        url = 'http://www.python.org/dev/peps/pep-%04d/' % num
67        with urllib.request.urlopen(url) as s:
68            return s.read()
69
70    # cache weather data for no longer than ten minutes
71    @cached(cache=TTLCache(maxsize=1024, ttl=600))
72    def get_weather(place):
73        return owm.weather_at_place(place).get_weather()
74
75 For the purpose of this module, a *cache* is a mutable_ mapping_ of a
76 fixed maximum size.  When the cache is full, i.e. by adding another
77 item the cache would exceed its maximum size, the cache must choose
78 which item(s) to discard based on a suitable `cache algorithm`_.
79
80 This module provides multiple cache classes based on different cache
81 algorithms, as well as decorators for easily memoizing function and
82 method calls.
83
84 Installation
85 ------------------------------------------------------------------------
86
87 cachetools is available from PyPI_ and can be installed by running::
88
89   pip install cachetools
90
91 Typing stubs for this package are provided by typeshed_ and can be
92 installed by running::
93
94   pip install types-cachetools
95
96 Project Resources
97 ------------------------------------------------------------------------
98
99 - `Documentation`_
100 - `Issue tracker`_
101 - `Source code`_
102 - `Change log`_
103
104 Related Projects
105 ------------------------------------------------------------------------
106
107 - asyncache_: Helpers to use cachetools with async functions
108 - CacheToolsUtils_: Cachetools Utilities
109 - `kids.cache`_: Kids caching library
110 - shelved-cache_: Persistent cache for Python cachetools
111
112 License
113 ------------------------------------------------------------------------
114
115 Copyright (c) 2014-2022 Thomas Kemmer.
116
117 Licensed under the `MIT License`_.
118
119 .. _@lru_cache:
120 https://docs.python.org/3/library/functools.html#functools.lru_cache
121 .. _mutable: https://docs.python.org/dev/glossary.html#term-mutable
122 .. _mapping: https://docs.python.org/dev/glossary.html#term-mapping
123 .. _cache algorithm: https://en.wikipedia.org/wiki/Cache_algorithms
124
125 .. _PyPI: https://pypi.org/project/cachetools/
126 .. _typeshed: https://github.com/python/typeshed/
127 .. _Documentation: https://cachetools.readthedocs.io/
128 .. _Issue tracker: https://github.com/tkem/cachetools/issues/
129 .. _Source code: https://github.com/tkem/cachetools/
130 .. _Change log:
131 https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst
132 .. _MIT License: https://raw.github.com/tkem/cachetools/master/LICENSE
133
134
135 [FILE:112:distinfo]
136 f9f17d2aec496a9aa6b76f53e3b614c965223c061982d434d160f930c698a9db         9292 cachetools-5.2.0-py3-none-any.whl
137