feat(python): add QUIC, HTTP, and WebSocket transport support - #3790
Open
saie-ch wants to merge 1 commit into
Open
feat(python): add QUIC, HTTP, and WebSocket transport support#3790saie-ch wants to merge 1 commit into
saie-ch wants to merge 1 commit into
Conversation
Closes apache#2835. Adds explicit IggyClient.tcp/quic/http/websocket() constructors mirroring the Rust builder, fixes a QUIC connection-string bug (endpoint creation needs an active Tokio runtime), and adds tests/examples/CI/docs for all three previously-untested transports.
|
Thanks for the PR. It is labeled Slash commands (own line, regular comment) move it around the queue:
See CONTRIBUTING.md for details. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3790 +/- ##
============================================
- Coverage 75.58% 75.55% -0.03%
Complexity 969 969
============================================
Files 1317 1317
Lines 155244 155354 +110
Branches 128866 128946 +80
============================================
+ Hits 117339 117384 +45
+ Misses 34361 34343 -18
- Partials 3544 3627 +83
🚀 New features to boost your workflow:
|
Contributor
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 #2835
Rationale:
The Python SDK only exposed TCP via IggyClient(). QUIC, HTTP, and WebSocket were reachable only through the untested
from_connection_string() path — no constructors, no docs, no examples, no tests.
What changed?
Added IggyClient.tcp/quic/http/websocket() classmethods mirroring the Rust builder's with_tcp/with_quic/with_http/with_websocket(). Fixed
a QUIC bug along the way: quinn::Endpoint::client needs an active Tokio runtime, which a synchronous Python call site doesn't have — both
quic() and from_connection_string() now enter it explicitly. Added integration tests, examples, and CI wiring for all three
previously-untested transports.
Local Execution:
foreign/python (excluded from the root workspace, so the repo's pre-push hook doesn't reach it). Built server + extension locally, ran
full pytest suite (337 passed, only pre-existing Docker-dependent TLS tests skipped for lack of a daemon), and manually exercised all
three new example pairs end-to-end.
AI Usage:
Claude Code (Sonnet).
Built iggy-server and the Python extension locally, ran the full pytest suite against a live 4-transport server (337 passed), and manually ran all three new example pairs (QUIC/HTTP/WebSocket producer+consumer) end-to-end. Also ran cargo clippy -D warnings, cargo fmt, ruff check/format, pyrefly, and markdownlint, and confirmed the diff stayed scoped to only foreign/python, examples/python, and CI config with nothing touching core/sdk or other SDKs