🤖 A powerful, modern, and educational Python toolkit for automata theory. Visualize DFAs, NFAs, CFGs, minimize automata, and more with an elegant, type-safe API.
Project description
🤖 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.
🤔 Why Automata Diags?
| Feature | Why It Matters |
|---|---|
| Complete Toolset | From basic DFAs to complex CFG conversions, all the tools you need for a typical Theory of Computation course are in one place. |
| Educational Focus | The API is designed to be intuitive and map closely to textbook concepts, making it an excellent companion for students. |
| Advanced Algorithms | Includes research-grade implementations like Hopcroft's minimization, setting it apart from simpler libraries. |
| Instant Visualization | Don't just build automata—see them. Instant visual feedback helps solidify complex concepts and makes debugging intuitive. |
| Modern & Maintained | Built with modern Python (type hints, clean architecture) and actively maintained for correctness and new features. |
📦 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.
🤝 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.
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 automata_diags-0.2.2.tar.gz.
File metadata
- Download URL: automata_diags-0.2.2.tar.gz
- Upload date:
- Size: 454.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83c75f9736634dd66a8abf03ecd23e594899460199c8901da048ad486a9611df
|
|
| MD5 |
21ff56d34a47e8dbe1d6314a1dfa679d
|
|
| BLAKE2b-256 |
f99a3f7169e8700e7429154d0c59910107d3cd7586e2d5ae198f537e121d4864
|
Provenance
The following attestation bundles were made for automata_diags-0.2.2.tar.gz:
Publisher:
python-publish.yml on Ajodo-Godson/automata_diags
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
automata_diags-0.2.2.tar.gz -
Subject digest:
83c75f9736634dd66a8abf03ecd23e594899460199c8901da048ad486a9611df - Sigstore transparency entry: 532520772
- Sigstore integration time:
-
Permalink:
Ajodo-Godson/automata_diags@bc47f46fd0734bcc4dda9659c17de3774f6ec656 -
Branch / Tag:
refs/tags/V0.2.1 - Owner: https://github.com/Ajodo-Godson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bc47f46fd0734bcc4dda9659c17de3774f6ec656 -
Trigger Event:
release
-
Statement type:
File details
Details for the file automata_diags-0.2.2-py3-none-any.whl.
File metadata
- Download URL: automata_diags-0.2.2-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f428cc1eb6c193432acb0f12c7abca3e1c4a2769d48437c6311f1dc6e1958267
|
|
| MD5 |
071d3ea0918df85e7c73e4ef705c8ad8
|
|
| BLAKE2b-256 |
1c9c4689f05c7fb33e43f54862c9c604f33d6615629c0acb6c252189d304acc8
|
Provenance
The following attestation bundles were made for automata_diags-0.2.2-py3-none-any.whl:
Publisher:
python-publish.yml on Ajodo-Godson/automata_diags
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
automata_diags-0.2.2-py3-none-any.whl -
Subject digest:
f428cc1eb6c193432acb0f12c7abca3e1c4a2769d48437c6311f1dc6e1958267 - Sigstore transparency entry: 532520776
- Sigstore integration time:
-
Permalink:
Ajodo-Godson/automata_diags@bc47f46fd0734bcc4dda9659c17de3774f6ec656 -
Branch / Tag:
refs/tags/V0.2.1 - Owner: https://github.com/Ajodo-Godson
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bc47f46fd0734bcc4dda9659c17de3774f6ec656 -
Trigger Event:
release
-
Statement type: