Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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
Metadata
Release files for aws-step-functions-pydantic 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aws_step_functions_pydantic-0.0.5.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_step_functions_pydantic-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / aws_step_functions_pydantic-0.0.5.tar.gz
| Download URL | aws_step_functions_pydantic-0.0.5.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1fae75835a3054886c1281f44c6d86e88b98178e955e0a641ab9ef6f91cc3dd3
|
|
BLAKE2b-256 checksum How to use checksums |
5638a2566e03392944866a4f06096b1e9444149727ef319f73855b1b60f55764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.22.3 CPython/3.11.11 Linux/6.8.0-51-generic
|
Release files / aws_step_functions_pydantic-0.0.5-py3-none-any.whl
| Download URL | aws_step_functions_pydantic-0.0.5-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6c51782da98b3069507f5ecc9d432fd12cd711afc5a2404385f873508bb932a
|
|
BLAKE2b-256 checksum How to use checksums |
b01a08448c219411b539c9d42036e23f5e17b0909af55fee0d73f8d5c0faf5ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.22.3 CPython/3.11.11 Linux/6.8.0-51-generic
|