python-binary-memcached
A pure python module to access memcached via its binary protocol with SASL auth support
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a specific problem—binary protocol access with authentication—that text-protocol clients do not. It is suitable for production use, particularly when integrating with hosted memcached services that require SASL authentication.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running memcached server accessible at the specified host and port.
- Low friction: pure Python wheel with only two runtime dependencies (six and uhashring).
- Active maintenance with a recent release on 2026-04-28 and continuous repository activity.
License · maintenance · safety
permissive license (permissive) — Permissive license allows commercial and private use without restriction or attribution requirement.
last release 2026-04-28 (108 days) · last repo commit 2026-05-11 · 166 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 154,757 downloads/mo, #10,845 on PyPI
Alternatives
Verify before relying
pip install python-binary-memcached
import bmemcached
client = bmemcached.Client(('127.0.0.1:11211',), 'user', 'password')
client.set('key', 'value')
print(client.get('key'))- Whether the package supports Python versions beyond 3.8, 3.9, 3.10, 3.11, 3.12.
- Performance characteristics compared to other memcached clients for high-throughput scenarios.
- Thread safety guarantees and behavior under concurrent access patterns.
What it is and what it does
python-binary-memcached is a pure Python client for memcached that communicates using the binary protocol rather than the text protocol. It supports SASL authentication, making it suitable for hosted memcached services like Heroku that require credentials. The library is thread-safe and offers both a standard client for single-server or replicated setups and a DistributedClient that uses consistent hashing to distribute keys across multiple memcached servers.
The package depends on six and uhashring for consistent hashing when using the distributed client. It has been actively maintained since 2011, with recent updates adding TLS support and protocol argument exposure. The library is classified as Beta and supports Python 3.8, 3.9, 3.10, 3.11, 3.12.
Use it for
- Connect to Heroku memcached or other SASL-authenticated memcached services from Python applications.
- Distribute cached data across multiple memcached servers using consistent hashing to minimize cache invalidation on server changes.
- Secure memcached connections with TLS encryption in production environments.
- Replace text-protocol memcached clients when binary protocol features or authentication are required.
- Build thread-safe caching layers in multi-threaded Python applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a specific problem—binary protocol access with authentication—that text-protocol clients do not. It is suitable for production use, particularly when integrating with hosted memcached services that require SASL authentication.
Install
python-binary-memcached on PyPI
Before you install
Low friction: pure Python wheel with only two runtime dependencies (six and uhashring). Active maintenance with a recent release on 2026-04-28 and continuous repository activity.
Requires a running memcached server accessible at the specified host and port.
License in practice
Permissive license allows commercial and private use without restriction or attribution requirement.
Quickstart
pip install python-binary-memcached
import bmemcached
client = bmemcached.Client(('127.0.0.1:11211',), 'user', 'password')
client.set('key', 'value')
print(client.get('key'))
Verify before relying
- Whether the package supports Python versions beyond 3.8, 3.9, 3.10, 3.11, 3.12.
- Performance characteristics compared to other memcached clients for high-throughput scenarios.
- Thread safety guarantees and behavior under concurrent access patterns.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagessixuhashring |
| Maintenance | Actively maintained 108 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 154,757 / month, #10,845 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: python_binary_memcached-0.32.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “memcached binary protocol client”
- python-binary-memcachedA pure Python client library for accessing memcached using the binary…
- pymemcacheA pure-Python memcached client implementing the complete text…
- pylibmcpylibmc is a Python client for memcached, the distributed…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also python-memcached · aiomcache · pymemcache · pure-sasl · google-cloud-memcache · pylibmc · pure-transport · django-cache-url · scramp · archspec