mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
Add hanzoai.zap: an httpx.BaseTransport / AsyncBaseTransport that routes the SAME typed client calls through hanzo_zap.CloudClient over the ZAP binary wire. Opt in with Hanzo(http_client=hanzoai.zap_http_client(...)); default stays HTTPS. - hanzo-zap is an optional extra [zap], imported lazily so "import hanzoai" still works when it (and zap-proto) are not installed. - Public __all__ is byte-identical; new names are additive and kept out of __all__. - Request to ZAP mapping: path to dotted method, api-key header to Bearer auth, body forwarded verbatim. - Tests: back-compat lock + request-translation via mock CloudClient (no network). Co-authored-by: hanzo-dev <[email protected]>