State Machine Abstraction Language (SMAL) is a YAML-based description language for simple, robust and debuggable state machines.
Project description
SMAL (State Machine Abstraction Language) is a compact, human‑readable YAML DSL for defining fully functional state machines that are:
- Simple — easy to write, easy to read
- Robust — validated, structured, and type‑safe
- Debuggable — designed for real firmware workflows
A .smal file describes your entire state machine — states, events, transitions, commands, messages, and error handling — in a clean, declarative format. From that single source of truth, SMAL can generate:
- C, C++, and Rust firmware code
- A complete SVG state machine diagram
- Debug structures for introspection and tooling
- Human-readable reports for developers and QA
SMAL is built for embedded systems, audio devices, wearables, robotics, and any environment where clarity, determinism, and debuggability matter.
✨ Features
🧩 YAML-based DSL
Define states, events, transitions, actions, etc. in a clean, expressive format.
🔧 Multi-language code generation
Generate firmware-ready code in C. C++ and Rust planned for future release.
🖼️ SVG diagram generation
Produce a polished, auto‑layout state machine diagram directly from your .smal file.
🐞 Debug-friendly
SMAL includes a structured debug layout that maps cleanly to firmware and tooling.
🛠️ Extensible
Add custom generators, validators, or analysis tools.
📦 Installation
pip install smal-lang
Project details
Release history Release notifications | RSS feed
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 smal_lang-0.4.6.tar.gz.
File metadata
- Download URL: smal_lang-0.4.6.tar.gz
- Upload date:
- Size: 59.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0635aa29e0ccdf3244d0177d609fb91c0c2348556a28a02fc1b5a60ab9a14016
|
|
| MD5 |
0e5b8fb248f6ddee7fac1254f53ac275
|
|
| BLAKE2b-256 |
9af1bd0e53dab77972b036e1b2b68fa60c61543c60dbd0f92043e2a3c34a0b0a
|
Provenance
The following attestation bundles were made for smal_lang-0.4.6.tar.gz:
Publisher:
release.yml on aetheric-sh/smal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smal_lang-0.4.6.tar.gz -
Subject digest:
0635aa29e0ccdf3244d0177d609fb91c0c2348556a28a02fc1b5a60ab9a14016 - Sigstore transparency entry: 1404110261
- Sigstore integration time:
-
Permalink:
aetheric-sh/smal@a1fd0ec40a2fa1acce5b378ddbab9ba8a28b6f32 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/aetheric-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1fd0ec40a2fa1acce5b378ddbab9ba8a28b6f32 -
Trigger Event:
push
-
Statement type:
File details
Details for the file smal_lang-0.4.6-py3-none-any.whl.
File metadata
- Download URL: smal_lang-0.4.6-py3-none-any.whl
- Upload date:
- Size: 78.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aabd95b712d9e7eab0cd4bd678a5f87dda2471d30323629023c7323dec276aa6
|
|
| MD5 |
307ef176d05bbab382e5701532b33dbf
|
|
| BLAKE2b-256 |
aa4aca23affe918e9d731cdda197a05a533ab79a2b3b4b28e5306b0130fca8bb
|
Provenance
The following attestation bundles were made for smal_lang-0.4.6-py3-none-any.whl:
Publisher:
release.yml on aetheric-sh/smal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
smal_lang-0.4.6-py3-none-any.whl -
Subject digest:
aabd95b712d9e7eab0cd4bd678a5f87dda2471d30323629023c7323dec276aa6 - Sigstore transparency entry: 1404110350
- Sigstore integration time:
-
Permalink:
aetheric-sh/smal@a1fd0ec40a2fa1acce5b378ddbab9ba8a28b6f32 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/aetheric-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a1fd0ec40a2fa1acce5b378ddbab9ba8a28b6f32 -
Trigger Event:
push
-
Statement type: