|
5 | 5 | **Cachier** is a Python library providing persistent, stale-free, local and cross-machine caching for Python functions via a decorator API. It supports multiple backends (pickle, memory, MongoDB, SQL, Redis), is thread-safe, and is designed for extensibility and robust cross-platform support. |
6 | 6 |
|
7 | 7 | - **Repository:** [python-cachier/cachier](https://github.com/python-cachier/cachier) |
8 | | -- **Primary Language:** Python 3.9+ |
| 8 | +- **Primary Language:** Python 3.10+ |
9 | 9 | - **Key Dependencies:** `portalocker`, `watchdog` (optional: `pymongo`, `sqlalchemy`, `redis`) |
10 | 10 | - **Test Framework:** `pytest` with backend-specific markers |
11 | 11 | - **Linting:** `ruff` (replaces black/flake8) |
@@ -98,7 +98,7 @@ ______________________________________________________________________ |
98 | 98 |
|
99 | 99 | ### 1. **Code Style & Quality** |
100 | 100 |
|
101 | | -- **Python 3.9+** only. |
| 101 | +- **Python 3.10+** only. |
102 | 102 | - **Type annotations** required for all new code. |
103 | 103 | - **Docstrings:** Use numpy style, multi-line, no single-line docstrings. |
104 | 104 | - **Lint:** Run `ruff` before PRs. Use per-line/file ignores only for justified cases. |
@@ -145,7 +145,7 @@ ______________________________________________________________________ |
145 | 145 | ### 7. **Backward Compatibility** |
146 | 146 |
|
147 | 147 | - **Public API must remain backward compatible** unless breaking change is approved. |
148 | | -- **Support for Python 3.9+ only.** |
| 148 | +- **Support for Python 3.10+ only.** |
149 | 149 |
|
150 | 150 | ### 8. **Global Configuration & Compatibility** |
151 | 151 |
|
@@ -565,7 +565,7 @@ ______________________________________________________________________ |
565 | 565 | - **When adding new features/backends, update all relevant docs, tests, CI, and requirements files.** |
566 | 566 | - **If a test fails due to missing optional dependency, skip gracefully.** |
567 | 567 | - **Never emit warnings/errors for missing optional deps at import time.** |
568 | | -- **All code must be Python 3.9+ compatible.** |
| 568 | +- **All code must be Python 3.10+ compatible.** |
569 | 569 | - **All new code must have full type annotations and numpy-style docstrings.** |
570 | 570 | - **Backend consistency:** Ensure all backends (pickle, memory, mongo, sql, redis) are supported.\*\* |
571 | 571 | - **Validation:** Test examples in this file work: `python -c "from cachier import cachier; ..."` should succeed. |
|
0 commit comments