Skip to main content

Pydantic 2 argparse.

Project description

pydantic-argparse-next

Argument parser based on pydantic v2.

Install:

pip install pydantic-argparse-next

Supports:

✅ Positional arguments

        ✅ Required positional arguments

        ✅ Optional positional arguments

✅ Keyword arguments

        ✅ Required keyword arguments

        ✅ Optional keyword arguments

✅ Subcommands

        ✅ Required subcommands

        ✅ Optional subcommands

        ✅ Subcommands within subcommands

✅ Actions

        ✅ Choice (And simple text and Enum object)

        ✅ Store True

        ✅ Store False

        ✅ Variadic arguments

⬜ Extra

        ⬜ Easy saving config to file

        ⬜ Easy load config from file

Docs and examples:

  1. Base usage

  2. Actions

    1. Choice

    2. Store True and Store False

    3. Subcommands

    4. Variadic

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_argparse_next-1.0.4.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_argparse_next-1.0.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file pydantic_argparse_next-1.0.4.tar.gz.

File metadata

  • Download URL: pydantic_argparse_next-1.0.4.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.4 Windows/11

File hashes

Hashes for pydantic_argparse_next-1.0.4.tar.gz
Algorithm Hash digest
SHA256 82a6342db351e7424be5a6c3b3b6250acf87eaaecc904cceea7d68252c86f204
MD5 edc5fb5a05ab51da2262791a1c2594ba
BLAKE2b-256 f0925f9a424333dfbb048fbbee58852d80690c5eda8c9ca204b4191443367a96

See more details on using hashes here.

File details

Details for the file pydantic_argparse_next-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_argparse_next-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9be70c4189fa3b970e9dbaad67d8547f766ee95b1faec297068d6c192cecc3c6
MD5 8859e12a795ece9a8dd4f73268e56ea0
BLAKE2b-256 7cf65aef2894963022710f546a17b7471576c85f1960a69426384c2fd45999e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page