/zapros:zaprosfrom zapros
Best-practice guide for using the Zapros HTTP client (AsyncClient/Client) in Python: sending requests, reading responses, testing with mocks/cassettes, writing middleware, and migrating from httpx/requests.
Ships in zapros. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Zapros is a modern, extensible Python HTTP client with a sync API (Client) and an async API (AsyncClient) that mirror each other. Requests flow through a chain of middlewares ending in a transport handler; that chain is the extension point for everything (retries, caching, cookies, mocking, cassettes, custom behaviour).
This skill is an opinionated guide to doing things the right way. The full API surface lives in the docs at https://zapros.dev — link there for options this skill doesn't cover.
zapros package (plus zapros.mock and zapros.matchers). Never import from private zapros._* modules.AsyncClient and the a*/async_* method variants (aread, async_iter_bytes, aclose); sync code uses Client and the plain names. Mixing them raises AsyncSyncMismatchError.async with AsyncClient() as client: / with Client() as client:, and wrap client.stream(...) in a context manager too.MockMiddleware injected into the client over mock_http() global patching in tests.python -c "import zapros, os; print(os.path.dirname(zapros.__file__))".from zapros import AsyncClient
async with AsyncClient(base_url="https://api.example.com/v1/") as client:
response = await client.get("users", params={"page": "1"})
response.status # 200
response.json # parsed body (property)
Load only the file relevant to the task:
| Task | Read |
|---|---|
| Making requests, bodies, headers, URLs, reading/streaming responses, client configuration | references/sending-requests.md |
| Testing code that uses Zapros: mocks, expectations, cassettes, matchers | references/testing-mocking.md |
| Writing middleware, response ownership, composing handler chains, per-request handler override | references/handlers-extending.md |
Not covered by references — go straight to the docs: WebSockets (https://zapros.dev/websockets), authentication (https://zapros.dev/authentication), retries/redirects/cookies/caching middleware options (https://zapros.dev/retries and siblings), ASGI/browser/Rust transports (https://zapros.dev/asgi, /browser, /rust), migrating from httpx (https://zapros.dev/httpx-alternative).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kap-sh/zapros --plugin zaprosOther plugins' skills for the same job