pylibmc: A Fast Python Client for Memcached
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
pylibmc is a high-performance Python client for Memcached, implemented as a C wrapper around the libmemcached interface. It offers efficient data caching, Python 2.x and 3.x interoperability, and robust handling of various data types, making it a reliable choice for applications requiring fast memory caching.
Repository Information
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
pylibmc is a high-performance Python client for memcached, implemented as a C wrapper around the libmemcached interface. This project provides a robust and efficient way for Python applications to interact with Memcached servers, leveraging the speed of C for critical operations. It has evolved to support modern Python versions, including Python 3.x, and includes significant improvements in stability and interoperability.
Installation
Installing pylibmc is straightforward, thanks to its pip package and the availability of ManyLinux wheels, which simplify installation on many Linux systems. As it's a C wrapper, it relies on underlying C libraries, but pip usually handles the dependencies.
To install pylibmc, simply run:
pip install pylibmc
Examples
For detailed usage examples and comprehensive guides on how to integrate pylibmc into your Python applications, please refer to the official documentation. The documentation provides practical code snippets and explanations for various caching scenarios.
Why Use pylibmc?
pylibmc stands out as a preferred Memcached client for several reasons:
- High Performance: Being a C wrapper,
pylibmcoffers superior performance compared to pure Python implementations, making it ideal for high-throughput applications. - Robustness and Stability: Recent versions have addressed critical memory leaks and bugs, ensuring a more stable and reliable caching experience.
- Python 2.x and 3.x Interoperability: With features like the
pickle_protocolbehavior,pylibmcfacilitates seamless data exchange between Python 2.x and 3.x environments. - Modern Data Handling: Unicode strings are now stored as UTF-8, potentially offering performance improvements and better compatibility.
- Ease of Installation: The introduction of ManyLinux wheels significantly simplifies the installation process on compatible systems.
Links
- GitHub Repository: https://github.com/lericson/pylibmc
- Official Documentation: http://sendapatch.se/projects/pylibmc/
- Maintainer Website: http://sendapatch.se/
Related repositories
Similar repositories that may be relevant next.

Open Index: A Deterministic Memory Layer for Your AI Agents
September 16, 2026
Open Index is a powerful tool for building domain-specific, accurate, and structured data that AI agents can effectively operate on. It enables the creation of a "brain," a searchable and continuously improving context graph tailored to any domain. This system ensures agents have access to reliable, up-to-date information, enhancing their capabilities and decision-making processes.
tooltrim: Drastically Reduce LLM Agent Tool Output Tokens, Improve Accuracy
September 16, 2026
tooltrim provides drop-in compression for LLM agent tool outputs, drastically cutting tokens while often improving answer accuracy. This provider-agnostic solution offers content-aware compression, faithfulness benchmarks, and seamless integration with popular frameworks or as an OpenAI-compatible proxy.

AgentShield: Python Firewall for AI Agent Spend Control
September 16, 2026
AgentShield is a pure Python library designed to prevent runaway AI agents from exceeding budget limits. It offers 10 composable spend rules, evaluated in under 1ms, providing robust cost control. Although its core development has transitioned to sipi.bot, the AgentShield Python package remains available for existing users and its test fixtures are open-source.

DA-Forge: Streamlining Declarative Agent Creation for Copilot Notebooks
September 12, 2026
DA-Forge is a Python-based tool by Microsoft designed to automate the creation and deployment of Declarative Agents for Copilot Notebooks. It significantly reduces the manual effort and time required to set up AI assistants with specific grounding references, transforming an 85-minute process into just a few minutes. This tool is essential for developers and researchers working with Copilot Notebooks and Declarative Agents.
Source repository
Open the original repository on GitHub.
21 counted GitHub visits