{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/5"}],"enrichment":{"capability":"Provides the lru_cache decorator from Python 3.3's functools module for Python environments that lack it natively.","skillfed_tags":["caching","compatibility"],"use_cases":["Caching expensive computations (database queries, API calls, mathematical calculations) in long-running applications.","Providing function result caching in libraries that must support multiple Python versions via a single import.","Optimizing recursive algorithms by caching intermediate results to reduce redundant computation.","Reducing redundant I/O operations in utilities that repeatedly call the same function with overlapping parameters.","Ensuring consistent behavior across codebases that target both older and modern Python versions."],"what_it_does":"This package backports the lru_cache decorator from Python 3.3's functools module, allowing developers to use function result caching via a simple decorator on Python versions that lack it. The decorator caches function results based on input arguments, avoiding redundant computation for repeated calls with the same parameters.\n\nThe package is designed for compatibility scenarios where code must run on Python versions predating lru_cache's introduction. It follows the standard import-fallback pattern: code attempts to import from the standard library first, then falls back to this backport if unavailable. With zero runtime dependencies and a permissive MIT license, it introduces minimal overhead to any project that includes it.","worth_installing":"Yes, if you need function caching and must support Python versions before 3.2, or if you want a single import pattern across multiple Python versions. However, verify whether your actual minimum Python version truly requires this backport\u2014Python 3.8+ already includes functools.lru_cache natively, making this package redundant for most modern codebases."},"id":"backports-functools-lru-cache","links":{"html":"https://skillfed.io/packages/backports-functools-lru-cache","md":"https://skillfed.io/packages/backports-functools-lru-cache.md","pypi":"https://pypi.org/project/backports-functools-lru-cache/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-12-13","license_spdx":null,"license_treatment":"permissive","name":"backports.functools-lru-cache","python_support":"supports_current","summary":"Backport of functools.lru_cache"},"popularity":{"monthly_downloads":1705926,"position":3635,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
