$npx skillfedfor your agent

memoization

A powerful caching library for Python, with TTL support and multiple algorithm options. (https://github.com/lonelyenvoy/python-memoization)

SkipPyPI LibrariesReleased Aug 20211.3M downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — memoization-0.4.0.tar.gz · builds from source
v0.4.0 · released 2021-08-01 · Python >=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4

No—the package is abandoned (last update August 2021, no commits for 1839 days) and receives no maintenance or security updates. While the MIT license is permissive and the library is stable for existing code, the high install friction combined with unmaintained status makes it a poor choice for new projects. Consider functools.lru_cache for standard use cases or an actively maintained alternative for TTL/algorithm flexibility.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.4 or later (supports 3.4–3.10); no external dependencies but package is unmaintained since 2021.
  • High install friction: package is abandoned (last commit 2021-08-01, 1839 days ago) with no runtime dependencies.
  • No recent maintenance or security updates available.

License · maintenance · safety

MIT (permissive) — MIT license permits permissive use, modification, and distribution with minimal restrictions—suitable for most projects, though abandoned status means no ongoing license compliance updates.

last release 2021-08-01 (1839 days) · last repo commit 2021-08-01 · 246 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,253,785 downloads/mo, #4,157 on PyPI

Verify before relying

from memoization import cached

@cached
def expensive_function(arg):
    return arg * 2

result = expensive_function(5)  # cached on repeat calls
  • Whether the package works correctly with Python 3.11+ despite classifier support only through 3.10.
  • Whether thread-safety implementation remains sound given no updates since 2021.
  • Real-world performance impact of the order_independent option relative to default behavior.
Same gist for agents: .md · .json

What it is and what it does

Memoization is a decorator-based caching library that stores function results to avoid recomputation on repeated calls with the same arguments. It extends Python's built-in functools.lru_cache by adding TTL (time-to-live) expiration, multiple eviction algorithms (LRU, LFU, FIFO), support for unhashable argument types like dicts and lists, and custom cache key generation. The library is thread-safe by default and provides cache statistics (hits, misses, size) for monitoring.

The package is designed for functions where repeated computation is expensive—database queries, API calls, or complex calculations—and where you need finer control over cache behavior than the standard library offers. It handles edge cases like hash collision attacks by always treating arguments as typed (f(3) and f(3.0) cache separately) and allows custom key makers for non-built-in object types.

Use it for

  • Cache expensive database queries with automatic expiration using TTL to keep results fresh.
  • Decorate API client methods to avoid redundant network calls while respecting rate limits.
  • Memoize recursive algorithms or mathematical computations with bounded cache size using LFU or FIFO eviction.
  • Cache results of functions accepting unhashable arguments (dicts, lists) that functools.lru_cache cannot handle.
  • Monitor cache effectiveness in production via cache_info() to tune max_size and algorithm choice.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—the package is abandoned (last update August 2021, no commits for 1839 days) and receives no maintenance or security updates.

While the MIT license is permissive and the library is stable for existing code, the high install friction combined with unmaintained status makes it a poor choice for new projects. Consider functools.lru_cache for standard use cases or an actively maintained alternative for TTL/algorithm flexibility.

Install

memoization on PyPI

Before you install

High install friction: package is abandoned (last commit 2021-08-01, 1839 days ago) with no runtime dependencies. No recent maintenance or security updates available.

Requires Python 3.4 or later (supports 3.4–3.10); no external dependencies but package is unmaintained since 2021.

License in practice

MIT license permits permissive use, modification, and distribution with minimal restrictions—suitable for most projects, though abandoned status means no ongoing license compliance updates.

Quickstart

from memoization import cached

@cached
def expensive_function(arg):
    return arg * 2

result = expensive_function(5)  # cached on repeat calls

Verify before relying

  • Whether the package works correctly with Python 3.11+ despite classifier support only through 3.10.
  • Whether thread-safety implementation remains sound given no updates since 2021.
  • Real-world performance impact of the order_independent option relative to default behavior.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceAbandoned 1,839 days since the last release
Last repo commit
First released
Downloads1,253,785 / month, #4,157 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: memoization-0.4.0.tar.gz

Tags

Capabilities
function result caching decoratormemoization with TTL supportcache with LRU LFU FIFO algorithmsdecorator for function cachingunhashable argument cachingthread-safe function memoizationcache expiration time-to-live
Topics
cachingdecoratormemoization
PyPI keywords
memoizationmemorizationrememberdecoratorcachecachingfunctioncallablefunctionalttllimitedcapacityfasthigh-performanceoptimization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “memoization with TTL support”

  • memoizationDecorator-based function result caching with configurable TTL,…
  • cachetools-asyncProvides async-aware memoization decorators for Python asyncio…
  • cacheoutCacheout provides in-memory caching with multiple eviction strategies…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also cacheout · cachetools · klepto · cachettl · python-redis-cache · django-cache-memoize · async-lru · cached_method · methodtools · asyncache