pyaslengine
Python engine for Amazon States Language (ASL) specification that supports parsing and serialization of definitions, and a local interpreter to run them.
Installation
Development
git clone https://github.com/ghukill/pyaslengine
make install
Use in Existing Project
pip install pyaslengine
Examples
Load simple StateMachine definition from local JSON file
import logging
from pyaslengine.data import WorkflowInput
from pyaslengine.workflows import StateMachine
# turn on debug logging
logging.getLogger('pyaslengine').setLevel(logging.DEBUG)
# initialize a state machine by reading a local JSON file
sm = StateMachine.load_definition_file("tests/fixtures/state_machines/do_nothing.json")
# run the state machine by passing an initial payload
results = sm.run(
workflow_input=WorkflowInput(data={"msg": "in a bottle"})
)
# Out[6]: WorkflowOutput(data={'msg': 'in a bottle'}, context=None)
Metadata
Release files for pyaslengine 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyaslengine-0.8.0.tar.gz | 16.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyaslengine-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / pyaslengine-0.8.0.tar.gz
| Download URL | pyaslengine-0.8.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
664036cee5cdd3a6f96f65770d5925cdf31f8d53ff8bbe7fdf753360077721ad
|
|
BLAKE2b-256 checksum How to use checksums |
dd7237a4f82e1ecf7f1c9728c6afc2d4ffada31b9d75e056db828846e8915f25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.4 Darwin/23.2.0
|
Release files / pyaslengine-0.8.0-py3-none-any.whl
| Download URL | pyaslengine-0.8.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd7f2fcee2ff04a2e081c6cad594f3dd99481f36c8062d87f453c2ddef161986
|
|
BLAKE2b-256 checksum How to use checksums |
1c0bcf2e8754e56abcdde8cc009a67641793d17a6c2c52c4f07a3cc0f923a54d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.4 Darwin/23.2.0
|
Security for pyaslengine 0.8.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.