Repository navigation
Added
pathapi_httpx.HttpxTransportandpathapi_httpx.AsyncHttpxTransport, the
HTTP transports ofpathapi.httpoverhttpx.Clientandhttpx.AsyncClient,
andpathapi_httpx.__version__. They need Python 3.9 or newer,
pathapi>=0.1.2,<0.2andhttpx>=0.28.0,<0.29.- The distribution declares the
httpxentry of thepathapi.http_transports
and of thepathapi.http_async_transportsgroups. Installing it is all that
pathapi.httpneeds to send through them:
HTTPClient(HttpxTransport(client)),AsyncHTTPClient(AsyncHttpxTransport()),
PATHAPI_HTTP_TRANSPORT=httpxandPATHAPI_HTTP_ASYNC_TRANSPORT=httpxuse
them,pathapi.http.get_transport("httpx")and
pathapi.http.get_async_transport("httpx")load them, and
pathapi.http.transport_names()andasync_transport_names()list them. - The tests
pathapiruns over its own transports run over these
(python -m pathapi.http.testing --http-transports httpx --http-async-transports httpx)
as part of the test suite.
Full Changelog: https://github.com/jose-pr/pathapi-httpx/commits/v0.1.0