Python library for building Adaptive Cards using Pydantic models. Version 0.4.2, requires Python >=3.10. Uses Pydantic v2 for validation. Active development.
pip install adaptive-cards-pyVerified import paths — ran on the pinned version, not inferred.
Creates a simple Adaptive Card with a text block and prints JSON.
Update to use Pydantic models and .to_json() method.
Use from adaptive_cards.elements import TextBlock instead of from adaptive_cards import TextBlock.
Upgrade to v0.2.1 or later.