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.3.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.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydantic_argparse_next-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 bd1259b92ad5063365d25745c5a0c0d5cebb2714bffc1e9ce13bbf023f9dc744
MD5 5ad3ce1b7447d5cfdd0e02cafcc540c4
BLAKE2b-256 e223a9bebc3d59dc9aa916b30a4422ef3eeb2f3317565c32868497f40125a006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydantic_argparse_next-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7fb11c9a22fdc1eff4d82e508d575dc41b383c15026d164b5e30ae8fca29f92c
MD5 a0c0f1934d10df2cd62d0961071c130a
BLAKE2b-256 1c875b530d0020be9bbd71f4cc7cddd5d16468c0cab684cadc198b6934de7591

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