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
File details
Details for the file aws-step-functions-pydantic-0.0.4.tar.gz
.
File metadata
- Download URL: aws-step-functions-pydantic-0.0.4.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f85a18df7557f8ff6964c73acb556f300bb1cf53573ea792b26eebc91c07a80 |
|
MD5 | 3035c6960f4f450a43546d0fcfffbc27 |
|
BLAKE2b-256 | 52ea650f23118ee0d7119151e6eaa19d0a0e2dd2f1be2d4b622652d19806d2e1 |
File details
Details for the file aws_step_functions_pydantic-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: aws_step_functions_pydantic-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b7126f86dc1a5d47f42914040a8a7985f3dce3fd6e8c9d045bd6d615d812dac |
|
MD5 | b2b0963090e5cac66ee3081e3fef4849 |
|
BLAKE2b-256 | 5838801685518d11381d047efdbbbf4da5c3d689708409276e2699188f724439 |