Pydantic models for AWS step functions
Project description
aws-step-functions-pydantic
Pydantic models for AWS step functions
Usage
From Step Function ARN
Use the from_arn()
class constructor
from aws_sfn_pydantic import StateMachine
sfn = StateMachine.from_arn(state_machine_arn="...")
From JSON
Use the model_validate_json()
class constructor (Pydantic v2 builtin)
from aws_sfn_pydantic import StateMachine
sfn = StateMachine.model_validate_json("...")
To YAML
Use the to_yaml()
class constructor, which accepts:
indent
(default: 2)level
(default: 0)
print(sfn.model_to_yaml())
Requires
- Python 3.10+
Installation
pip install aws-step-functions-pydantic
aws-step-functions-pydantic is available from PyPI, and the code is on GitHub
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-step-functions-pydantic-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f85a18df7557f8ff6964c73acb556f300bb1cf53573ea792b26eebc91c07a80 |
|
MD5 | 3035c6960f4f450a43546d0fcfffbc27 |
|
BLAKE2b-256 | 52ea650f23118ee0d7119151e6eaa19d0a0e2dd2f1be2d4b622652d19806d2e1 |
Close
Hashes for aws_step_functions_pydantic-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b7126f86dc1a5d47f42914040a8a7985f3dce3fd6e8c9d045bd6d615d812dac |
|
MD5 | b2b0963090e5cac66ee3081e3fef4849 |
|
BLAKE2b-256 | 5838801685518d11381d047efdbbbf4da5c3d689708409276e2699188f724439 |