Python Lazy Imports: The lazy Keyword and Alternatives
Python 3.15 adds the lazy keyword (PEP 810) for imports that load on first use. This guide measures start-up time with -X importtime, shows a CLI tool that starts in 57 ms instead of 141 ms, and compares the older alternatives.