Automata Diags
A powerful, modern, and educational Python toolkit for automata theory. Visualize DFAs, NFAs, CFGs, minimize automata, and more with an elegant, type-safe API.
For the full, comprehensive documentation including tutorials and the API reference, please visit our Documentation Website.
Installation
pip install automata-diags
Requires Python 3.8+ and Graphviz.
Quick Start
from automata.backend.grammar.dist import State, Symbol
from automata.backend.grammar.regular_languages.dfa.dfa_mod import DFA
from automata.backend.drawings.automata_drawer import AutomataDrawer
# Create a simple DFA
# For more creation methods, see the full documentation.
dfa = DFA.from_string("q0,a,q1;q1,b,q2", start_state="q0", accept_states={"q2"})
# Test it
dfa.accepts([Symbol('a'), Symbol('b')]) # True
# Visualize it
drawer = AutomataDrawer()
drawer.draw_dfa_from_object(dfa, "my_first_dfa")
For more examples and detailed guides, please visit the Full Documentation Site.
Web App
https://ajodo-godson.github.io/automata_diags/
Contributing
Contributions are welcome! Please feel free to open a pull request or submit an issue on our GitHub repository.
License
This project is licensed under the MIT License.
Metadata
Release files for automata-diags 0.6.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 | Actions |
|---|---|---|---|---|
| automata_diags-0.6.0.tar.gz | 1.1 MB | With provenance | Details for automata_diags-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| automata_diags-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for automata_diags-0.6.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / automata_diags-0.6.0.tar.gz
| Download URL | automata_diags-0.6.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08465e6a5e51c07962063722c3e6fc36c662f891315e4a34523ea180bb68588d
|
|
BLAKE2b-256 checksum How to use checksums |
220ea10da8a055d134c926499d297b16e71bbe7e560909c59b03a72470afb8f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 14, 2026.
Transparency logRelease files / automata_diags-0.6.0-py3-none-any.whl
| Download URL | automata_diags-0.6.0-py3-none-any.whl |
|---|---|
| Size | 63.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9fdbd8e9165907029a68e8988199e2674036a92f1c6c90113665672bd25b7a4
|
|
BLAKE2b-256 checksum How to use checksums |
630a8772a6bc085aee44ffdd2d6b63aa8795221f5eef26b9892b3b66237f8639
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 14, 2026.
Transparency logSecurity for automata-diags 0.6.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.
Attestation for automata_diags-0.6.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 Jul 14, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.