Skip to main content
/Conference
upcoming#python#pep#performance#imports#cli

The Bakery: How PEP810 Sped Up My Bread Operations Business

PyCon Italia 2026·Bologna, Italy··30m

A practical demonstration of how PEP 810's explicit lazy imports can dramatically improve Python application startup times, using a live-coded CLI tool called breadctl as a case study with benchmarking comparisons.

SessionSpeaker Profile

This presentation demonstrates measurable performance improvements using Python's newly accepted PEP 810: Explicit lazy imports lazy imports feature through a live-coded CLI application called breadctl.

The talk shows faster help execution and reduced memory usage with benchmarking comparisons, illustrating how lazy imports optimize CLI tools and pluggable applications with practical examples using the litestar framework.

Topics Covered

  • Live-coded breadctl CLI demonstrating lazy imports
  • Benchmarking startup time improvements with PEP 810
  • Memory usage reduction through deferred module loading
  • Practical patterns for CLI tools and pluggable applications
  • Integration with the Litestar framework

Key Takeaways

  • Lazy imports provide measurable startup time improvements for CLI applications
  • PEP 810 offers a clean, explicit syntax for deferring module imports
  • Real-world benchmarks show significant performance gains in pluggable architectures