python-memcached
Pure python memcached client
What it is and what it does
python-memcached is a pure-Python client for the memcached memory cache daemon. It allows you to store and retrieve values from one or more memcached servers, typically running on remote machines, without any compiled dependencies. The library has been stable since its original release and is now in maintenance mode, meaning it receives bug fixes and compatibility updates but not active feature development.
The package is used in applications that need distributed, in-memory caching—such as session storage, query result caching, or temporary data buffering. It integrates directly into Python code with no system library requirements, making it straightforward to add to existing projects. The description acknowledges that another library is receiving more active development, so the choice depends on whether you need newer features or prefer a simpler, stable interface.
Use it for:
- Cache database query results across multiple application servers to reduce database load.
- Store session data in a distributed cache for load-balanced web applications.
- Temporarily buffer computed results or API responses to avoid redundant processing.
- Implement a shared cache layer for microservices communicating over a network.
- Speed up web request handling by caching frequently accessed data in memory.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pure Python client library for connecting to and interacting with memcached memory cache servers, enabling distributed caching across one or more remote instances.
Yes, if you need a stable, dependency-free memcached client and are comfortable with maintenance-mode software. The pure-Python implementation and low install friction make it easy to adopt. However, if you require active development or new features, consider alternatives. No known security vulnerabilities as of the query date.
Install
python-memcached on PyPI
pip
pip install python-memcacheduv
uv add python-memcachedpoetry
poetry add python-memcachedInstalling python-memcached
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging—last release was 943 days ago—though the repository remains active with a recent commit on 2025-09-29. The package is stable and largely in maintenance mode; the description notes an alternative receiving more active enhancements.
License in practice
Licensed under the Python Software Foundation License, which is permissive. No restrictions on commercial or private use.
Quickstart
pip install python-memcached
Import the client library and connect to a memcached server to store and retrieve cached values.
A memcached server must be running and accessible at the configured host and port.
Verify before relying
- Whether the package works with all memcached protocol versions or only those tested in CI.
- Performance characteristics compared to other actively maintained alternatives.
- Whether all Python 3.6–3.12 versions listed in classifiers are actively tested or only declared.
- Exact module name and import syntax for basic usage.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 943 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,225,690/month — #4,192 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_memcached-1.62-py2.py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pylibmcpylibmc is a Python client for memcached, the…
permissive · top 15,000 on PyPI
pymemcacheA pure-Python memcached client implementing the…
permissive · top 5,000 on PyPI
cachelibCacheLib provides a unified API for interacting…
permissive · top 5,000 on PyPI
aiocacheProvides asyncio-compatible caching with…
unclear · top 5,000 on PyPI
aiomcacheAsyncio-based memcached client providing…
permissive · top 15,000 on PyPI
google-cloud-memcacheA Python client library for creating and…
permissive · top 1,000 on PyPI
django-cache-urlConfigures Django cache backends from…
permissive · top 15,000 on PyPI
BeakerBeaker provides session management and caching…
permissive · top 15,000 on PyPI
aws-secretsmanager-cachingCaches AWS Secrets Manager secrets in-process…
permissive · top 5,000 on PyPI