Adaptix¶ Contents Overview Installation Example Requirements Use cases Advantages Further reading Benchmarks Measure principles Benchmarks analysis Why not Pydantic? Introduction The Main Thesis Pydantic’s pitfalls About Adaptix Conclusion Loading & Dumping Tutorial Installation Introduction Retort configuration Provider chaining Error handling Extended usage Generic classes Recursive data types Dealing with if TYPE_CHECKING Detecting absence of a field Name mapping Specific types behavior Scalar types Compound types Conversion Tutorial Installation Introduction Upcasting Downcasting Fields linking Linking algorithm Type coercion Putting together Extended usage Dealing with if TYPE_CHECKING Link function Link constant Using default value for fields What is a recipe really? Eliminating recipe duplication via ConversionRetort Reference Integrations Supported model kinds Working with Pydantic Working with msgspec SQLAlchemy JSON Known Issues PyInstaller Examples Simple API processing API division Real world app Bugs found in Python Type alias cannot be created from type alias date.fromtimestamp(None) returns current date API adaptix package Changelog 3.0.0b12 – 2026-04-04 3.0.0b11 – 2025-05-09 3.0.0b10 – 2025-04-13 3.0.0b9 – 2024-12-15 3.0.0b8 – 2024-09-02 3.0.0b7 – 2024-06-10 3.0.0b6 – 2024-05-23 3.0.0b5 – 2024-04-20 3.0.0b4 – 2024-03-30 3.0.0b3 – 2024-03-08 3.0.0b2 – 2024-02-16 3.0.0b1 – 2023-12-16 Contributing How to setup the repository Tools overview Project Links GitHub PyPI Chat