close
Skip to content

fix(python): add missing support for sending bytes data#2127

Merged
spetz merged 6 commits into
apache:masterfrom
cstruct:fix-python-typings-and-bytes-support
Aug 25, 2025
Merged

fix(python): add missing support for sending bytes data#2127
spetz merged 6 commits into
apache:masterfrom
cstruct:fix-python-typings-and-bytes-support

Conversation

@cstruct
Copy link
Copy Markdown
Contributor

@cstruct cstruct commented Aug 23, 2025

This adds support for sending messages as bytes through the Python SDK. While I was here I did some drive by typing fixes and formatting :) check the commit messages for further context.

cstruct and others added 6 commits August 23, 2025 12:47
Doc comment that generates typing stubs has been updated but stubs have
not been re-generated. This fixes this by re-generating the stubs.
Signature of callback function was incorrectly types as receiving `str`
when it is actually passed a `ReceiveMessage` and return type was
missing. This fixes this by correctly specifying `ReceiveMessage` as
arguemnt and specifying that the callback is an async function returning
`None`.
The Rust SDK allows messages to be sent as bytes which was not exposed
in the Python SDK. This fixes this by adding bytes support to
`SendMessage`.
@spetz spetz merged commit f3ff279 into apache:master Aug 25, 2025
26 checks passed
@cstruct cstruct deleted the fix-python-typings-and-bytes-support branch September 14, 2025 16:15
hageshiame pushed a commit to hageshiame/iggy that referenced this pull request Nov 7, 2025
This adds support for sending messages as bytes through the Python SDK.
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.

3 participants