Skip to main content

statelint

Actions Status Coverage Status License: Apache License 2.0 PyPI Downloads

A PyPI package providing a validator for Amazon States Language JSON/YAML files.

This package is based on Amazon Web Services Labs' awslabs/statelint.

Installation

pip install statelint

Usage

statelint fancy-state-machine-spec.json

If you prefer YAML, you need to install PyYaml.

pip install PyYAML

Then, run command with a --yaml parameter.

statelint --yaml fancy-state-machine-spec.yaml

If you don't like to be complained that BackoffRate doesn't end with ".0", pass a --ignore=FLOAT parameter.

statelint --ignore=FLOAT fancy-state-machine-spec.json

If your Resource doesn't contain URI string, pass a --ignore=URI parameter.

statelint --ignore=URI fancy-state-machine-spec.json

You can pass both parameters at the same time.

statelint --ignore=FLOAT,URI fancy-state-machine-spec.json

🚀 JSONata Evaluation (Experimental)

If you are using JSONata, you may be able to reduce false positives by passing the --eval-jsonata flag.

This feature is currently experimental (and might just stay that way 😉).

However, this library only references variables assigned in the "Assign" field (i.e., $states is not supported) and does not support the JSONata format within the "Assign" field itself.

To use this feature, you must install jsonata-python:

pip install jsonata-python

Usage Example:

statelint --eval-jsonata fancy-state-machine-spec.json

Metadata

Release files for statelint 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for statelint 3.1.0
File Size Uploaded
statelint-3.1.0.tar.gz 34.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for statelint 3.1.0
File Interpreter ABI Platform
statelint-3.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 74.2 kB

Release files / statelint-3.1.0.tar.gz

Download URL statelint-3.1.0.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
18b6b3a6dbc3e5f87e4feb9441d39bb8c3772960b8b9736a5f34a3f9efa1df2c
BLAKE2b-256 checksum
How to use checksums
b863e7bf9ebc1dcb48f077accdd317ef710c9e12aa12de0552afc52faf36ee51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2025.

Transparency log

Release files / statelint-3.1.0-py2.py3-none-any.whl

Download URL statelint-3.1.0-py2.py3-none-any.whl
Size 39.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
62e9df47da24284f1136441f72139b233ffcd8a37442b829448c50af2b64afa6
BLAKE2b-256 checksum
How to use checksums
4a93d8a1e27a0e992adca7e5f7642008249d6bfecb44acc4c89c3446684873c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page