You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2026/09/01 05:45:08 UTC
[I] Python SDK: expose create_partitions and delete_partitions [iggy]
justinmclean opened a new issue, #4014:
URL: https://github.com/apache/iggy/issues/4014
### Description
The Rust client exposes `create_partitions` and `delete_partitions` (`core/common/src/traits/partition_client.rs`); the Python SDK exposes neither, so a Python user cannot add or remove partitions on an existing topic without dropping to `send_binary_request`. Part of the parity work tracked in #3893.
```rust
async fn create_partitions(&self, stream_id: &Identifier, topic_id: &Identifier,
partitions_count: u32) -> Result<(), IggyError>;
async fn delete_partitions(&self, stream_id: &Identifier, topic_id: &Identifier,
partitions_count: u32) -> Result<(), IggyError>;
```
Note that `delete_partitions` removes the last N partitions: a topic with 5, minus 2, keeps partitions 1-3.
### Affected area / component
_No response_
### Proposed solution
- Add both methods to the `#[pymethods]` block in `foreign/python/src/client.rs`, taking `stream_id: PyIdentifier`, `topic_id: PyIdentifier` and `partitions_count: int`. Both return `None` on success and raise on failure, matching `delete_topic` alongside them.
- Add the stub entries to `foreign/python/apache_iggy.pyi`.
- Add `foreign/python/tests/test_partition.py`: create a topic, add partitions, assert the count via `get_topic`, delete partitions, assert the count again.
No new wrapper types are needed. #3727 and #3776 are the closest worked examples of this shape of change.
### Alternatives considered
_No response_
### Contribution
- [ ] I'm willing to submit a pull request to implement this feature
### Good first issue
- [x] I think this could be a good first issue for a new contributor
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #4014:
URL: https://github.com/apache/iggy/issues/4014#issuecomment-5794650751
@akash23sk this issue is closed and doesn't need anyone to work on it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "spetz (via GitHub)" <gi...@apache.org>.
spetz closed issue #4014: Python SDK: expose create_partitions and delete_partitions
URL: https://github.com/apache/iggy/issues/4014
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "hubcio (via GitHub)" <gi...@apache.org>.
hubcio commented on issue #4014:
URL: https://github.com/apache/iggy/issues/4014#issuecomment-5798340846
you can join our discord and ask on `python-client` channel, there might be some issues that didn't make it to the github issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "akash23sk (via GitHub)" <gi...@apache.org>.
akash23sk commented on issue #4014:
URL: https://github.com/apache/iggy/issues/4014#issuecomment-5800067601
yeah thanks i will join there
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "akash23sk (via GitHub)" <gi...@apache.org>.
akash23sk commented on issue #4014:
URL: https://github.com/apache/iggy/issues/4014#issuecomment-5798313226
Got it, thanks for letting me know! I’m still interested in contributing to the project, so please let me know if there’s another issue I can pick up....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Python SDK: expose create_partitions and delete_partitions [iggy]
Posted by "akash23sk (via GitHub)" <gi...@apache.org>.
akash23sk commented on issue #4014:
URL: https://github.com/apache/iggy/issues/4014#issuecomment-5782605777
I'd like to work on this issue as I’ve reviewed the description and would be happy to implement it and add the required tests....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@iggy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org