diskcache-community 5.8.2__tar.gz → 5.8.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {diskcache_community-5.8.2/diskcache_community.egg-info → diskcache_community-5.8.4}/PKG-INFO +7 -24
  2. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/README.md +3 -18
  3. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/__init__.py +4 -4
  4. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/_types.pyi +10 -2
  5. diskcache_community-5.8.4/diskcache_community/arrays.py +717 -0
  6. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/arrays.pyi +4 -0
  7. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/core.py +140 -55
  8. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/core.pyi +2 -1
  9. {diskcache_community-5.8.2 → diskcache_community-5.8.4/diskcache_community.egg-info}/PKG-INFO +7 -24
  10. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community.egg-info/SOURCES.txt +0 -1
  11. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/pyproject.toml +4 -5
  12. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_core.py +44 -0
  13. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_safedisk.py +91 -15
  14. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_safedisk_numpy.py +784 -31
  15. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_safedisk_types.py +39 -0
  16. diskcache_community-5.8.2/NOTICE +0 -9
  17. diskcache_community-5.8.2/diskcache_community/arrays.py +0 -322
  18. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/LICENSE +0 -0
  19. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/__init__.pyi +0 -0
  20. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/cli.py +0 -0
  21. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/djangocache.py +0 -0
  22. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/djangocache.pyi +0 -0
  23. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/fanout.py +0 -0
  24. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/fanout.pyi +0 -0
  25. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/persistent.py +0 -0
  26. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/persistent.pyi +0 -0
  27. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/py.typed +0 -0
  28. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/recipes.py +0 -0
  29. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community/recipes.pyi +0 -0
  30. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community.egg-info/dependency_links.txt +0 -0
  31. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/diskcache_community.egg-info/top_level.txt +0 -0
  32. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/setup.cfg +0 -0
  33. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_default_disk.py +0 -0
  34. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_deque.py +0 -0
  35. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_djangocache.py +0 -0
  36. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_doctest.py +0 -0
  37. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_entry_errors.py +0 -0
  38. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_fanout.py +0 -0
  39. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_golden.py +0 -0
  40. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_index.py +0 -0
  41. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_init.py +0 -0
  42. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_readonly.py +0 -0
  43. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_recipes.py +0 -0
  44. {diskcache_community-5.8.2 → diskcache_community-5.8.4}/tests/test_safejsondisk.py +0 -0
@@ -1,15 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diskcache-community
3
- Version: 5.8.2
4
- Summary: Disk Cache -- Disk and file backed persistent cache.
5
- Author: Grant Jenks
6
- Maintainer: diskcache-community contributors
3
+ Version: 5.8.4
4
+ Summary: Disk Cache - Disk and file backed persistent cache.
5
+ Author: August V.
6
+ Maintainer: August V.
7
7
  License-Expression: Apache-2.0
8
8
  Project-URL: Homepage, https://github.com/secondwindoss/diskcache-community
9
9
  Project-URL: Documentation, https://diskcache-community.readthedocs.io/
10
10
  Project-URL: Source, https://github.com/secondwindoss/diskcache-community
11
11
  Project-URL: Tracker, https://github.com/secondwindoss/diskcache-community/issues
12
- Project-URL: Upstream, https://github.com/grantjenks/python-diskcache
13
12
  Classifier: Development Status :: 5 - Production/Stable
14
13
  Classifier: Intended Audience :: Developers
15
14
  Classifier: Natural Language :: English
@@ -25,7 +24,6 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
25
24
  Requires-Python: >=3.8
26
25
  Description-Content-Type: text/markdown
27
26
  License-File: LICENSE
28
- License-File: NOTICE
29
27
  Dynamic: license-file
30
28
 
31
29
  <br />
@@ -57,16 +55,6 @@ Dynamic: license-file
57
55
  </p>
58
56
  <br />
59
57
 
