Python SDK: return details from stream, topic, and consumer group creation
Maintainer thường phản hồi trong vòng 1 ngày
@EthemKD đang làm issue này rồi.
Từ ngày 14/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
The Rust SDK returns the created resource details from these methods:
async fn create_stream(&self, name: &str)
-> Result<StreamDetails, IggyError>;
async fn create_topic(
&self,
stream_id: &Identifier,
name: &str,
options: &TopicCreateOptions,
) -> Result<TopicDetails, IggyError>;
async fn create_consumer_group(
&self,
stream_id: &Identifier,
topic_id: &Identifier,
name: &str,
) -> Result<ConsumerGroupDetails, IggyError>;
The Python methods perform the creation successfully but discard these return values and resolve to None.
StreamDetails, TopicDetails, and ConsumerGroupDetails are already implemented and registered as Python classes, so no new wrapper types are required.
This covers B13, B17, and B21 of the Python SDK parity work tracked in #3893.
Affected area / component
Python SDK
Proposed solution
- Change
IggyClient.create_stream()to returnStreamDetails. - Change
IggyClient.create_topic()to returnTopicDetails. - Change
IggyClient.create_consumer_group()to returnConsumerGroupDetails. - Convert each Rust result through the existing
Fromimplementation instead of discarding it. - Update the method documentation and regenerate
foreign/python/apache_iggy.pyi. - Extend the existing stream, topic, and consumer-group tests to assert that:
- The returned type is the corresponding Details class.
- The returned ID, name, and resource-specific fields match the created resource.
- Fetching the resource afterward returns matching details.
This changes only successful return values; existing arguments and error behavior remain unchanged.
Alternatives considered
Keep returning None and require a second get_* request. This adds an unnecessary round trip and remains inconsistent with the Rust API.
Contribution
- I'm willing to submit a pull request to implement this feature
Good first issue
- I think this could be a good first issue for a new contributor
- Ngôn ngữ chính
- Rust
- Star
- 5.2k
- Fork
- 502
- Merge trung bình
- 3 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 146
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iggy
-
Go examples: add a message envelope producer and consumerCó thể đã có người làm @ThunderGod77 đã nhận hôm nay. Đang mởgo good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
apache/iggy#4694 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HTTP client treats a consumer group as a plain consumerCó thể đã có người làm @mohitduhan19 đã nhận 18 ngày trước. Đang mởbug rust server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/iggy#4408 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add the fail-fast connection option to the Rust and Python quick-startsCó thể đã có người làm @QIW9 đã nhận 6 ngày trước. Đang mởdocs good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
apache/iggy#4261 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug python sdk
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/iggy#3748 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
perf(cluster): reduce idle replica traffic caused by Commit heartbeatsCó thể đã có người làm @mmmmxa đã nhận hôm nay. Đang mởapi cluster performance
apache/iggy#4707 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename SerVtdExt to ServtdExtĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Android visitors are offered the Linux .deb on cap.so's homepage and download pageCó thể đã có người làm @patrickballard đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CapSoftware/Cap#3677 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DioxusLabs/blitz#1371 ·
Maintainer thường phản hồi trong vòng 1 ngày