{"id":19296298,"url":"https://github.com/dboyliao/pyautomata","last_synced_at":"2026-05-18T05:07:50.798Z","repository":{"id":81939981,"uuid":"51700867","full_name":"dboyliao/PyAutomata","owner":"dboyliao","description":null,"archived":false,"fork":false,"pushed_at":"2016-02-14T16:07:30.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T21:29:57.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dboyliao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-14T15:50:30.000Z","updated_at":"2016-02-14T15:51:11.000Z","dependencies_parsed_at":"2023-05-01T22:54:47.473Z","dependency_job_id":null,"html_url":"https://github.com/dboyliao/PyAutomata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dboyliao%2FPyAutomata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dboyliao%2FPyAutomata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dboyliao%2FPyAutomata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dboyliao%2FPyAutomata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dboyliao","download_url":"https://codeload.github.com/dboyliao/PyAutomata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400292,"owners_count":19795331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-09T22:46:14.009Z","updated_at":"2026-05-18T05:07:45.755Z","avatar_url":"https://github.com/dboyliao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## `automata` - A Simple Python Package for Playing with Automata\n\n## Deterministic Finite Automata\n\n```{python}\nfrom automata.dfa import DFA\nfrom automata.transition import TransitionTable\n\nalphabet = [\"a\", \"b\"]\nstates = [\"1\", \"2\"]\ntable = TransitionTable(alphabet, states)\ntable.add_transition(\"b\", \"2\", \"2\")\ntable.add_transition(\"a\", \"1\", \"2\")\ntable.add_transition(\"b\", \"1\", \"1\")\n\ndfa = DFA(table)\n\naccepted = dfa.consume(\"bba\")\n\nif accepted:\n    print \"'bba' is accepted.\"\nelse:\n    print \"'bba' is not accepted.\"\n```\n\n## Install\n\n- run `make install` to install dependencies for this package.\n- see `requirements.txt` for required packages.\n\n## Test\n\n1. run `make test` to run the tests.\n    - run `make install` first to install the packages required for testing. \n2. see the result of the tests in `tests/reports/index.html`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdboyliao%2Fpyautomata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdboyliao%2Fpyautomata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdboyliao%2Fpyautomata/lists"}