Adaptix is an extremely flexible and configurable data model conversion library.
Important
It is ready for production!
The beta version only means there may be some backward incompatible changes, so you need to pin a specific version.
pip install adaptix==3.0.0b6
.. literalinclude:: /examples/loading-and-dumping/tutorial/tldr.py :caption: Model loading and dumping :name: loading-and-dumping-example
.. literalinclude:: /examples/conversion/tutorial/tldr.py :caption: Conversion one model to another :name: conversion-example
- Python 3.8+
- Validation and transformation of received data for your API.
- Conversion between data models and DTOs.
- Config loading/dumping via codec that produces/takes dict.
- Storing JSON in a database and representing it as a model inside the application code.
- Creating API clients that convert a model to JSON sending to the server.
- Persisting entities at cache storage.
- Implementing fast and primitive ORM.
See :ref:`loading and dumping tutorial <loading-and-dumping-tutorial>` and :ref:`conversion tutorial <conversion-tutorial>` for details about library usage.