Python SDK: expose get_connection_info

Aperta
#5,020 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@QwQBiG ci sta già lavorando.

Dal 21/11/2026.

  • #5021 di @QwQBiG — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
Lingua principale
Rust
Stelle
5.3k
Fork
548
Merge medio
2g 20h
PR unite (30g)
194

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iggy

Tutte le issue di apache/iggy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.