Skip to main content

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 hostname
  • port: SingleStore server port
  • user: Database username
  • password: Database password
  • database: Name of the database
  • table: Name of the table to observe
  • event_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

singlestore_bytewax_connector-0.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file singlestore_bytewax_connector-0.0.1.tar.gz.

File metadata

File hashes

Hashes for singlestore_bytewax_connector-0.0.1.tar.gz
Algorithm Hash digest
SHA256 43ede56bb382543a29b9fdc9cb47857863e6f480c566f509c5db99f076796b2e
MD5 c6506d95bb0e643ae0a5a362e50b5328
BLAKE2b-256 ceac23e0c47bede76af0dddea300306599b02d293e09c3d446a1b0b8b99d08ab

See more details on using hashes here.

File details

Details for the file singlestore_bytewax_connector-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for singlestore_bytewax_connector-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2da8f0e66ed6020104a6021bdef5e962d08cb8dc553ffc808816d0148f99420c
MD5 87efd75d339d3cd790d7596bcc36f681
BLAKE2b-256 4d4fe998ce30ccec3a6f79dee277cdb204d20034e707721b5ce754a3ac2c5470

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page