Commit 24b1dc6
committed
feat(core): rewrite Capmonster client with Pydantic v2 and modern Python features
- Replaced legacy procedural structure with fully typed class-based design
- Introduced Pydantic v2 models with field validation, serialization, and aliasing
- Implemented sync and async Capmonster clients using httpx
- Added extensible BaseTaskPayload structure with abstract to_request()
- Included validator and field_serializer usage for dynamic task behavior
- Flattened proxy structure via smart task serialization
- Applied frozen and immutable model config where applicable
- Full support for Literal, Optional etc.
- Some test cases prepared with pytest + pytest-asyncio
- Ready for mkdocs documentation generation
BREAKING CHANGE: API usage has completely changed from v3.2 to v4.0. All task creation methods now rely on structured payloads and typed clients.1 parent ac2ba72 commit 24b1dc6
74 files changed
Lines changed: 1253 additions & 13407 deletions
File tree
- capmonster_python
- tasks
- docs
- src
- @rocketseat/gatsby-theme-docs/text
- config
- docs
- api
- usage
- pages
- yamlFiles
- static
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
This file was deleted.
This file was deleted.
0 commit comments