{"id":20793717,"url":"https://github.com/anexia/python-param-parser","last_synced_at":"2026-02-12T00:36:00.166Z","repository":{"id":57676668,"uuid":"488112697","full_name":"anexia/python-param-parser","owner":"anexia","description":"A parser library for a param string expression.","archived":false,"fork":false,"pushed_at":"2024-11-08T15:21:41.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-01T03:14:58.110Z","etag":null,"topics":["hacktoberfest","parameters","parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anexia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2022-05-03T07:18:54.000Z","updated_at":"2024-11-08T15:21:18.000Z","dependencies_parsed_at":"2024-11-17T16:11:26.362Z","dependency_job_id":"4390b424-02c8-47d5-963b-7abd9e5e3bac","html_url":"https://github.com/anexia/python-param-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anexia/python-param-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fpython-param-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fpython-param-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fpython-param-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fpython-param-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anexia","download_url":"https://codeload.github.com/anexia/python-param-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anexia%2Fpython-param-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29351055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"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":["hacktoberfest","parameters","parser"],"created_at":"2024-11-17T16:11:09.519Z","updated_at":"2026-02-12T00:36:00.152Z","avatar_url":"https://github.com/anexia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"param-parser\n============\n\n[![PyPI](https://badge.fury.io/py/param-parser.svg)](https://pypi.org/project/param-parser/)\n[![Test Status](https://github.com/anexia/python-param-parser/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/anexia/python-param-parser/actions/workflows/test.yml)\n[![Codecov](https://codecov.io/gh/anexia/python-param-parser/branch/main/graph/badge.svg)](https://codecov.io/gh/anexia/python-param-parser)\n\n`param-parser` is a parser library for a param string expression. Those expressions are arbitrary strings  with \nplaceholders in it, where a placeholder consists of a name, an optional type and a list of options.\n\n# Installation\n\nWith a [correctly configured](https://pipenv.pypa.io/en/latest/basics/#basic-usage-of-pipenv) `pipenv` toolchain:\n\n```sh\npipenv install param-parser\n```\n\nYou may also use classic `pip` to install the package:\n\n```sh\npip install param-parser\n```\n\n# Getting started\n\nExamples of param string expressions look as follows:\n\n```\nthis-is-a-{param:string:option1,option2,option3}-expression\nthis-is-a-{param:string}-expression\nthis-is-a-{param}-expression\n```\n\nAs you see, a param is introduced by an opening curly bracket, followed by the name of the param, a colon, the type of \nthe param, another colon and a comma separated list of options. The param configuration gets terminated by a closing \ncurly bracket. Note that the type and option configuration are optional, but the name is mandatory.\n\nTo parse an expression shown above, use the Python code as follows:\n\n```python\nimport param_parser\n\nresult = param_parser.parse(r\"this-is-a-{param:string:option1,option2,option3}-expression\")\n\nresult[0]  # Gets a `param_parser.node.SequenceNode` instance\nresult[0].sequence_value  # Gets `\"this-is-a-\"` as a string\n\nresult[1]  # Gets a `param_parser.node.ParamNode` instance\nresult[1].param_name  # Gets `\"param\"` as a string\nresult[1].param_type  # Gets `\"string\"` as a string\nresult[1].param_options  # Gets `[\"option1\", \"option2\", \"option3\"]` as a list of strings\n\nresult[2]  # Gets a `param_parser.node.SequenceNode` instance\nresult[2].sequence_value  # Gets `\"-expression\"` as a string\n```\n\nIt is also possible to escape opening curly brackets, closing curly brackets, colons and commas as follows:\n\n```python\nimport param_parser\n\nresult = param_parser.parse(r\"this-is-a-\\{param:string:option1,option2,option3\\}-expression\")\n\nresult[0]  # Gets a `param_parser.node.SequenceNode` instance\nresult[0].sequence_value  # Gets `\"this-is-a-{param:string:option1,option2,option3}-expression\"` as a string\n```\n\n# Supported versions\n\n| This Project | Python Version |\n|--------------|----------------|\n| 1.1.*        | 3.9-3.13       |\n| 1.0.*        | 3.7-3.11       |\n\n# List of developers\n\n* Andreas Stocker \u003cAStocker@anexia-it.com\u003e, Lead Developer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanexia%2Fpython-param-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanexia%2Fpython-param-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanexia%2Fpython-param-parser/lists"}