Pydantic models for AWS step functions
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_step_functions_pydantic-0.0.5.tar.gz.
File metadata
- Download URL: aws_step_functions_pydantic-0.0.5.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.3 CPython/3.11.11 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fae75835a3054886c1281f44c6d86e88b98178e955e0a641ab9ef6f91cc3dd3
|
|
| MD5 |
5c37e17092568808d0e2f9ffabdf7ac5
|
|
| BLAKE2b-256 |
5638a2566e03392944866a4f06096b1e9444149727ef319f73855b1b60f55764
|
File details
Details for the file aws_step_functions_pydantic-0.0.5-py3-none-any.whl.
File metadata
- Download URL: aws_step_functions_pydantic-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.3 CPython/3.11.11 Linux/6.8.0-51-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c51782da98b3069507f5ecc9d432fd12cd711afc5a2404385f873508bb932a
|
|
| MD5 |
7b77997beaa8ee8dc0220168eb83122e
|
|
| BLAKE2b-256 |
b01a08448c219411b539c9d42036e23f5e17b0909af55fee0d73f8d5c0faf5ad
|