Tagged articles
8 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Aug 5, 2024 · Fundamentals

Implementing Dynamic Progress Bars in Python: Multiple Approaches and Code Examples

This article explains how to create dynamic progress bars in Python using plain print statements, the tqdm library, custom styling, multiple and nested bars, update‑frequency control, dynamic descriptions, custom callbacks, as well as the click and rich libraries, providing complete code snippets for each method.

clickconsoleprogress-bar
0 likes · 7 min read
Implementing Dynamic Progress Bars in Python: Multiple Approaches and Code Examples
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
MaGe Linux Operations
MaGe Linux Operations
Jan 20, 2019 · Backend Development

Build a Powerful Python REPL in Under 20 Lines with Prompt Toolkit & Click

This tutorial shows how to create a feature‑rich interactive Python REPL using Prompt Toolkit, Click, fuzzyfinder and Pygments, adding echo functionality, persistent history, auto‑suggest, tab completion, paging, editor integration and syntax highlighting—all with fewer than twenty lines of code.

Pythonclickcommand-line
0 likes · 9 min read
Build a Powerful Python REPL in Under 20 Lines with Prompt Toolkit & Click