{"id":15578312,"url":"https://github.com/supimdos/pydantic-argparse","last_synced_at":"2025-10-04T17:58:30.127Z","repository":{"id":42369674,"uuid":"412103519","full_name":"SupImDos/pydantic-argparse","owner":"SupImDos","description":"Typed Argument Parsing with Pydantic","archived":false,"fork":false,"pushed_at":"2025-09-08T12:24:45.000Z","size":2674,"stargazers_count":130,"open_issues_count":9,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-29T05:19:17.258Z","etag":null,"topics":["argparse","pydantic","python","typed","validation"],"latest_commit_sha":null,"homepage":"https://pydantic-argparse.supimdos.com","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/SupImDos.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-30T14:44:27.000Z","updated_at":"2025-09-22T17:25:23.000Z","dependencies_parsed_at":"2024-04-28T06:34:41.571Z","dependency_job_id":"dc71b165-0b65-4cef-b193-69c428c5bede","html_url":"https://github.com/SupImDos/pydantic-argparse","commit_stats":{"total_commits":191,"total_committers":6,"mean_commits":"31.833333333333332","dds":"0.46596858638743455","last_synced_commit":"7ef87cea78a4272c162f1f40c28da3172836bde1"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/SupImDos/pydantic-argparse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupImDos%2Fpydantic-argparse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupImDos%2Fpydantic-argparse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupImDos%2Fpydantic-argparse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupImDos%2Fpydantic-argparse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupImDos","download_url":"https://codeload.github.com/SupImDos/pydantic-argparse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupImDos%2Fpydantic-argparse/sbom","scorecard":{"id":135724,"data":{"date":"2025-08-04","repo":{"name":"github.com/SupImDos/pydantic-argparse","commit":"fceab7dae0bab5976966cb0bd15bfeff8b0a6cef"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/format.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Warn: no topLevel permission defined: .github/workflows/type.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/format.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/format.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/format.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/format.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/format.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/format.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/format.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/format.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/type.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/type.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/type.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/type.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/type.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/type.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/type.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/SupImDos/pydantic-argparse/type.yml/master?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.10.0 not signed: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/199234469","Warn: release artifact v0.9.0 not signed: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/153205268","Warn: release artifact v0.8.0 not signed: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/95305999","Warn: release artifact v0.7.0 not signed: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/92181634","Warn: release artifact v0.6.1 not signed: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/81196855","Warn: release artifact v0.10.0 does not have provenance: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/199234469","Warn: release artifact v0.9.0 does not have provenance: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/153205268","Warn: release artifact v0.8.0 does not have provenance: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/95305999","Warn: release artifact v0.7.0 does not have provenance: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/92181634","Warn: release artifact v0.6.1 does not have provenance: https://api.github.com/repos/SupImDos/pydantic-argparse/releases/81196855"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T06:26:46.824Z","repository_id":42369674,"created_at":"2025-08-16T06:26:46.824Z","updated_at":"2025-08-16T06:26:46.824Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278350987,"owners_count":25972676,"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-10-04T02:00:05.491Z","response_time":63,"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":["argparse","pydantic","python","typed","validation"],"created_at":"2024-10-02T19:08:21.933Z","updated_at":"2025-10-04T17:58:30.089Z","avatar_url":"https://github.com/SupImDos.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\u003c!-- Logo --\u003e\n\u003ca href=\"https://pydantic-argparse.supimdos.com\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/SupImDos/pydantic-argparse/master/docs/assets/images/logo.svg\" width=\"50%\"\u003e\u003c/a\u003e\n\u003c!-- Headings --\u003e\n\u003ch1\u003ePydantic Argparse\u003c/h1\u003e\n\u003cp\u003e\u003cem\u003eTyped Argument Parsing with Pydantic\u003c/em\u003e\u003c/p\u003e\n\u003c!-- Badges (Row 1) --\u003e\n\u003ca href=\"https://pypi.python.org/pypi/pydantic-argparse\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/pydantic-argparse\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/pydantic-argparse\"\u003e\u003cimg src=\"https://img.shields.io/pepy/dt/pydantic-argparse?color=blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse\"\u003e\u003cimg src=\"https://img.shields.io/pypi/pyversions/pydantic-argparse\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/SupImDos/pydantic-argparse\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003c!-- Badges (Row 2) --\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse/actions/workflows/test.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/supimdos/pydantic-argparse/test.yml?label=tests\"\u003e\u003c/a\u003e\n\u003ca href=\"https://app.codecov.io/github/SupImDos/pydantic-argparse\"\u003e\u003cimg src=\"https://img.shields.io/codecov/c/github/SupImDos/pydantic-argparse\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse/actions/workflows/lint.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/supimdos/pydantic-argparse/lint.yml?label=linting\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse/actions/workflows/format.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/supimdos/pydantic-argparse/format.yml?label=formatting\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/SupImDos/pydantic-argparse/actions/workflows/type.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/supimdos/pydantic-argparse/type.yml?label=typing\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Help\nSee [documentation](https://pydantic-argparse.supimdos.com) for help.\n\n## Requirements\nRequires Python 3.8+, and is compatible with the Pydantic v1 API.\n\n## Installation\nInstallation with `pip` is simple:\n```console\n$ pip install pydantic-argparse\n```\n\n## Example\n```py\nimport pydantic.v1 as pydantic\n\nimport pydantic_argparse\n\n\nclass Arguments(pydantic.BaseModel):\n    # Required Args\n    string: str = pydantic.Field(description=\"a required string\", aliases=[\"-s\"])\n    integer: int = pydantic.Field(description=\"a required integer\", aliases=[\"-i\"])\n    flag: bool = pydantic.Field(description=\"a required flag\", aliases=[\"-f\"])\n\n    # Optional Args\n    second_flag: bool = pydantic.Field(False, description=\"an optional flag\")\n    third_flag: bool = pydantic.Field(True, description=\"an optional flag\")\n\n\ndef main() -\u003e None:\n    # Create Parser and Parse Args\n    parser = pydantic_argparse.ArgumentParser(\n        model=Arguments,\n        prog=\"Example Program\",\n        description=\"Example Description\",\n        version=\"0.0.1\",\n        epilog=\"Example Epilog\",\n    )\n    args = parser.parse_typed_args()\n\n    # Print Args\n    print(args)\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n```console\n$ python3 example.py --help\nusage: Example Program [-h] [-v] [-s STRING] [-i INTEGER] [-f | --flag | --no-flag]\n                       [--second-flag] [--no-third-flag]\n\nExample Description\n\nrequired arguments:\n  -s STRING, --string STRING\n                        a required string\n  -i INTEGER, --integer INTEGER\n                        a required integer\n  -f, --flag, --no-flag\n                        a required flag\n\noptional arguments:\n  --second-flag         an optional flag (default: False)\n  --no-third-flag       an optional flag (default: True)\n\nhelp:\n  -h, --help            show this help message and exit\n  -v, --version         show program's version number and exit\n\nExample Epilog\n```\n\n```console\n$ python3 example.py --string hello -i 42 -f\nstring='hello' integer=42 flag=True second_flag=False third_flag=True\n```\n\n## License\nThis project is licensed under the terms of the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupimdos%2Fpydantic-argparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupimdos%2Fpydantic-argparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupimdos%2Fpydantic-argparse/lists"}