Skip to main content


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

Metadata

Release files for smal-lang 0.5.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 smal-lang 0.5.0
File Size Uploaded Provenance
smal_lang-0.5.0.tar.gz 68.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for smal-lang 0.5.0
File Interpreter ABI Platform
smal_lang-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 161.6 kB

Release files / smal_lang-0.5.0.tar.gz

Download URL smal_lang-0.5.0.tar.gz
Size 68.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6fd39c25cb4ffd92cc4e0900f5edc3de66a65f8d232cc9738a636399d86bf40e
BLAKE2b-256 checksum
How to use checksums
1d4410db6114c2ec089f69b9f24e5293dfee8aa86d191f45867c671f9634c81c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 6, 2026.

Transparency log

Release files / smal_lang-0.5.0-py3-none-any.whl

Download URL smal_lang-0.5.0-py3-none-any.whl
Size 93.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a0d814323a2497aafdfd2d224dadf6a5c1bf4516070b1d0ef40b9b302988bf2
BLAKE2b-256 checksum
How to use checksums
1ef3ddb6785c4d94d25da06ec967f9dabd65f6fff5a37746f48fe31ae3c890f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 6, 2026.

Transparency log

Security for smal-lang 0.5.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for smal_lang-0.5.0.tar.gz

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 Aug 6, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files Full provenance

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