{"name":"pylibmc: A Fast Python Client for Memcached","description":"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.","github":"https://github.com/lericson/pylibmc","url":"https://osrepos.com/repo/lericson-pylibmc","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/lericson-pylibmc","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/lericson-pylibmc.md","json":"https://osrepos.com/repo/lericson-pylibmc.json","topics":["Python","Memcached","C","Caching","Client","Wrapper","High Performance"],"keywords":["Python","Memcached","C","Caching","Client","Wrapper","High Performance"],"stars":null,"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.","content":"## Introduction\n\n`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.\n\n## Installation\n\nInstalling `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.\n\nTo install `pylibmc`, simply run:\n\nbash\npip install pylibmc\n\n\n## Examples\n\nFor 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.\n\n## Why Use pylibmc?\n\n`pylibmc` stands out as a preferred Memcached client for several reasons:\n\n*   **High Performance**: Being a C wrapper, `pylibmc` offers superior performance compared to pure Python implementations, making it ideal for high-throughput applications.\n*   **Robustness and Stability**: Recent versions have addressed critical memory leaks and bugs, ensuring a more stable and reliable caching experience.\n*   **Python 2.x and 3.x Interoperability**: With features like the `pickle_protocol` behavior, `pylibmc` facilitates seamless data exchange between Python 2.x and 3.x environments.\n*   **Modern Data Handling**: Unicode strings are now stored as UTF-8, potentially offering performance improvements and better compatibility.\n*   **Ease of Installation**: The introduction of ManyLinux wheels significantly simplifies the installation process on compatible systems.\n\n## Links\n\n*   **GitHub Repository**: <a href=\"https://github.com/lericson/pylibmc\" target=\"_blank\" rel=\"noopener noreferrer\">https://github.com/lericson/pylibmc</a>\n*   **Official Documentation**: <a href=\"http://sendapatch.se/projects/pylibmc/\" target=\"_blank\" rel=\"noopener noreferrer\">http://sendapatch.se/projects/pylibmc/</a>\n*   **Maintainer Website**: <a href=\"http://sendapatch.se/\" target=\"_blank\" rel=\"noopener noreferrer\">http://sendapatch.se/</a>","metrics":{"detailViews":2,"githubClicks":8},"dates":{"published":null,"modified":"2026-05-10T11:59:14.000Z"}}