60
- > [!IMPORTANT]
61
- > This is a community fork of [python-diskcache](https://github.com/grantjenks/python-diskcache),
62
- > whose last release was 5.6.3 in August 2023. It is published on PyPI as
63
- > `diskcache-community` and imported as `diskcache_community`, so it installs
64
- > next to the upstream `diskcache` package. It carries the fix path for
65
- > [CVE-2025-69872](https://github.com/advisories/GHSA-w8v5-vhqr-4h9v) and
66
- > reads and writes the same cache directories as 5.6.3.
67
- > See [Why this fork](#why-this-fork), [Migrating from diskcache](#migrating-from-diskcache)
68
- > and [Fix CVE-2025-69872 in diskcache](https://diskcache-community.readthedocs.io/en/latest/fix-cve-2025-69872.html).
69
-
70
58
  ## Install
71
59
 
72
60
  ```sh
@@ -157,8 +145,7 @@ The upstream project stopped releasing after 5.6.3 (August 2023) and its last
157
145
  commit landed in March 2024. In 2025, CVE-2025-69872 was published against
158
146
  every released version: the cache reads pickled values with `pickle.load`, so
159
147
  anyone who can write into the cache directory can run code in the process
160
- that reads from it. The package still works, but scanners flag it and there
161
- is no fixed upstream version.
148
+ that reads from it.
162
149
 
163
150
  This fork publishes the same library as `diskcache-community`. It keeps the
164
151
  `cache.db` schema, the file layout, the serialization modes and the memoize
@@ -171,9 +158,6 @@ dependencies in the same environment still use the upstream `diskcache`.
171
158
  The [changelog](CHANGELOG.md) lists every change and
172
159
  [SECURITY.md](SECURITY.md) describes what is and is not fixed.
173
160
 
174
- DiskCache was written and maintained by Grant Jenks from 2016 to 2023. This
175
- fork keeps his license, copyright and author credit; see [NOTICE](NOTICE).
176
-
177
161
  ## Migrating from diskcache
178
162
 
179
163
  The public API and the files on disk are unchanged; only the import name
@@ -252,6 +236,5 @@ how to run the tests. Report vulnerabilities privately as described in
252
236
 
253
237
  ## License
254
238
 
255
- Copyright 2016-2023 Grant Jenks. Modifications in this fork are copyright
256
- 2026 diskcache-community contributors. Licensed under the
257
- [Apache License, Version 2.0](LICENSE).
239
+ Copyright 2026 August V.
240
+ Licensed under the [Apache License, Version 2.0](LICENSE).
@@ -27,16 +27,6 @@
27
27
  </p>
28
28
  <br />
29
29
 
30
- > [!IMPORTANT]
31
- > This is a community fork of [python-diskcache](https://github.com/grantjenks/python-diskcache),
32
- > whose last release was 5.6.3 in August 2023. It is published on PyPI as
33
- > `diskcache-community` and imported as `diskcache_community`, so it installs
34
- > next to the upstream `diskcache` package. It carries the fix path for
35
- > [CVE-2025-69872](https://github.com/advisories/GHSA-w8v5-vhqr-4h9v) and
36
- > reads and writes the same cache directories as 5.6.3.
37
- > See [Why this fork](#why-this-fork), [Migrating from diskcache](#migrating-from-diskcache)
38
- > and [Fix CVE-2025-69872 in diskcache](https://diskcache-community.readthedocs.io/en/latest/fix-cve-2025-69872.html).
39
-
40
30
  ## Install
41
31
 
42
32
  ```sh
@@ -127,8 +117,7 @@ The upstream project stopped releasing after 5.6.3 (August 2023) and its last
127
117
  commit landed in March 2024. In 2025, CVE-2025-69872 was published against
128
118
  every released version: the cache reads pickled values with `pickle.load`, so
129
119
  anyone who can write into the cache directory can run code in the process
130
- that reads from it. The package still works, but scanners flag it and there
131
- is no fixed upstream version.
120
+ that reads from it.
132
121
 
133
122
  This fork publishes the same library as `diskcache-community`. It keeps the
134
123
  `cache.db` schema, the file layout, the serialization modes and the memoize
@@ -141,9 +130,6 @@ dependencies in the same environment still use the upstream `diskcache`.
141
130
  The [changelog](CHANGELOG.md) lists every change and
142
131
  [SECURITY.md](SECURITY.md) describes what is and is not fixed.
143
132
 
144
- DiskCache was written and maintained by Grant Jenks from 2016 to 2023. This
145
- fork keeps his license, copyright and author credit; see [NOTICE](NOTICE).
146
-
147
133
  ## Migrating from diskcache
148
134
 
149
135
  The public API and the files on disk are unchanged; only the import name
@@ -222,6 +208,5 @@ how to run the tests. Report vulnerabilities privately as described in
222
208
 
223
209
  ## License
224
210
 
225
- Copyright 2016-2023 Grant Jenks. Modifications in this fork are copyright
226
- 2026 diskcache-community contributors. Licensed under the
227
- [Apache License, Version 2.0](LICENSE).
211
+ Copyright 2026 August V.
212
+ Licensed under the [Apache License, Version 2.0](LICENSE).
@@ -72,8 +72,8 @@ except Exception: # pylint: disable=broad-except # pragma: no cover
72
72
 
73
73
 
74
74
  __title__ = 'diskcache-community'
75
- __version__ = '5.8.2'
76
- __build__ = 0x050802
77
- __author__ = 'Grant Jenks'
75
+ __version__ = '5.8.4'
76
+ __build__ = 0x050804
77
+ __author__ = 'August V.'
78
78
  __license__ = 'Apache 2.0'
79
- __copyright__ = 'Copyright 2016-2023 Grant Jenks'
79
+ __copyright__ = 'Copyright 2026 August V.'
@@ -173,10 +173,18 @@ class BaseCache(Protocol):
173
173
  retry: bool = ...,
174
174
  ) -> bool: ...
175
175
  def incr(
176
- self, key: Any, delta: int = ..., default: int = ..., retry: bool = ...
176
+ self,
177
+ key: Any,
178
+ delta: int = ...,
179
+ default: int | None = ...,
180
+ retry: bool = ...,
177
181
  ) -> int: ...
178
182
  def decr(
179
- self, key: Any, delta: int = ..., default: int = ..., retry: bool = ...
183
+ self,
184
+ key: Any,
185
+ delta: int = ...,
186
+ default: int | None = ...,
187
+ retry: bool = ...,
180
188
  ) -> int: ...
181
189
  def get( # noqa: PLR0913
182
190
  self,