Skip to content

pynumaflow-lite: Pythonic APIs for Sourcetransformer - #386

Merged
BulkBeing merged 3 commits into
mainfrom
pythonic-sourcetransformer
Oct 10, 2026
Merged

BulkBeing merged 3 commits into
mainfrom
pythonic-sourcetransformer

Conversation

@BulkBeing

Copy link
Copy Markdown
Contributor

Make the sourcetransformer API Pythonic, the same as the mapper components.

  • The handler no longer takes keys. Use datum.keys. The handler signature is now handler(datum) -> list[Message].
  • message_to_drop() is renamed to to_drop().
  • New SourceTransformAsyncServer wrapper with serve(), wait_ready() and async with support.
  • Handler errors now raise in Python. They no longer panic in Rust.

Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.99%. Comparing base (2d585e6) to head (2d261f8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #386   +/-   ##
=======================================
  Coverage   92.99%   92.99%           
=======================================
  Files          68       68           
  Lines        3656     3656           
  Branches      236      236           
=======================================
  Hits         3400     3400           
  Misses        190      190           
  Partials       66       66           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
@BulkBeing
BulkBeing marked this pull request as ready for review October 10, 2026 03:10
@BulkBeing
BulkBeing merged commit 295aaaf into main Oct 10, 2026
25 checks passed
@BulkBeing
BulkBeing deleted the pythonic-sourcetransformer branch October 10, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants