A Bytewax connector for SingleStore
Project description
SingleStore Bytewax Connector
A high-performance connector for integrating SingleStore with Bytewax dataflows.
Features
- Seamless integration with SingleStore's CDC (Change Data Capture) functionality
- Support for multiple event types (Insert, Update, Delete, etc.)
- Stateful processing with resumable offsets
- Compatible with Bytewax's dataflow paradigm
Installation
Install the connector using pip:
pip install singlestore-bytewax-connector
Quick Start
Here's a simple example of how to use the SingleStore Bytewax Connector:
from bytewax.dataflow import Dataflow
import bytewax.operators as op
from bytewax.connectors.stdio import StdOutSink
from singlestore_source import SingleStoreSource
flow = Dataflow("singlestore-cdc")
source = SingleStoreSource(
host="127.0.0.1",
port=3306,
user="root",
password="password",
database="test",
table="test",
event_types=["Insert", "Update", "Delete"],
)
stream = op.input("input", flow, source)
op.output("output", stream, StdOutSink())
This example sets up a dataflow that captures CDC events from a SingleStore table and outputs them to stdout.
Configuration
The SingleStoreSource class accepts the following parameters:
host: SingleStore server hostnameport: SingleStore server portuser: Database usernamepassword: Database passworddatabase: Name of the databasetable: Name of the table to observeevent_types: List of event types to capture (default includes all types)
Development
To set up the development environment:
pip install -e .[dev]
Run tests using:
python -m tox
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Acknowledgements
This project is built on top of Bytewax and integrates with SingleStore. We're grateful for their excellent technologies that make this connector possible.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file singlestore_bytewax_connector-0.0.1.tar.gz.
File metadata
- Download URL: singlestore_bytewax_connector-0.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ede56bb382543a29b9fdc9cb47857863e6f480c566f509c5db99f076796b2e
|
|
| MD5 |
c6506d95bb0e643ae0a5a362e50b5328
|
|
| BLAKE2b-256 |
ceac23e0c47bede76af0dddea300306599b02d293e09c3d446a1b0b8b99d08ab
|
File details
Details for the file singlestore_bytewax_connector-0.0.1-py3-none-any.whl.
File metadata
- Download URL: singlestore_bytewax_connector-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2da8f0e66ed6020104a6021bdef5e962d08cb8dc553ffc808816d0148f99420c
|
|
| MD5 |
87efd75d339d3cd790d7596bcc36f681
|
|
| BLAKE2b-256 |
4d4fe998ce30ccec3a6f79dee277cdb204d20034e707721b5ce754a3ac2c5470
|