lericson

pylibmc: Python Client for Memcached in C

pylibmc is a C-written Python client for memcached, built on the libmemcached interface from TangentOrg. It gives Python applications a way to use memcached for caching, with support for Python 2 and 3 interoperability.

InactiveCBSD-3-ClausePythonLibraryMemcached
Stars
493
Forks
140
Stars, last 30 days
+0
Last commit
1.5 years ago
Contributors
41

Our take

Inactiveno commits in over a year

Health score

29/100

How it is scored
Activity
19
Community
55
Issues
21
Pull requests
20

+0 stars in the last 30 days

pylibmc is a focused native Python client for memcached, but its inactive status and lack of recent releases make current maintenance worth checking before adoption.

Good fit if

  • Your Python application needs a client for memcached built on libmemcached.
  • You value a C implementation and the documented Python 2 and 3 interoperability behavior.
  • The BSD 3-Clause license suits your project.

Look elsewhere if

  • You need evidence of recent project activity or releases, as there have been no commits or releases in the past year.
  • Your team requires recent issue or pull request handling, with no issues closed or pull requests merged in the past 90 days.
  • You need a client for a cache other than memcached.
All health signals
Last commit2025-04-12 (1.5 years ago)
Commits, last 90 days0
Releases, last 12 months0 (latest 1.6.3, 2022-08-26)
Contributors41 (top contributor: 72% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age17 years

Checked on 2026-10-30 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

493

Forks

139

Change since Nov 16, 2026: 0 stars·0 forks

Overview

pylibmc is a Python client for memcached, written in C and built on the libmemcached interface from TangentOrg. It lets Python applications use memcached as a cache through a native client rather than implementing the memcached protocol themselves.

The project supports Python 3 and documents interoperability details such as UTF-8 string storage and a pickle_protocol behavior for exchanging data between Python 2 and 3. It is intended for developers adding memcached caching to Python services or applications.

Key Features

  • Provides a Python client for memcached.
  • Implements the client in C.
  • Uses the libmemcached interface from TangentOrg.
  • Supports Python 3.
  • Stores Unicode strings as UTF-8 in the 1.6.0 release, rather than pickling them.
  • Offers a pickle_protocol behavior for Python 2 and 3 interoperability.
  • Includes zlib inflation support, with a historical fix for a memory error and double-free bug.

Use Cases

  • Python service developers can use memcached to cache frequently accessed data.
  • Teams with existing memcached infrastructure can connect Python applications to it through a native client.
  • Applications that exchange cached values across Python 2 and Python 3 environments can use the pickle protocol behavior.
  • Developers maintaining systems that store Unicode values in memcached can use the UTF-8 string handling introduced in version 1.6.0.

What you need

Detected in the repository

  • Python (from setup.py)
  • A test suite and automated checks on GitHub Actions

License in plain words

BSD-3-Clausepermissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the copyright and license notice; the authors' names cannot endorse your product
  • Share your changes: no

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

See the project documentation for installation and usage instructions. The README provides project and release details.

Alternatives

  • dogpile.cache: dogpile.cache provides a higher-level, backend-agnostic Python caching API, while pylibmc is a direct client for memcached.
ProjectLanguageLicenseStarsStatus
pylibmcCBSD-3-Clause493Inactive
dogpile.cachePythonMIT299Maintained

Considerations

The project is marked inactive, with no commits in over a year and no release in the past year. Its latest listed release is 1.6.3 from 2022, so verify compatibility and maintenance expectations for your environment before depending on it. Because the client is written in C and uses libmemcached, account for native-library compatibility in your build and deployment setup. The BSD 3-Clause license permits broad use subject to its license conditions.

Found this useful?

Share it with someone who would like pylibmc.

Comparisons