Skip to main content

State Machine Abstraction Language (SMAL) is a YAML-based description language for simple, robust and debuggable state machines.

Project description


PyPI - Python Version PyPI - Downloads License

Code Styling Code Linting Release Version Dependabot DSL YAML

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smal_lang-0.4.2.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

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

smal_lang-0.4.2-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file smal_lang-0.4.2.tar.gz.

File metadata

  • Download URL: smal_lang-0.4.2.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smal_lang-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7e0bfa0bd3e1201e4be0ca065ae1509abdc43a507eb6c5cd097644e4ce119fbb
MD5 d46196c5e22a305a81cb91752028d816
BLAKE2b-256 7ffdf9c2a59109ed2a12dc583f2e9f70a4c81a208b568e54717713e9356925f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for smal_lang-0.4.2.tar.gz:

Publisher: release.yml on aetheric-sh/smal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smal_lang-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: smal_lang-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smal_lang-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2422561a0763f59e4137b00ca2aea421935b5b5177fd585e812742c339d9e8de
MD5 dd98c168f022c14498563b58bf2c2ec3
BLAKE2b-256 6ae3474ab8f3c25c1e45228802103310acf15884f7dda5dacce4d1f9d192edb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for smal_lang-0.4.2-py3-none-any.whl:

Publisher: release.yml on aetheric-sh/smal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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