Core capabilities of apischema
masterapischema is a library designed for API data handling with the following primary capabilities:
- JSON (de)serialization: Convert between Python objects and JSON.
- GraphQL: Full GraphQL library support.
- JSON Schema Generation: Generate JSON schemas from Python typing.
Key design principles include:
- Standard Library Proximity: Uses standard
dataclassesandtypingto ensure compatibility with IDEs, linters, and editors without requiring plugins. - No Base Class Requirement: Does not require models to inherit from a specific base class, allowing it to handle any type (e.g.,
Foo,list[Bar],NewType) identically. - Adaptability: Supports user-defined types and foreign library types (like ORM models) via a conversions feature.