{"id":15426161,"url":"https://github.com/cryptaliagy/pyfsa","last_synced_at":"2026-07-06T09:31:00.186Z","repository":{"id":54846598,"uuid":"331758842","full_name":"cryptaliagy/pyfsa","owner":"cryptaliagy","description":"A CLI utility to render finite state machine graphs and verify strings against finite state machine languages, used for CSI3104 at uOttawa","archived":false,"fork":false,"pushed_at":"2021-01-25T20:28:03.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-28T08:58:42.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptaliagy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-21T21:24:40.000Z","updated_at":"2021-01-25T20:28:04.000Z","dependencies_parsed_at":"2022-08-14T04:40:22.357Z","dependency_job_id":null,"html_url":"https://github.com/cryptaliagy/pyfsa","commit_stats":null,"previous_names":["cryptaliagy/pyfsa","taliamax/pyfsa"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cryptaliagy/pyfsa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpyfsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpyfsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpyfsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpyfsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptaliagy","download_url":"https://codeload.github.com/cryptaliagy/pyfsa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptaliagy%2Fpyfsa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35185688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T17:55:02.580Z","updated_at":"2026-07-06T09:31:00.129Z","avatar_url":"https://github.com/cryptaliagy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyFSA\n\n[![Build status badge](https://img.shields.io/github/workflow/status/taliamax/pyfsa/build)](https://github.com/taliamax/pyfsa/actions?query=workflow%3Abuild)\n[![Release status badge](https://img.shields.io/github/workflow/status/taliamax/pyfsa/release?label=release)](https://github.com/taliamax/pyfsa/actions?query=workflow%3Arelease)\n[![PyPI version badge](https://img.shields.io/pypi/v/pyfsa)](https://pypi.org/project/pyfsa/)\n[![PyPI Status Badge](https://img.shields.io/pypi/status/pyfsa)](https://pypi.org/project/pyfsa/)\n\n[![Python versions badge](https://img.shields.io/pypi/pyversions/pyfsa)](https://github.com/taliamax/pyfsa)\n[![License](https://img.shields.io/github/license/taliamax/pyfsa)](https://github.com/taliamax/pyfsa/blob/master/LICENSE)\n[![Downloads per month](https://img.shields.io/pypi/dm/pyfsa)](https://pypi.org/project/pyfsa/)\n\nA python CLI to render finite state graphs.\n\nThis 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.\n\n## Installation\nYou can install this project directly from github with `pip`, but it is also available in `pypi`. Install it like so:\n\n```bash\npython3 -m pip install pyfsa\n```\n\nGraphViz 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/\n\nOn Ubuntu, you can find it in your package manager or install it directly using APT:\n\n```bash\n$ apt install graphviz\n```\n\nYou 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](https://pygraphviz.github.io). On Ubuntu, you can install it with the following command:\n\n```bash\n$ apt install libgraphviz-dev\n```\n\n\n## Examples\n\nState file:\n```csv\ntrigger,source,target\na,x,y\nb,x,z\na,y,x\nb,y,z\na,z,z\nb,z,z\n```\n\n```bash\nfsa state -f examples/states.csv\n```\n\n![no_start_end](examples/no_start_end.png)\n\n\n```bash\nfsa state -f examples/states.csv -s x\n```\n\n![start_state](examples/start_state.png)\n\n```bash\nfsa state -f examples/states.csv -e z\n```\n\n![end_state](examples/end_state.png)\n\n```bash\nfsa state -f examples/states.csv -s x -e z\n```\n\n![both](examples/both.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Fpyfsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptaliagy%2Fpyfsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptaliagy%2Fpyfsa/lists"}