skillfed

python-memcached

Pure python memcached client

python-memcached v1.62 1.2M downloads/30d#4,192 on PyPI470
Permissive license AGING released

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-memcached

uv

uv add python-memcached

poetry

poetry add python-memcached

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules

Tags

memcached client pythondistributed cache clientin-memory cache interfacememcached python librarycache server connectionremote memory cachepython memcached connector
cachingdistributed-systemsmemcached

More Python Modules packages