{"id":15070025,"url":"https://github.com/ondra6ak/argpar","last_synced_at":"2026-01-03T11:33:04.735Z","repository":{"id":57411434,"uuid":"93537743","full_name":"ondra6ak/argpar","owner":"ondra6ak","description":"A simple arguments parser.","archived":false,"fork":false,"pushed_at":"2017-11-18T23:23:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T19:40:36.293Z","etag":null,"topics":["arguments","command-line","parser","python3","simple"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ondra6ak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-06T16:04:56.000Z","updated_at":"2017-06-06T16:59:12.000Z","dependencies_parsed_at":"2022-09-09T16:01:47.138Z","dependency_job_id":null,"html_url":"https://github.com/ondra6ak/argpar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondra6ak%2Fargpar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondra6ak%2Fargpar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondra6ak%2Fargpar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondra6ak%2Fargpar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ondra6ak","download_url":"https://codeload.github.com/ondra6ak/argpar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243838042,"owners_count":20355974,"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":["arguments","command-line","parser","python3","simple"],"created_at":"2024-09-25T01:46:33.354Z","updated_at":"2026-01-03T11:33:04.690Z","avatar_url":"https://github.com/ondra6ak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Argpar\n======\n\nA simple argument parser.\n\nUsage\n-----\n\n```python\nimport argpar\nimport copy\nimport sys\nopts = {\"o\": None, \"g\": \"foo\", \"w\": None}\nflags = [\"t\", \"u\"]\nposarg = {\"path\": \"/home\"}\nargpar.parse(opts, copy.copy(sys.argv), flags, posarg)\n```\n\nVaules in `opts` and `posarg` dictionaries are default values.\n\nWill automaticaly print help message if a `h` flag is found and exit.\n\nWe recomend copying `sys.argv`, as arguments get removed during parsing.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondra6ak%2Fargpar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fondra6ak%2Fargpar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondra6ak%2Fargpar/lists"}