Pages

Topics

Tools

↑↓navigate↵openescclose

All syntax guides

Short, practical guides on programming syntax, language fundamentals, and the tools developers reach for every day.

3,965 guides across 14 topics

Topics

Latest guides

A stylized terminal window showing a Python traceback with Loguru's colored formatting and a catch decorator.
Python

Python Loguru Exception Handling and Tracebacks

Learn how to capture and format exception tracebacks with Python Loguru, control backtrace and diagnose options, and integrate with standard logging.

loguruexception handlingtracebackspython logging
Illustration of rotating log files with a retention window, showing old files being archived and deleted over time.
Python

Python Loguru File Logging: Rotation and Retention

Configure Loguru file logging with rotation and retention: size and time rotation options, retention policies, compression, and common production pitfalls.

LoguruPython LoggingLog RotationLog Retention
Illustration of two stacked progress bars showing nested loop progress in a Python terminal
Python

Python tqdm Nested and Manual Progress Bars

python tqdm nested and manual progress bars: Learn to build nested progress bars and manual update loops with tqdm, including position control, refresh throttling, and...

tqdmprogress barsPython loopsterminal output
A progress bar integrated with concurrent Python tasks, showing multiprocessing and asyncio icons.
Python

Using Python tqdm with Multiprocessing and Asyncio

Integrate tqdm progress bars with multiprocessing and asyncio in Python. Learn practical patterns for multiprocessing.Pool, asyncio.gather, and progress bar overhead control.

tqdmmultiprocessingasyncioprogress bar
A progress bar overlaying a pandas DataFrame with a function being applied to rows.
Python

Python tqdm pandas Integration for Progress Bars

Integrate tqdm with pandas to add progress bars to apply, map, and manual iteration. Covers setup, usage, overhead, limitations, and parallel processing.

tqdmpandasprogress barsdataframe
Illustration of a Python progress bar wrapping a loop with enumerate, showing index and value iteration.
Python

Python tqdm Progress Bars with Loops and Enumerate

Learn how to add progress bars to Python loops using tqdm, including integration with enumerate, customization options, performance trade-offs, and common pitfalls.

tqdmprogress barsPython loopsenumerate
Side-by-side comparison of Click and Typer Python CLI libraries showing type hints and command definitions.
Python

Python Click vs Typer: Choosing the Right CLI Library

Compare Click and Typer for building Python command-line interfaces. Understand syntax, type hints, validation, and when to choose each.

CLITyperClickPython
Diagram showing a Python Click CLI option reading its value from an environment variable.
Python

Python Click Environment Variables: Options and Defaults

Learn how to configure Click CLI options from environment variables, including defaults, automatic prefix mapping, precedence, and testing.

ClickEnvironment VariablesCLIPython
Diagram showing a Click command group with subcommands and a prompt input field
Python

Python Click Groups, Subcommands, and Prompts

Learn how to structure Python Click CLIs with groups, subcommands, and interactive prompts, including shared context, validation, and testing.

ClickCLIPythonSubcommands
Illustration of a Python Click CLI with command, argument, and option components.
Python

Python Click CLI: Commands, Arguments, and Options

Learn how to build Python CLIs with Click: declare commands, add positional arguments and options, organize subcommands, handle errors, and test with CliRunner.

ClickCLIPythonArgument Parsing