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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3cacheable
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Cache data which access frequently
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License-Expression: MIT
@@ -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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: k3cacheable
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: Cache data which access frequently
5
5
  Author-email: Zhang Yanpo <drdr.xp@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "k3cacheable"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "Cache data which access frequently"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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