Python SDK: expose get_connection_info

Open
#5,020 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@QwQBiG is already working on this.

Since Nov 21, 2026.

  • #5021 by @QwQBiG — open

Assessment

This issue has not been assessed yet.

Description

python
Description

This issue tracks B37 in #3893. A Python client can connect to a follower over TCP and discover that another node is the metadata leader. The Rust SDK exposes the selected address through get_connection_info(), but Python callers cannot inspect it.

@jiengup gave me the go-ahead to work on B37 in the tracking issue. Could a maintainer assign this issue to me (@QwQBiG)?

Affected area / component

Python SDK

Proposed solution

Expose await client.get_connection_info() on IggyClient. Each call returns a read-only ConnectionInfo with two fields:

  • protocol is the transport name (tcp, quic, ws, or http).
  • server_address is the metadata leader’s address once the client knows it, or the bootstrap or configured address until then. For HTTP, it is the API URL.

Add a Python binding test that checks both fields for all four transports.

Alternatives considered

No response

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
Dominant language
Rust
Stars
5.3k
Forks
548
Avg merge
2d 20h
Merged PRs (30d)
194

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iggy

All issues in apache/iggy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.