py-cachify 2.0.1__tar.gz → 2.0.2__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.
- {py_cachify-2.0.1 → py_cachify-2.0.2}/PKG-INFO +28 -20
- {py_cachify-2.0.1 → py_cachify-2.0.2}/README.md +27 -19
- {py_cachify-2.0.1 → py_cachify-2.0.2}/pyproject.toml +2 -2
- {py_cachify-2.0.1 → py_cachify-2.0.2}/LICENSE +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/__init__.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/__init__.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_cached.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_clients.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_exceptions.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_helpers.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_lib.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_lock.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_types/__init__.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_types/_common.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_types/_lock_wrap.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/_backend/_types/_reset_wrap.py +0 -0
- {py_cachify-2.0.1 → py_cachify-2.0.2}/py_cachify/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: py-cachify
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: Distributed locks, caching, and locking decorators at hand
|
|
5
5
|
Home-page: https://github.com/EzyGang/py-cachify
|
|
6
6
|
License: MIT
|
|
@@ -29,17 +29,21 @@ Requires-Dist: typing-extensions (>=4.12.2,<5.0.0)
|
|
|
29
29
|
Project-URL: Repository, https://github.com/EzyGang/py-cachify
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
|
|
32
|
-
# Py-Cachify
|
|
33
|
-
|
|
34
32
|
<p align="center">
|
|
33
|
+
<a href="https://py-cachify.readthedocs.io/latest/" target="_blank">
|
|
34
|
+
<img src="https://i.imgur.com/kObXEhW.png" alt="header">
|
|
35
|
+
</a>
|
|
35
36
|
<a href="https://opensource.org/licenses/MIT" target="_blank">
|
|
36
37
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License">
|
|
37
38
|
</a>
|
|
38
39
|
<a href="https://badge.fury.io/py/py-cachify" target="_blank">
|
|
39
40
|
<img src="https://badge.fury.io/py/py-cachify.svg" alt="PyPI version">
|
|
40
41
|
</a>
|
|
41
|
-
<a href="https://py-cachify
|
|
42
|
-
<img src="https://
|
|
42
|
+
<a href="https://pypi.org/project/py-cachify/" target="_blank">
|
|
43
|
+
<img src="https://img.shields.io/pypi/pyversions/py-cachify.svg?color=%2334D058" alt="supported versions">
|
|
44
|
+
</a>
|
|
45
|
+
<a href="https://coveralls.io/github/EzyGang/py-cachify?branch=main" target="_blank">
|
|
46
|
+
<img src="https://coveralls.io/repos/github/EzyGang/py-cachify/badge.png?branch=main" alt="Coverage Status">
|
|
43
47
|
</a>
|
|
44
48
|
</p>
|
|
45
49
|
<p align="center">
|
|
@@ -49,8 +53,8 @@ Description-Content-Type: text/markdown
|
|
|
49
53
|
<a href="https://github.com/EzyGang/py-cachify/actions/workflows/integration-tests.yml/badge.svg" target="_blank">
|
|
50
54
|
<img src="https://github.com/EzyGang/py-cachify/actions/workflows/integration-tests.yml/badge.svg" alt="Tests Status">
|
|
51
55
|
</a>
|
|
52
|
-
<a href="https://
|
|
53
|
-
<img src="https://
|
|
56
|
+
<a href="https://py-cachify.readthedocs.io/en/latest/?badge=latest" target="_blank">
|
|
57
|
+
<img src="https://readthedocs.org/projects/py-cachify/badge/?version=latest" alt="Documentation Status">
|
|
54
58
|
</a>
|
|
55
59
|
<a href="https://sonarcloud.io/summary/new_code?id=EzyGang_py-cachify" target="_blank">
|
|
56
60
|
<img src="https://sonarcloud.io/api/project_badges/measure?project=EzyGang_py-cachify&metric=reliability_rating" alt="Reliability Rating">
|
|
@@ -65,23 +69,27 @@ Description-Content-Type: text/markdown
|
|
|
65
69
|
|
|
66
70
|
---
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
**Py-Cachify** is a robust library tailored for developers looking to enhance their Python applications with elegant caching and locking mechanisms.
|
|
73
|
+
Whether you're building synchronous or asynchronous applications, Py-Cachify has you covered!
|
|
74
|
+
|
|
75
|
+
## Key Features:
|
|
76
|
+
- **Flexible Caching**: Effortlessly cache your function results, dramatically reducing execution time for expensive computations and I/O-bound tasks.
|
|
77
|
+
Utilize customizable keys and time-to-live (TTL) parameters.
|
|
78
|
+
|
|
79
|
+
- **Distributed Locks**: Ensure safe concurrent operation of functions with distributed locks.
|
|
80
|
+
Prevent race conditions and manage shared resources effectively across both sync and async contexts.
|
|
70
81
|
|
|
71
|
-
|
|
72
|
-
|
|
82
|
+
- **Backend Agnostic**: Easily integrate with different cache backends.
|
|
83
|
+
Choose between in-memory, Redis, or any custom backend that adheres to the provided client interfaces.
|
|
73
84
|
|
|
74
|
-
|
|
75
|
-
|
|
85
|
+
- **Decorators for Ease**: Use intuitive decorators like `@cached()` and `@lock()` to wrap your functions,
|
|
86
|
+
maintain clean code, and benefit from automatic cache management.
|
|
76
87
|
|
|
77
|
-
|
|
88
|
+
- **Type Safety & Documentation**: Fully type-annotated for enhanced IDE support and readability,
|
|
89
|
+
featuring comprehensive documentation and examples to guide you through various use cases.
|
|
78
90
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
* **Short**: Minimize code duplication. Add just one line of code to implement a cache or lock on your function.
|
|
82
|
-
* **Start simple**: The simplest example adds only a couple of lines of code: initialize a library and use the needed utility.
|
|
83
|
-
* **Backend agnostic**: Use whatever cache-backend you want to use. Py-Cachify is not forcing you into anything.
|
|
84
|
-
* **Test coverage**: Has 100% test coverage and supports Python 3.8+
|
|
91
|
+
- **Production Ready**: With 100% test coverage and usage in multiple commercial projects,
|
|
92
|
+
Py-Cachify is trusted for production environments, ensuring reliability and stability for your applications.
|
|
85
93
|
|
|
86
94
|
---
|
|
87
95
|
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
# Py-Cachify
|
|
2
|
-
|
|
3
1
|
<p align="center">
|
|
2
|
+
<a href="https://py-cachify.readthedocs.io/latest/" target="_blank">
|
|
3
|
+
<img src="https://i.imgur.com/kObXEhW.png" alt="header">
|
|
4
|
+
</a>
|
|
4
5
|
<a href="https://opensource.org/licenses/MIT" target="_blank">
|
|
5
6
|
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License">
|
|
6
7
|
</a>
|
|
7
8
|
<a href="https://badge.fury.io/py/py-cachify" target="_blank">
|
|
8
9
|
<img src="https://badge.fury.io/py/py-cachify.svg" alt="PyPI version">
|
|
9
10
|
</a>
|
|
10
|
-
<a href="https://py-cachify
|
|
11
|
-
<img src="https://
|
|
11
|
+
<a href="https://pypi.org/project/py-cachify/" target="_blank">
|
|
12
|
+
<img src="https://img.shields.io/pypi/pyversions/py-cachify.svg?color=%2334D058" alt="supported versions">
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://coveralls.io/github/EzyGang/py-cachify?branch=main" target="_blank">
|
|
15
|
+
<img src="https://coveralls.io/repos/github/EzyGang/py-cachify/badge.png?branch=main" alt="Coverage Status">
|
|
12
16
|
</a>
|
|
13
17
|
</p>
|
|
14
18
|
<p align="center">
|
|
@@ -18,8 +22,8 @@
|
|
|
18
22
|
<a href="https://github.com/EzyGang/py-cachify/actions/workflows/integration-tests.yml/badge.svg" target="_blank">
|
|
19
23
|
<img src="https://github.com/EzyGang/py-cachify/actions/workflows/integration-tests.yml/badge.svg" alt="Tests Status">
|
|
20
24
|
</a>
|
|
21
|
-
<a href="https://
|
|
22
|
-
<img src="https://
|
|
25
|
+
<a href="https://py-cachify.readthedocs.io/en/latest/?badge=latest" target="_blank">
|
|
26
|
+
<img src="https://readthedocs.org/projects/py-cachify/badge/?version=latest" alt="Documentation Status">
|
|
23
27
|
</a>
|
|
24
28
|
<a href="https://sonarcloud.io/summary/new_code?id=EzyGang_py-cachify" target="_blank">
|
|
25
29
|
<img src="https://sonarcloud.io/api/project_badges/measure?project=EzyGang_py-cachify&metric=reliability_rating" alt="Reliability Rating">
|
|
@@ -34,23 +38,27 @@
|
|
|
34
38
|
|
|
35
39
|
---
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
**Py-Cachify** is a robust library tailored for developers looking to enhance their Python applications with elegant caching and locking mechanisms.
|
|
42
|
+
Whether you're building synchronous or asynchronous applications, Py-Cachify has you covered!
|
|
43
|
+
|
|
44
|
+
## Key Features:
|
|
45
|
+
- **Flexible Caching**: Effortlessly cache your function results, dramatically reducing execution time for expensive computations and I/O-bound tasks.
|
|
46
|
+
Utilize customizable keys and time-to-live (TTL) parameters.
|
|
47
|
+
|
|
48
|
+
- **Distributed Locks**: Ensure safe concurrent operation of functions with distributed locks.
|
|
49
|
+
Prevent race conditions and manage shared resources effectively across both sync and async contexts.
|
|
39
50
|
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
- **Backend Agnostic**: Easily integrate with different cache backends.
|
|
52
|
+
Choose between in-memory, Redis, or any custom backend that adheres to the provided client interfaces.
|
|
42
53
|
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
- **Decorators for Ease**: Use intuitive decorators like `@cached()` and `@lock()` to wrap your functions,
|
|
55
|
+
maintain clean code, and benefit from automatic cache management.
|
|
45
56
|
|
|
46
|
-
|
|
57
|
+
- **Type Safety & Documentation**: Fully type-annotated for enhanced IDE support and readability,
|
|
58
|
+
featuring comprehensive documentation and examples to guide you through various use cases.
|
|
47
59
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
* **Short**: Minimize code duplication. Add just one line of code to implement a cache or lock on your function.
|
|
51
|
-
* **Start simple**: The simplest example adds only a couple of lines of code: initialize a library and use the needed utility.
|
|
52
|
-
* **Backend agnostic**: Use whatever cache-backend you want to use. Py-Cachify is not forcing you into anything.
|
|
53
|
-
* **Test coverage**: Has 100% test coverage and supports Python 3.8+
|
|
60
|
+
- **Production Ready**: With 100% test coverage and usage in multiple commercial projects,
|
|
61
|
+
Py-Cachify is trusted for production environments, ensuring reliability and stability for your applications.
|
|
54
62
|
|
|
55
63
|
---
|
|
56
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "py-cachify"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
homepage = "https://github.com/EzyGang/py-cachify"
|
|
5
5
|
repository = "https://github.com/EzyGang/py-cachify"
|
|
6
6
|
license = "MIT"
|
|
@@ -49,7 +49,7 @@ mypy = "^1.11.1"
|
|
|
49
49
|
coverage = "^7.6.1"
|
|
50
50
|
pytest-asyncio = "^0.24.0"
|
|
51
51
|
pytest-socket = "^0.7.0"
|
|
52
|
-
ruff = "^0.
|
|
52
|
+
ruff = "^0.7.1"
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
[tool.poetry.group.docs.dependencies]
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|