onecache 0.7.2__tar.gz → 0.8.1__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.
- {onecache-0.7.2 → onecache-0.8.1}/PKG-INFO +18 -11
- {onecache-0.7.2 → onecache-0.8.1}/README.md +15 -7
- {onecache-0.7.2 → onecache-0.8.1}/pyproject.toml +5 -3
- {onecache-0.7.2 → onecache-0.8.1}/onecache/__init__.py +0 -0
- {onecache-0.7.2 → onecache-0.8.1}/onecache/cache_value.py +0 -0
- {onecache-0.7.2 → onecache-0.8.1}/onecache/utils.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: onecache
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Summary: Python cache for sync and async code
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Johanderson Mogollon
|
|
7
7
|
Author-email: johander1822@gmail.com
|
|
8
|
-
Requires-Python: >=3.8
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -19,7 +19,6 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
21
21
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
22
|
-
Requires-Dist: packaging (>=24.1,<25.0)
|
|
23
22
|
Description-Content-Type: text/markdown
|
|
24
23
|
|
|
25
24
|
|
|
@@ -29,9 +28,9 @@ Description-Content-Type: text/markdown
|
|
|
29
28
|
|
|
30
29
|
Python cache for sync and async code.
|
|
31
30
|
|
|
32
|
-
Cache uses LRU
|
|
31
|
+
Cache uses an LRU algorithm and can optionally set TTLs per entry.
|
|
33
32
|
|
|
34
|
-
Tested
|
|
33
|
+
Tested automatically on CPython 3.8–3.14 and PyPy 3.9 across Linux, macOS, and Windows (see the workflow badge). Earlier versions may work but are not part of the supported matrix.
|
|
35
34
|
|
|
36
35
|
# Usage
|
|
37
36
|
|
|
@@ -87,12 +86,20 @@ If num of records exceds maxsize, it drops the oldest.
|
|
|
87
86
|
|
|
88
87
|
# Development
|
|
89
88
|
|
|
90
|
-
Install
|
|
89
|
+
Install dependencies with Poetry (includes dev + test groups):
|
|
91
90
|
```bash
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
poetry install --with test,dev
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Run the test suite and coverage locally:
|
|
95
|
+
```bash
|
|
96
|
+
poetry run pytest --cov
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Lint and format checks:
|
|
100
|
+
```bash
|
|
101
|
+
poetry run flake8
|
|
102
|
+
poetry run autopep8 --in-place --recursive onecache tests
|
|
96
103
|
```
|
|
97
104
|
|
|
98
105
|
# Contribute
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Python cache for sync and async code.
|
|
7
7
|
|
|
8
|
-
Cache uses LRU
|
|
8
|
+
Cache uses an LRU algorithm and can optionally set TTLs per entry.
|
|
9
9
|
|
|
10
|
-
Tested
|
|
10
|
+
Tested automatically on CPython 3.8–3.14 and PyPy 3.9 across Linux, macOS, and Windows (see the workflow badge). Earlier versions may work but are not part of the supported matrix.
|
|
11
11
|
|
|
12
12
|
# Usage
|
|
13
13
|
|
|
@@ -63,12 +63,20 @@ If num of records exceds maxsize, it drops the oldest.
|
|
|
63
63
|
|
|
64
64
|
# Development
|
|
65
65
|
|
|
66
|
-
Install
|
|
66
|
+
Install dependencies with Poetry (includes dev + test groups):
|
|
67
67
|
```bash
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
poetry install --with test,dev
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Run the test suite and coverage locally:
|
|
72
|
+
```bash
|
|
73
|
+
poetry run pytest --cov
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Lint and format checks:
|
|
77
|
+
```bash
|
|
78
|
+
poetry run flake8
|
|
79
|
+
poetry run autopep8 --in-place --recursive onecache tests
|
|
72
80
|
```
|
|
73
81
|
|
|
74
82
|
# Contribute
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "onecache"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8.1"
|
|
4
4
|
description = "Python cache for sync and async code"
|
|
5
5
|
authors = ["Johanderson Mogollon <johander1822@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -14,13 +14,15 @@ classifiers = [
|
|
|
14
14
|
"Programming Language :: Python :: 3.9",
|
|
15
15
|
"Programming Language :: Python :: 3.10",
|
|
16
16
|
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Programming Language :: Python :: 3.14",
|
|
17
20
|
"Programming Language :: Python :: Implementation :: PyPy",
|
|
18
21
|
]
|
|
19
22
|
# packages = [{include = "onecache"}]
|
|
20
23
|
|
|
21
24
|
[tool.poetry.dependencies]
|
|
22
|
-
python = ">=3.8
|
|
23
|
-
packaging = "^24.1"
|
|
25
|
+
python = ">=3.8"
|
|
24
26
|
|
|
25
27
|
[tool.poetry.group.test.dependencies]
|
|
26
28
|
flake8 = {version= "^7.1.0", python = ">=3.8.1"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|