{"id":15790828,"url":"https://github.com/andreztz/cmd-parser","last_synced_at":"2025-08-16T22:32:19.573Z","repository":{"id":197758808,"uuid":"698885790","full_name":"andreztz/cmd-parser","owner":"andreztz","description":"Command Parser Library","archived":false,"fork":false,"pushed_at":"2024-09-24T17:51:28.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-04T22:41:08.318Z","etag":null,"topics":[],"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/andreztz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-10-01T09:25:03.000Z","updated_at":"2024-09-24T17:51:33.000Z","dependencies_parsed_at":"2024-07-06T00:24:20.070Z","dependency_job_id":"047e1702-80a1-4dcf-a7bc-18c7c9b8693a","html_url":"https://github.com/andreztz/cmd-parser","commit_stats":null,"previous_names":["andreztz/cmd-parser"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/andreztz/cmd-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreztz%2Fcmd-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreztz%2Fcmd-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreztz%2Fcmd-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreztz%2Fcmd-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreztz","download_url":"https://codeload.github.com/andreztz/cmd-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreztz%2Fcmd-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781196,"owners_count":24643804,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-04T22:40:45.648Z","updated_at":"2025-08-16T22:32:19.554Z","avatar_url":"https://github.com/andreztz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmd-parser\n\n[![PyPI - Version](https://img.shields.io/pypi/v/cmd-parser.svg)](https://pypi.org/project/cmd-parser)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cmd-parser.svg)](https://pypi.org/project/cmd-parser)\n\nThe `cmd-parser` library provides a simple way to parse command-line style input strings into a structured dictionary format. This is useful for applications that need to interpret commands with arguments and parameters.\n\n---\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n## Installation\n\nYou can install the Command Parser Library using pip:\n\n```console\npip install cmd-parser\n```\n\n## Usage\n\nHere's a quick example of how to use the library:\n\n```python\nfrom cmd_parser.core import asdict, parse\n\ncommand_string = '!command arg1 arg2 param=True param1=1 param2=.2'\nparsed_command = parse(command_string)\nprint(asdict(parsed_command))\n```\n\nThis will output:\n\n```python\n{\n    'command': 'command',\n    'args': ['arg1', 'arg2'],\n    'kwargs': {\n        'param': True,\n        'param1': 1,\n        'param2': 0.2,\n    }\n}\n```\n\n## License\n\n`cmd-parser` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreztz%2Fcmd-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreztz%2Fcmd-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreztz%2Fcmd-parser/lists"}