argparse-addons
Additional argparse types and actions.
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-addonsuv
uv add argparse-addonspoetry
poetry add argparse-addonsInstalling 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
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
typed-argument-parserA typed, modern replacement for Python's…
permissive · top 15,000 on PyPI
pydantic-argparseGenerates command-line argument parsers from…
permissive · top 5,000 on PyPI
argcompleteProvides bash and zsh tab completion for Python…
permissive · top 1,000 on PyPI
decliDecli wraps argparse to let you define…
permissive · top 5,000 on PyPI
pyiotoolsProvides unified I/O handling for command-line,…
permissive · top 15,000 on PyPI
guacamoleGuacamole provides a framework for building…
copyleft · top 15,000 on PyPI
simple-parsingTransforms argparse scripts into structured,…
permissive · top 5,000 on PyPI
ConfigArgParseExtends Python's argparse to parse command-line…
permissive · top 1,000 on PyPI
argparseProvides command-line argument parsing for…
permissive · top 1,000 on PyPI
argparse-dataclassBuilds command-line interfaces declaratively by…
permissive · top 5,000 on PyPI