lazy-loader
Makes it easy to load subpackages and functions on demand.
Install
lazy-loader on PyPI
pip
pip install lazy-loaderuv
uv add lazy-loaderpoetry
poetry add lazy-loaderPackage facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — packaging |
| Maintenance | actively maintained — 160 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: lazy_loader-0.5-py3-none-any.whl
About lazy-loader
from the package's own PyPI description — quoted content, verbatim
PyPI (image) Test status (image) Test coverage (image)
lazy-loader makes it easy to load subpackages and functions on demand.
Motivation
- Allow subpackages to be made visible to users without incurring import costs.
- Allow external libraries to be imported only when used, improving import times.
For a more detailed discussion, see the SPEC.
Installation
pip install -U lazy-loader
We recommend using lazy-loader with Python >= 3.11.
If using Python 3.11, please upgrade to 3.11.9 or later.
If using Python 3.12, please upgrade to 3.12.3 or later.
These versions avoid a known race condition.
Usage
Lazily load...
Read as markdown · JSON record · Source repository · Homepage
Similar packages
permissive · top 1,000 on PyPI
twinepermissive · top 1,000 on PyPI
types-PyYAMLpermissive · top 1,000 on PyPI
installerpermissive · top 1,000 on PyPI
thriftpermissive · top 1,000 on PyPI
safetensorspermissive · top 1,000 on PyPI
stevedorepermissive · top 1,000 on PyPI
pip-apipermissive · top 1,000 on PyPI
typing-inspectionpermissive · top 100 on PyPI
vinepermissive · top 1,000 on PyPI