python(fix): support bytes channel values, bump bindings to 0.5.1, v0.21.0 release prep - #784
Open
solidiquis wants to merge 2 commits into
Open
python(fix): support bytes channel values, bump bindings to 0.5.1, v0.21.0 release prep#784solidiquis wants to merge 2 commits into
solidiquis wants to merge 2 commits into
Conversation
…to 0.5.1 Handle ChannelDataType.BYTES in ChannelValue._to_rust_form and _to_rust_value. Requires sift-stream-bindings 0.5.1 for ValuePy.Bytes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
|
Python docs preview: https://sift-stack.github.io/sift/python/pr-784/ Deployed from |
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
marc-sift
approved these changes
Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes ingesting
ChannelDataType.BYTESchannels from the Python library, bumpssift-stream-bindingsto 0.5.1 (the Rust side of the change, #782), and preps thev0.21.0release.Reported by a customer on sift-stack-py v0.20.0:
ValueError: Unknown data type: byteswhen registering a flow with a bytes channel.Why
#761 fixed flow registration but is unreleased. The next failure a user hits is sending a value on a bytes channel:
ValueError: Invalid data type: bytesfromChannelValue._to_rust_form. That path neededValuePy.Bytes, which did not exist in the bindings until 0.5.1.Changes
sift_client/sift_types/ingestion.py: handleBYTESinChannelValue._to_rust_form, acceptingbytes,bytearray,memoryview, or an iterable of ints. Also add the missingBYTESandSTRINGbranches to_to_rust_value.pyproject.tomlanduv.lock:sift-stream-bindings==0.5.0→==0.5.1in every extra. The generatedallextra was regenerated withgenerate_extras.pyand matches.TestChannelValuecovers both converters across everyChannelDataType, including the bytes-like input types and theNonepath.version0.20.0→0.21.0inpyproject.tomlanduv.lock.CHANGELOG.mdturns the Unreleased section intov0.21.0 - September 4, 2026, which also carries the unreleased data import listing, enum import, andget_datananosecond warning changes.Verification
Against the published 0.5.1 wheel: ruff,
mypy lib, and the ingestion tests pass. The full non-integration suite passes exceptsift_py/data_import/_csv_test.py::test_simple_upload_invalid_csv, which also fails on a clean checkout of main.After merge
Tag
python/v0.21.0on the merge commit and dispatchpython_release.yamlfrom that tag.🤖 Generated with Claude Code