PyFSA
A python CLI to render finite state graphs.
This application takes a CSV file with state information, and uses it to either produce the finite state graph, and verify that strings are valid given the state information, a start state, and a desired state. The string subcommand is also able to render the traversal graph of a string through the state machine.
Installation
You can install this project directly from github with pip, but it is also available in pypi. Install it like so:
python3 -m pip install pyfsa
GraphViz is required to run this, as graphviz is the rendering engine used to create the png files. You can find lots of information on how to do that here: https://graphviz.org/download/
On Ubuntu, you can find it in your package manager or install it directly using APT:
$ apt install graphviz
You might need to also install the graphviz development library to ensure the Python wrapper pygraphviz runs properly. You can find more information on installing pygraphviz on their website. On Ubuntu, you can install it with the following command:
$ apt install libgraphviz-dev
Examples
State file:
trigger,source,target
a,x,y
b,x,z
a,y,x
b,y,z
a,z,z
b,z,z
fsa state -f examples/states.csv
fsa state -f examples/states.csv -s x
fsa state -f examples/states.csv -e z
fsa state -f examples/states.csv -s x -e z
Metadata
Release files for pyfsa 0.4.1
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 | |
|---|---|---|---|---|
| pyfsa-0.4.1.tar.gz | 7.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyfsa-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / pyfsa-0.4.1.tar.gz
| Download URL | pyfsa-0.4.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b55e2d64bf1d5d087274522ad31e26b7bb4498e01fb3ce4f9b4a1d45cee3291a
|
|
BLAKE2b-256 checksum How to use checksums |
2ad6ad888efae3cddafe54034264a3404b1fe52e60c6d1e170be92658ab0f882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / pyfsa-0.4.1-py3-none-any.whl
| Download URL | pyfsa-0.4.1-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86dc821b0ff405459ab225bc57d8c5388b0cb7f9325322996972e69fe53daf5c
|
|
BLAKE2b-256 checksum How to use checksums |
55963c5d7bebd336939858714109f0fafbb897d09781f4ffd9393aa2bd072849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for pyfsa 0.4.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.