FreeBSD.software
Home/devel/py311-lazy_imports

py311-lazy_imports

1.0.1devel

Python package helps to create lazy modules

This python utility package helps to create lazy modules. A lazy module defers loading (some of) its attributes until these attributes are first accessed. The module's lazy attributes in turn are attributes of other modules. These other modules will be imported/loaded only when (and if) associated attributes are used. A lazy import strategy can drastically reduce runtime and memory consumption. Additionally, this package provides a utility for optional imports with which one can import a module globally while triggering associated import errors only at use-sites (when and if a dependency is actually required, for example in the context of a specific functionality).

$pkg install py311-lazy_imports
github.com/bachorp/lazy-imports
Origin
devel/py-lazy_imports
Size
105KiB
License
APACHE20
Maintainer
otis@FreeBSD.org
Dependencies
1 packages
Required by
1 packages

Dependencies (1)

Required By (1)