skillfed

argparse-addons

Additional argparse types and actions.

argparse-addons v0.12.0 3.9M downloads/30d#2,455 on PyPI3
Permissive license MIT Abandoned released

What it is and what it does

argparse_addons extends Python's built-in argparse module with additional type validators and action classes. The primary feature shown in the documentation is the Integer type, which validates command-line integer arguments against optional minimum and maximum bounds, producing clear error messages when values fall outside the specified range.

The package is a lightweight, dependency-free utility for developers building CLI tools who need stricter argument validation than argparse's basic int type provides. It requires Python 3.6 or later and integrates directly into standard argparse workflows by passing custom type objects to add_argument().

Use it for:

  • Validate bounded integers in CLI tools without writing custom validation logic.
  • Enforce range constraints with automatic, user-friendly error messages when arguments fall outside bounds.
  • Build command-line utilities that reject out-of-range numeric arguments at parse time rather than later in execution.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides additional type validators and action classes for Python's argparse module, enabling constrained integer parsing and custom argument handling.

Yes, if you need bounded integer validation in argparse and the feature set is sufficient—the package is stable, has no dependencies, and carries permissive licensing. No, if you require active maintenance or expect new features; the project is abandoned as of early 2023 and shows no recent activity.

Install

argparse-addons on PyPI

pip

pip install argparse-addons

uv

uv add argparse-addons

poetry

poetry add argparse-addons

Installing argparse-addons

Before you install

Low install friction with no runtime dependencies. However, the package is abandoned—last release was 2023-01-29 and no commits since then. Use only if the feature set is stable and sufficient for your needs.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open and closed projects.

Quickstart

pip install argparse_addons

import argparse
import argparse_addons

parser = argparse.ArgumentParser()
parser.add_argument('--port', type=argparse_addons.Integer(0, 255))
args = parser.parse_args(['--port', '47'])
print(args.port)

Requires Python 3.6 or later.

Verify before relying

  • Whether the Integer type supports all edge cases (negative ranges, very large bounds) beyond the documented examples.
  • Whether other custom types or actions beyond Integer are provided and documented.
  • Whether the package works reliably with Python versions beyond 3.6 despite abandonment.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,293 days since the last release
Last repo commit
First released
Downloads 3,910,017/month — #2,455 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: argparse_addons-0.12.0-py3-none-any.whl

Keywords: argparse

License :: OSI Approved :: MIT License

Tags

argparse custom typesargparse validatorsbounded integer parsingargparse extensionscommand line argument validation
cli-toolingargument-parsing

More Software Development packages