$npx skillfedfor your agent

mysql-replication

Pure Python Implementation of MySQL replication protocol build on top of PyMYSQL.

Worth itPyPI DatabaseReleased Aug 2026453.6K downloads / moApache 2Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mysql_replication-1.0.17-py3-none-any.whl
v1.0.17 · released 2026-08-06 · 2 runtime deps: packaging, pymysql

Yes. The package is actively maintained, has low install friction, carries a permissive license, and fills a clear niche in MySQL change capture. It is production-tested and widely adopted for CDC pipelines. Install it if you need to react to MySQL changes in real time; skip it if your use case does not require streaming binary log events or if you are not using MySQL.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • MySQL server must have binary logging enabled with binlog_format='ROW', and for MySQL 8.0.14+ requires binlog_row_metadata='FULL' and binlog_row_image='FULL'.
  • Low friction: pure Python wheel with only two runtime dependencies (packaging and pymysql).
  • Actively maintained with a recent release and 2415 repository stars.

License · maintenance · safety

Apache 2 (permissive) — Licensed under Apache 2 (permissive), allowing commercial and private use with minimal restrictions—suitable for production deployments and proprietary integrations.

last release 2026-08-06 (8 days) · last repo commit 2026-08-06 · 2,415 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 453,572 downloads/mo, #6,576 on PyPI

Verify before relying

pip install mysql-replication

from pymysqlreplication import BinLogStreamReader

mysql_settings = {'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'passwd': ''}
stream = BinLogStreamReader(connection_settings=mysql_settings, server_id=100)

for binlogevent in stream:
    binlogevent.dump()

stream.close()
  • Whether the library handles all MySQL 8.0 versions beyond 8.0.14 or only that specific release forward.
  • Real-world performance characteristics and throughput limits under high-volume replication scenarios.
  • Completeness of support for all binary log event types and edge cases in production environments.
  • Compatibility with Python versions beyond 3.14 or earlier than 3.10.
Same gist for agents: .md · .json

What it is and what it does

mysql-replication is a pure Python library that implements the MySQL replication protocol on top of pymysql, allowing you to connect to a MySQL server and stream binary log events in real time. It captures INSERT, UPDATE, and DELETE operations with their full row data and original SQL queries, making it possible to react to database changes as they happen.

The library is designed for building change data capture pipelines—feeding database changes into NoSQL systems, search engines, caches, analytics platforms, or audit logs. It works with MySQL 5.5 through 8.0.14 and MariaDB 10.6, and has been used in production by medium-scale internet companies. Configuration requires enabling binary logging on the MySQL server and setting specific binlog parameters; once set up, the library handles the protocol details transparently.

Use it for

  • Replicate MySQL data to NoSQL databases or data warehouses in near real time.
  • Invalidate application caches automatically when rows change in the database, eliminating stale data.
  • Stream database changes to event brokers for event-driven architectures and downstream processing.
  • Build audit trails and compliance logs by capturing all mutations to sensitive tables.
  • Feed real-time analytics systems with fresh data from transactional databases.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries a permissive license, and fills a clear niche in MySQL change capture. It is production-tested and widely adopted for CDC pipelines. Install it if you need to react to MySQL changes in real time; skip it if your use case does not require streaming binary log events or if you are not using MySQL.

Install

mysql-replication on PyPI

Before you install

Low friction: pure Python wheel with only two runtime dependencies (packaging and pymysql). Actively maintained with a recent release and 2415 repository stars. Tested against MySQL 5.5–8.0.14 and MariaDB 10.6.

MySQL server must have binary logging enabled with binlog_format='ROW', and for MySQL 8.0.14+ requires binlog_row_metadata='FULL' and binlog_row_image='FULL'.

License in practice

Licensed under Apache 2 (permissive), allowing commercial and private use with minimal restrictions—suitable for production deployments and proprietary integrations.

Quickstart

pip install mysql-replication

from pymysqlreplication import BinLogStreamReader

mysql_settings = {'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'passwd': ''}
stream = BinLogStreamReader(connection_settings=mysql_settings, server_id=100)

for binlogevent in stream:
    binlogevent.dump()

stream.close()

Verify before relying

  • Whether the library handles all MySQL 8.0 versions beyond 8.0.14 or only that specific release forward.
  • Real-world performance characteristics and throughput limits under high-volume replication scenarios.
  • Completeness of support for all binary log event types and edge cases in production environments.
  • Compatibility with Python versions beyond 3.14 or earlier than 3.10.

Package facts

LicenseApache 2 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
packagingpymysql
MaintenanceActively maintained 8 days since the last release
Last repo commit
First released
Downloads453,572 / month, #6,576 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: mysql_replication-1.0.17-py3-none-any.whl

Tags

Capabilities
mysql binary log readermysql change data capturemysql replication protocol pythonmysql binlog streamingmysql cdc eventsdatabase change capturemysql event replication
Topics
change-data-capturemysql-binlogreplication

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 › “mysql binary log reader”

  • mysql-replicationReads MySQL binary logs and streams replication events (inserts,…
  • python-evtxParses Windows Event Log files (.evtx) into structured XML or JSON,…
  • asyncmy2asyncmy2 is a fast asyncio-based MySQL/MariaDB driver that rewrites…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

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.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

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.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

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.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

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.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also PyMySQL · asyncmy2 · pysqlsync · asyncmy · pytest-mysql · django-mysql · pangres · mo-sql-parsing · mysql-connector-python