Skip to content

Commit 1333405

Browse files
authored
Refactor installation instructions in README.md
1 parent d252a1a commit 1333405

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
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]
2017
Generate a client from an OpenAPI spec in `openapi.json`:
2118

2219
```bash
23-
# Types + HTTP client/transport
20+
# Types + HTTP transport
2421
uv run openapi-python generate --spec ./openapi.json --out ./generated
2522

26-
# Just types, use your own HTTP client/transport
23+
# Types
2724
uv run openapi-python generate --spec ./openapi.json --out ./generated --transport-mode protocol-only
2825
```
2926

0 commit comments

Comments
 (0)