Skip to content

Python examples: add a sink data producer #4700

Closed

Description

@justinmclean

Description

The sink data producer fills a topic with JSON records so a sink connector has something to read. Rust has one (examples/rust/src/sink-data-producer/) and so does Node. Python has none.

Affected area / component

Python examples

Proposed solution

Add examples/python/sink-data-producer/producer.py and a README section in examples/python/README.md.

  • Read IGGY_STREAM (default qw) and IGGY_TOPIC (default records), as the Rust version in examples/rust/src/sink-data-producer/main.rs does, and create the stream and topic if they are missing.
  • Match the Rust record fields, so the same connector config works for both.
  • Use the client set-up from the high-level or basic example.
  • Send the records as JSON and log a count when finished.
  • The Node version deletes the topic and stream when it finishes. Check what the Rust version does, follow it, and say which in the README.

How to test: start a fresh server, run uv run sink-data-producer/producer.py from examples/python, and confirm the records poll back as valid JSON.

Good first issue

  • I think this could be a good first issue for a new contributor

Activity

  1. added
    good first issue
    python
    on Nov 1, 2026
  2. RiaLnN commented on Nov 2, 2026

    @RiaLnN

    Hi! I'd like to take this issue

  3. himanchalkaushale commented on Nov 2, 2026

    @himanchalkaushale
    Contributor

    Hi! @justinmclean I'd like to work on this issue. I’ve reviewed the requirements and would be happy to implement the Python sink data producer following the existing Rust implementation. Could you please assign this issue to me?

  4. slbotbm commented on Nov 2, 2026

    @slbotbm
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

good first issuepython

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions