--- id: pylibmc version: "1.6.3" license: 3-clause BSD license_treatment: permissive maintenance: aging --- # pylibmc — Quick and small memcached client for Python License: permissive · Maintenance: aging · Downloads: 460.7K/mo ## What it is and what it does pylibmc is a C-based Python client for memcached, the distributed memory caching system. It provides low-level access to memcached servers for storing and retrieving cached data across multiple machines. The package has no runtime dependencies and compiles to native code for caching operations. The library is designed for applications that need to share cached state across processes or machines—typical use cases include session storage, database query result caching, and temporary data sharing in web applications. Version 1.6.3 introduced improved interoperability by standardizing flag usage and storing Unicode strings as UTF-8 rather than pickled data. Installation requires either a prebuilt wheel (available for Linux and macOS) or a C compiler and memcached development headers. Use it for: - Cache database query results across multiple application servers to reduce database load. - Store session data in memcached for shared access in horizontally scaled web applications. - Temporarily cache expensive computation results during request processing. - Share transient state between worker processes in a distributed task queue. - Implement rate-limiting counters or feature flags in a distributed system. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pylibmc is a Python client for memcached, the distributed memory-caching system, implemented in C for performance. Yes, if you need a memcached client and have a running memcached server. The C implementation provides performance benefits for caching scenarios. However, the aging maintenance status (last release 2022-08-30) means you should verify compatibility with your Python version and memcached deployment before committing to production use. No known vulnerabilities. ## Install pip install pylibmc uv add pylibmc poetry add pylibmc ## Installing pylibmc Before you install: Medium install friction due to C extension compilation requirements. Package is aging (last release 2022-08-30, 1445 days prior) but repository remains active with recent commits as of 2025-04-12. Supports Python 3.6 through 3.11 with prebuilt wheels for common platforms. License in practice: Released under 3-clause BSD, a permissive license allowing commercial and private use with minimal restrictions—suitable for most projects. Quickstart: pip install pylibmc import pylibmc mc = pylibmc.Client(['localhost']) mc.set('key', 'value') value = mc.get('key') Requires a running memcached server accessible at the specified host and port; C compiler and memcached development headers needed at install time on systems without prebuilt wheels. Verify before relying: - Whether the aging maintenance status (last release 1445 days ago) affects real-world reliability for current Python versions. - Performance characteristics compared to alternative memcached clients in production workloads. - Compatibility guarantees with memcached protocol versions beyond what the fact sheet documents. ## Package facts - License: 3-clause BSD (permissive) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 460.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags memcached client python, distributed caching, in-memory cache client, memcached python binding, fast cache access, memory cache protocol, session storage cache, caching, distributed-systems, memcached [View on SkillFed](https://skillfed.io/packages/pylibmc) · [View on PyPI](https://pypi.org/project/pylibmc/)