Skip to main content

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

Reason this release was yanked:

Test release - not intended for distribution

Project description


Python Versions 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

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.1.7.tar.gz (33.7 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.1.7-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for smal_lang-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1147603d4d1e2396a8fb95153911b860eb28ccf918dc6323c995037163e5092e
MD5 c1d30cf3951eb5ffc502887ead6e94be
BLAKE2b-256 e0b3953ad179fdd095921016563bf5abcaa2687e56b16ec8ce9d226dbb1d47a8

See more details on using hashes here.

Provenance

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

Publisher: release.yml on smal-lang/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.1.7-py3-none-any.whl.

File metadata

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

File hashes

Hashes for smal_lang-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5f09134ac6d332e56c955f0aa55c0700acff7a9f62cf063ef692e5cc97823e
MD5 365e3a1b430dec896429388b81fee96c
BLAKE2b-256 363953c79544b45eb0f306c72318b7622e1ef4ae7698c350c03652781b91abe0

See more details on using hashes here.

Provenance

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

Publisher: release.yml on smal-lang/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