Comparison
cachettl vs expiring-dict vs expiringdict
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
cachettl is an elegant LRU TTL cache decorator that also works with asyncio. It has the cache_info(), cache_clear() methods and access to the remainingttl property.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install cachettlPython dict with TTL support for auto-expiring caches
Low maintenance activity. Last release 21 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install expiring-dictDictionary with auto-expiring values for caching purposes
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install expiringdictIn short
- cachettl is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- expiringdict looks abandoned: avoid it for new projects.
- expiring-dict is the most used: 169.1K downloads a month.
- expiring-dict also has the best Pythie’s Index (24).
Side by side
| Metric | cachettl | expiring-dict | expiringdict |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 18 | Pythie’s Index: 24 | Pythie’s Index: 19 |
| Verdict | Slowing down | Low maintenance activity | Likely abandoned |
| Downloads / month | 72.5K | 169.1K | 11.1M |
| Downloads, month over month | -1% | -1% | +5% |
| GitHub stars | 1 | 25 | – |
| Stars, last 7 days | – | – | – |
| Direct dependents | 0 | 5 | 47 |
| Last release | Jul 6, 2024 | Feb 28, 2025 | Jun 21, 2022 |
| Releases, 12 months | 0 | 0 | 0 |
| Weeks with commits | 0 / 26 | 0 / 26 | – |
| Recent contributors | 1 | 3 | – |
| First release | Jun 2024 | Jul 2019 | Sep 2013 |
| Python versions | 3.7 – 3.13 | – | 3.6 |
| License | MIT | MIT | Apache-2.0 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.