{"id":18499388,"url":"https://github.com/michaeltryby/epanet-parse","last_synced_at":"2025-05-14T05:35:29.240Z","repository":{"id":258278639,"uuid":"873210608","full_name":"michaeltryby/epanet-parse","owner":"michaeltryby","description":"File parsing toolkit for EPANET","archived":false,"fork":false,"pushed_at":"2024-10-16T14:19:55.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T00:49:05.238Z","etag":null,"topics":["ebnf","epanet","input","lark","parse"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaeltryby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T19:28:43.000Z","updated_at":"2024-10-16T14:21:28.000Z","dependencies_parsed_at":"2024-10-18T09:12:40.893Z","dependency_job_id":null,"html_url":"https://github.com/michaeltryby/epanet-parse","commit_stats":null,"previous_names":["michaeltryby/epanet-parse"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fepanet-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fepanet-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fepanet-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fepanet-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeltryby","download_url":"https://codeload.github.com/michaeltryby/epanet-parse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254077084,"owners_count":22010656,"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":["ebnf","epanet","input","lark","parse"],"created_at":"2024-11-06T13:45:46.083Z","updated_at":"2025-05-14T05:35:29.219Z","avatar_url":"https://github.com/michaeltryby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# epanet-parse\n\nFile parsing toolkit for EPANET\n\n## Build\n\nBuilds src and binary distributions\n\n```\n% python -m build\n```\n\n## Test\n\nInstalls requirements and runs tests\n\n```\n% pip install -r test-requirements.txt\n% pytest\n```\n## Usage\n\nConvert EPANET input into a parse tree.\n\n```\nfrom lark import Lark\n\nl = Lark.open_from_package(\n\"epanet.parse\", \"input-earley.lark\", (\"grammars\",), parser=\"earley\"\n)\n\ninput = \"\"\"\n[TITLE]\nHello EPANET!\n\"\"\"\n\nprint(l.parse(input))\n```\n\nOutput\n\n```\nTree(Token('RULE', 'start'), [Tree(Token('RULE', 'section'), [Token('KEYWORD', 'TITLE'), Tree(Token('RULE', 'record'), [Tree('keyword', [Token('KEYWORD', 'Hello')]), Tree('name', [Token('NAME', 'EPANET!')])])])])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltryby%2Fepanet-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeltryby%2Fepanet-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltryby%2Fepanet-parse/lists"}