{"id":15893403,"url":"https://github.com/multimeric/wdlparserpackaging","last_synced_at":"2025-04-02T17:42:54.679Z","repository":{"id":62588384,"uuid":"162361711","full_name":"multimeric/WdlParserPackaging","owner":"multimeric","description":"A repo for packaging the official Python WDL parser","archived":false,"fork":false,"pushed_at":"2018-12-19T05:51:25.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T22:09:03.491Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/multimeric.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}},"created_at":"2018-12-19T00:37:10.000Z","updated_at":"2020-01-09T18:19:38.000Z","dependencies_parsed_at":"2022-11-03T17:53:30.721Z","dependency_job_id":null,"html_url":"https://github.com/multimeric/WdlParserPackaging","commit_stats":null,"previous_names":["tmiguelt/wdlparserpackaging"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FWdlParserPackaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FWdlParserPackaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FWdlParserPackaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multimeric%2FWdlParserPackaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multimeric","download_url":"https://codeload.github.com/multimeric/WdlParserPackaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246863816,"owners_count":20846317,"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-10-06T08:10:23.692Z","updated_at":"2025-04-02T17:42:54.656Z","avatar_url":"https://github.com/multimeric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WDL Parser\n\nThis repo contains code used to publish pip packages for the parsers located in the [official WDL repository](https://github.com/openwdl/wdl).\nUsing those packages, you can parse WDL workflows under any version of the WDL specification.\n\n## Installation\nTo install the parsers, run:\n```bash\npip install wdl-parser\n```\n\n## Usage\n\n### Direct Import\nThe WDL parsers are provided within one package named `wdl_parser`. \nOne module exists inside this for each version of the spec, with all hyphens and dots replaced by underscores.\nThus, the modules available to import are:\n\n* `wdl_parser.version_1_0`\n* `wdl_parser.development`\n* `wdl_parser.draft_2`\n* `wdl_parser.draft_3`\n\nEach of these modules exposes a `parse` function, which takes a string containing the WDL to parse.\nFor example:\n```python\nfrom wdl_parser import draft_2\n\nwith open('./gatk4-data-processing/processing-for-variant-discovery-gatk4.wdl') as wdlfile:\n    tree = draft_2.parse(wdlfile.read())\n\n```\n\n### Parser Dictionary\n\nAlternatively, if you want to access a parser based on its official name, you can import the base module, and access\nthe parser dictionary like this:\n\n```python\nimport wdl_parser\n\nwith open('./gatk4-data-processing/processing-for-variant-discovery-gatk4.wdl') as wdlfile:\n    tree = wdl_parser.parsers['draft-2'].parse(wdlfile.read())\n\n```\n\n### Operating on the AST\nOnce you have the AST, refer to the [Hermes documentation](https://github.com/scottfrazer/hermes/blob/develop/DOCS.md) for more\ninformation on how to use it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fwdlparserpackaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultimeric%2Fwdlparserpackaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultimeric%2Fwdlparserpackaging/lists"}