Advanced-alchemy

Latest version: v1.0.1

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

Scan your dependencies

Page 4 of 5

0.27.0

:date: 2025-01-11


.. change:: add `error_messages` as class level configuration
:type: feature
:pr: 315

Exposes ``error_messages`` as a class level configuration in the repository and service classes.

.. change:: implement reusable CLI
:type: feature
:pr: 320

Exposes a reusable CLI for creating and updating releases. This can be used to extend any existing Click or Typer CLI.

.. change:: adds additional type guard helpers
:type: feature
:pr: 322

Addition typing utilities to help with type checking and validation.

0.26.0

:date: 2025-01-11

.. change:: `AsyncAttrs` & remove `noload` default
:type: feature
:pr: 305

This PR adds the `AsyncAttrs` to the default declarative bases for convenience.

It also changes the `inherit_lazy_relationships == False` behavior to use `lazyload`. SQLAlchemy will be deprecating `noload` in version 2.1

.. change:: `litestar` DTO enhancements
:type: feature
:pr: 310
:issue: 306

The Litestar DTO has been enhanced with:
- The SQLAlchemyDTOConfig's `exclude`, `include`, and `rename_fields` fields will now accept string or `InstrumentedAttributes`
- DTO supports `WriteOnlyMapped` and `DynamicMapped`


.. change:: add default exception handler for `litestar` integration
:type: feature
:pr: 308
:issue: 275

This adds a configuration option to automatically enable an exception handler for Repository errors.

This will update the exception handler if you do not have one already configured for the RepositoryException class

0.25.0

:date: 2025-01-11

.. change:: add max length for encrypted string
:type: feature
:pr: 290

The EncryptedString field now has the ability to validate against a set length.


.. change:: `AsyncAttrs` & remove `noload` default
:type: feature
:pr: 305

This PR adds the `AsyncAttrs` to the default declarative bases for convenience.

It also changes the `inherit_lazy_relationships == False` behavior to use `lazyload`. SQLAlchemy will be deprecating `noload` in version 2.1

0.24.0

:date: 2025-01-11

.. change:: remove lambda statement usage
:type: feature
:pr: 288
:issue: 286, 287

Removes the use of lambda statements in the repository and service classes. This has no change on the end user API, however, it should remove strange queries errors seen.

0.23.0

:date: 2025-01-11

.. change:: regression caused by conditional import Sequence for pagination.py
:type: bugfix
:pr: 274
:issue: 272

Import Sequence directly from collections.abc
Remove conditional import using TYPE_CHECKING
Add noqa comment to suppress potential linter warnings

.. change:: make sure `anyio` is optional
:type: bugfix
:pr: 278

When running standalone or with a synchronous web framework, `anyio` is not required. This PR ensures that there are no module loading failures due to the missing import.

.. change:: Improved typing of `ModelDictT`
:type: feature
:pr: 277

Fixes typing issues in service


https://github.com/litestar-org/advanced-alchemy/issues/265

This still doesn't solve the problem of UnknownVariableType if the subtypes of ModelDictT are not installed (eg: Pydantic)
But at least it solves the problem of incompatibilities when they are installed

0.22.0

:date: 2025-01-11

.. change:: CLI argument adjustment
:type: bugfix
:pr: 270

Changes the argument name so that it matches the name given in `click.option`.

Page 4 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.