Python guides
Every published Python guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular Python guides
Most readLatest Python guides
Page 18 of 179Python Rich Prompts and CLI Output: A Practical Guide
Build interactive CLI prompts and styled terminal output in Python with Rich. Learn validation with Prompt.ask, tables, panels, and progress bars.
Python Rich: Markdown, JSON, and Layouts in the Terminal
Combine Python Rich's Markdown, JSON, and Layout renderables to build readable CLI output with syntax highlighting and responsive panels.
Python Rich Logging: Tracebacks and Syntax Highlighting
Learn how to configure RichHandler for Python logging, including readable tracebacks, syntax highlighting options, and production considerations.
Python Rich Progress Bars, Spinners, and Status
Learn how to add Rich progress bars, spinners, and status messages to Python CLI apps, with working examples and configuration details.
Python Rich Console: Print Tables and Panels
Render structured data as tables and panels in Python with Rich. See how to set up the console, align columns, style output, and nest renderables.
Python Faker with Pytest Test Data
python faker with pytest test data: Learn how to use Python Faker with pytest to generate realistic test data, including fixtures, seeding for reproducibility, and com...
Python Faker: Locale, Unique Values, and Seeds
Learn how Python Faker combines locale-specific data, deterministic seeds, and unique value generation for realistic test data, along with common pitfalls.
Generate Names, Emails, Addresses, and Dates with Python Faker
Learn how to use Python Faker to generate realistic names, emails, addresses, and dates for test data. Includes locale support, reproducible seeds, and performance tips.
Python Pytest Cov Configuration and Coverage Reports
python pytest cov configuration and coverage reports: Learn how to configure pytest-cov, generate terminal, HTML, and XML coverage reports, and enforce coverage thresh...
Python Coverage: Branch Coverage and HTML Reports
Learn how to measure branch coverage with Python's coverage.py, generate HTML reports, and interpret missed branches.