Adaptix

Latest version: v3.0.0b5

Safety actively analyzes 623567 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

3.0.0b5

- Add support for Pydantic models!

Now you can work with pydantic models like any other: construct from dict, serialize to dict, convert to any other model, and convert it to any other model.

Also, you can use [integrations.pydantic.native_pydantic](https://adaptix.readthedocs.io/en/latest/reference/api/adaptix.integrations.pydantic.html#adaptix.integrations.pydantic.native_pydantic) to delegate loading and dumping to pydantic itself.

- Add support for dumping ``Literal`` inside ``Union``. [237](https://github.com/reagento/adaptix/issues/237)

- Add support for ``BytesIO`` and ``IO[bytes]``. [270](https://github.com/reagento/adaptix/issues/270)

See the full list of changes at [changelog](https://adaptix.readthedocs.io/en/latest/reference/changelog.html#v3-0-0b5).

3.0.0b4

- Models can be automatically converted inside compound types like Optional, list, dict etc.
- An error of loader, dumper, and converter generation contains a much more readable location
- Add coercer for builtin iterables and dict.

See the full list of changes at [changelog](https://adaptix.readthedocs.io/en/latest/reference/changelog.html#v3-0-0b4).

3.0.0b3

- Coercer can be added directly inside the link.
- Added ability to link constant values and factories.
- Better errors that the coercer was not found.
- More automatic do-nothing coercion detection

See the full list of changes at [changelog](https://adaptix.readthedocs.io/en/latest/reference/changelog.html#v3-0-0b3).

3.0.0b2

- New **major** feature is out!
Added support for model conversion! Now, you can generate boilerplate converter function by adaptix.
See [conversion tutorial](https://adaptix.readthedocs.io/en/latest/conversion/tutorial.html) for details.
- Basic support for sqlalchemy models are added!
- Added enum support inside Literal.
- Added flags support.
- Added defaultdict support.

See full list of changes at [changelog](https://adaptix.readthedocs.io/en/latest/reference/changelog.html#v3-0-0b2).

3.0.0b1

2.13

* Added `NamedTuple` support
* Many standard types now can be parsed out of the box
* Fix aliases to generic types
* Fix parsing dataclasses which also implement collection protocol

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.