v0.2.11
AstraAPI 0.2.11 Release Notes
PyPI: https://pypi.org/project/astraapi/0.2.11
Python: 3.14+ | C++: 20
Overview
Patch release that fixes a runtime compatibility issue where endpoints returning list[PydanticModel] could crash with 'dict' object has no attribute 'name' during response validation/serialization.
Bug Fixes
Response Model Validation/Serialization Robustness
astraapi/_compat/v2.py—ModelField.validate()now catchesTypeErrorandAttributeErrorin addition toValidationError. Pydantic v2'svalidate_python(..., from_attributes=True)can raise these exceptions when re-validating model instances that contain nested dicts (e.g.,model_constructbypass) or when computed fields access missing attributes.astraapi/applications.py— Both_make_response_model_shimand_make_response_class_shimnow wrapresponse_field.serialize()in try-except to catchTypeErrorandAttributeErrorand convert them toResponseValidationErrorinstead of letting raw exceptions propagate and crash the request.
Installation
pip install astraapiRequires Python 3.14+ and a C++20-capable compiler (GCC 10+, Clang 12+, MSVC 2019+). Pre-built wheels are provided for Linux x86_64/aarch64, macOS arm64, and Windows x64.