k3cacheable 0.1.4__tar.gz → 0.1.5__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.
- {k3cacheable-0.1.4/k3cacheable.egg-info → k3cacheable-0.1.5}/PKG-INFO +1 -1
- k3cacheable-0.1.5/__init__.py +30 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5/k3cacheable.egg-info}/PKG-INFO +1 -1
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/pyproject.toml +1 -1
- k3cacheable-0.1.4/__init__.py +0 -23
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/LICENSE +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/README.md +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/cacheable.py +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/k3cacheable.egg-info/SOURCES.txt +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/k3cacheable.egg-info/dependency_links.txt +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/k3cacheable.egg-info/requires.txt +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/k3cacheable.egg-info/top_level.txt +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/setup.cfg +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/synopsis.py +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/test/test_doctest.py +0 -0
- {k3cacheable-0.1.4 → k3cacheable-0.1.5}/test/test_k3cacheable.py +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Cache data which access frequently.
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# from .proc import CalledProcessError
|
|
7
|
+
# from .proc import ProcError
|
|
8
|
+
|
|
9
|
+
from .cacheable import (
|
|
10
|
+
LRU,
|
|
11
|
+
Cacheable,
|
|
12
|
+
cache,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"LRU",
|
|
17
|
+
"Cacheable",
|
|
18
|
+
"cache",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def __getattr__(name: str) -> str:
|
|
23
|
+
# importlib.metadata takes about 20 ms to import, so it is loaded only
|
|
24
|
+
# when __version__ is read
|
|
25
|
+
if name != "__version__":
|
|
26
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
27
|
+
|
|
28
|
+
from importlib.metadata import version
|
|
29
|
+
|
|
30
|
+
return version("k3cacheable")
|
k3cacheable-0.1.4/__init__.py
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Cache data which access frequently.
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
# from .proc import CalledProcessError
|
|
7
|
-
# from .proc import ProcError
|
|
8
|
-
|
|
9
|
-
from importlib.metadata import version
|
|
10
|
-
|
|
11
|
-
__version__ = version("k3cacheable")
|
|
12
|
-
|
|
13
|
-
from .cacheable import (
|
|
14
|
-
LRU,
|
|
15
|
-
Cacheable,
|
|
16
|
-
cache,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
__all__ = [
|
|
20
|
-
"LRU",
|
|
21
|
-
"Cacheable",
|
|
22
|
-
"cache",
|
|
23
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|