File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77## Installation
88
99``` bash
10- # If you want to define your own HTTP transport (requests, asyncio, ...)
11- uv add openapi-python
12-
13- # For built-in httpx transport:
14- uv add openapi-python[httpx]
10+ uv add openapi-python # If you want to define your own HTTP transport (requests, asyncio, ...)
11+ uv add openapi-python[httpx] # Ships with an `httpx` transport
1512```
1613
1714
@@ -20,10 +17,10 @@ uv add openapi-python[httpx]
2017Generate a client from an OpenAPI spec in ` openapi.json ` :
2118
2219``` bash
23- # Types + HTTP client/ transport
20+ # Types + HTTP transport
2421uv run openapi-python generate --spec ./openapi.json --out ./generated
2522
26- # Just types, use your own HTTP client/transport
23+ # Types
2724uv run openapi-python generate --spec ./openapi.json --out ./generated --transport-mode protocol-only
2825```
2926
You can’t perform that action at this time.
0 commit comments