Skip to main content

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

CI Status Coverage Checked with mypy Code style: black

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

aws_step_functions_pydantic-0.0.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_step_functions_pydantic-0.0.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for aws_step_functions_pydantic-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1fae75835a3054886c1281f44c6d86e88b98178e955e0a641ab9ef6f91cc3dd3
MD5 5c37e17092568808d0e2f9ffabdf7ac5
BLAKE2b-256 5638a2566e03392944866a4f06096b1e9444149727ef319f73855b1b60f55764

See more details on using hashes here.

File details

Details for the file aws_step_functions_pydantic-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_step_functions_pydantic-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c51782da98b3069507f5ecc9d432fd12cd711afc5a2404385f873508bb932a
MD5 7b77997beaa8ee8dc0220168eb83122e
BLAKE2b-256 b01a08448c219411b539c9d42036e23f5e17b0909af55fee0d73f8d5c0faf5ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page