Tagged articles
9 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Apr 25, 2025 · Fundamentals

Using Python argparse for Command‑Line Argument Parsing

This article introduces Python's built‑in argparse module, explains its core features such as defining positional and optional arguments, type constraints, mutually exclusive groups, sub‑parsers, and best‑practice tips, and provides a complete runnable example for building robust CLI tools.

Pythonargparsecommand-line
0 likes · 5 min read
Using Python argparse for Command‑Line Argument Parsing
Test Development Learning Exchange
Test Development Learning Exchange
Jun 7, 2024 · Fundamentals

Understanding argparse in Python

argparse is a standard Python library for creating user-friendly command-line interfaces, allowing you to define parameters and options, generate help messages, and parse input with error handling.

PythonTutorialargparse
0 likes · 5 min read
Understanding argparse in Python
Python Programming Learning Circle
Python Programming Learning Circle
Aug 12, 2022 · Backend Development

Using the Python Fire Library to Build Simple Command-Line Interfaces

This article explains why the Fire library is a superior alternative to argparse and Click for creating Python command-line tools, demonstrates its installation, provides multiple usage patterns—including exposing functions, classes, and dictionaries as CLIs—and showcases advanced features such as command grouping, attribute access, and custom argument handling.

AutomationCLIargparse
0 likes · 10 min read
Using the Python Fire Library to Build Simple Command-Line Interfaces
Python Programming Learning Circle
Python Programming Learning Circle
Aug 8, 2022 · Backend Development

Designing Robust Python Command-Line Interfaces with Click, argparse, and sys.argv

This article teaches Python developers how to build maintainable command‑line tools by applying four design principles, illustrating them with a Caesar‑cipher example implemented via sys.argv, argparse, and the Click library, and showing advanced features like file I/O, progress bars, and automated key breaking.

Caesar Cipherargparseclick
0 likes · 10 min read
Designing Robust Python Command-Line Interfaces with Click, argparse, and sys.argv