Commit 7f0a898
committed
wip initial cut of interface
- Introduces typed sync and async clients for the pdfRest API with configurable
base URL, API key (with env var fallback), custom headers, and timeouts.
- Adds centralized, library-specific exceptions, translating HTTP layer timeout,
transport, and request errors, and wrapping non-2xx API responses with status
and message details.
- Validates and normalizes requests using internal Pydantic models, including
header/param coercion, endpoint shape checks, and timeout handling.
- Implements an “up” endpoint method in both clients that returns a validated
health/metadata response model.
- Updates the package exports to expose clients, request option types, response
model, and error helpers.
Assisted-by: Codex1 parent 69d673c commit 7f0a898
5 files changed
Lines changed: 719 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
6 | 32 | | |
7 | 33 | | |
8 | 34 | | |
| |||
0 commit comments