feat(python): support message partitioning strategies - #3927
Open
jiengup wants to merge 2 commits into
Open
Conversation
|
Thanks for the PR. It is labeled Slash commands (own line, regular comment) move it around the queue:
See CONTRIBUTING.md for details. |
2 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3927 +/- ##
=========================================
Coverage 84.18% 84.19%
Complexity 1398 1398
=========================================
Files 1219 1220 +1
Lines 173564 173590 +26
Branches 140662 140662
=========================================
+ Hits 146122 146148 +26
Misses 23472 23472
Partials 3970 3970
🚀 New features to boost your workflow:
|
ethanlin01x
reviewed
Aug 22, 2026
ethanlin01x
left a comment
Contributor
There was a problem hiding this comment.
Some suggestions. The stub one I think should be fixed before merge.
slbotbm
requested changes
Aug 23, 2026
jiengup
force-pushed
the
python-partition-strategies
branch
from
August 27, 2026 12:38
f715f3c to
7b4ec8f
Compare
Contributor
Author
|
apache_iggy.pyi is re-generated through |
Contributor
Author
|
/ready |
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.
Which issue does this PR address?
Closes #3896
Rationale
The Python SDK only supported sending messages to an explicit partition, while the Rust SDK also supports balanced and message-key partitioning.
What changed?
IggyClient.send_messages()now accepts a PythonPartitioningobject supporting fixed, balanced, and message-key routing. Existing integer partition IDs remain fully compatible, while string message keys are encoded as UTF-8 and validated against the 1–255 byte limit.Type stubs, tests, and a runnable Python example covering all three strategies are included.
Local Execution
foreign/python/tests/test_message_operations.pyAI Usage