Skip to content

Conversation

@anuraaga
Copy link
Collaborator

@anuraaga anuraaga commented Jan 12, 2026

This is based on pyqwest an HTTP client I released that supports bidirectional streaming and trailers. The approach is similar to server side, moving some pieces into a ClientProtocol abstraction and writing gRPC versions.

#49

# Need to use async APIs for proper cancellation support in Python.
# Bidirectional streaming not supported
"--skip",
"**/full-duplex/**",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My conformance test implementation for full-duplex was wrong, allowing httpx to pass it. I fixed it and now httpx correctly fails it for not supporting bidirectional streaming

"--skip",
"**/full-duplex/**",
# Cancellation delivery isn't reliable
"--known-flaky",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new client seems to perform just fine for cancellation and timeouts so far. This does reduce my motivation to chase the issue in httpx upstream.

Given it also enables bidirectional streaming, I guess we'll need to consider whether pyqwest should be the default client, but being so new definitely nervous about it, happy to hear any thoughts

from google.protobuf.message import Message
from pyqwest import HTTPTransport, SyncHTTPTransport
from pyqwest import HTTPVersion as PyQwestHTTPVersion
from pyqwest.httpx import AsyncPyqwestTransport, PyqwestTransport
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, just slots in using this httpx-compatible wrapper

@anuraaga anuraaga requested a review from a team January 12, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant