{"id":18499401,"url":"https://github.com/michaeltryby/swmm-parse","last_synced_at":"2026-01-29T08:37:03.151Z","repository":{"id":236144277,"uuid":"792005256","full_name":"michaeltryby/swmm-parse","owner":"michaeltryby","description":"File parsing toolkit for SWMM","archived":false,"fork":false,"pushed_at":"2024-10-04T14:34:42.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-19T23:45:56.077Z","etag":null,"topics":["ebnf","input","lark","parser","swmm"],"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,"zenodo":null}},"created_at":"2024-04-25T19:42:09.000Z","updated_at":"2025-02-01T09:01:30.000Z","dependencies_parsed_at":"2024-11-06T13:48:15.061Z","dependency_job_id":"9dbc8218-743c-485e-b9ec-bfee30a96c11","html_url":"https://github.com/michaeltryby/swmm-parse","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"dcfb7fd34d5b53c7702d99f2cd5d9698da956451"},"previous_names":["michaeltryby/swmm-parse"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/michaeltryby/swmm-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fswmm-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fswmm-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fswmm-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fswmm-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeltryby","download_url":"https://codeload.github.com/michaeltryby/swmm-parse/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltryby%2Fswmm-parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28872356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T07:35:32.468Z","status":"ssl_error","status_checked_at":"2026-01-29T07:33:31.463Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ebnf","input","lark","parser","swmm"],"created_at":"2024-11-06T13:45:52.252Z","updated_at":"2026-01-29T08:37:03.119Z","avatar_url":"https://github.com/michaeltryby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swmm-parse\n\nFile parsing toolkit for SWMM\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\n## Usage\n\nConvert SWMM input into a parse tree.\n\n```\nfrom lark import Lark\n\nl = Lark.open_from_package(\n\"swmm.parse\", \"input-earley.lark\", (\"grammars\",), parser=\"earley\"\n)\n\ninput = \"\"\"\n[TITLE]\nHello SWMM!\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', 'SWMM!')])])])])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltryby%2Fswmm-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeltryby%2Fswmm-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltryby%2Fswmm-parse/lists"}