Image

Brian Okken: Polite lazy imports for Python package maintainers

If you are a maintainer of a Python package, it’s nice if you pay attention to the time it takes to import your package.

Further, if you’ve got a Python package with multiple components where it’s probable that many users will only use part of the package, then it’s super nice if you set up your__init__.pyfiles for lazy importing.

Previously - lazy importing other packages

InPython lazy imports you can use today, I discussed:

https://pythontest.com/polite-lazy-imports-python-packages/