About Anaconda Help Download Anaconda

A module for lazy loading of Python modules

copied from cf-staging / lazy_import

Installers

  • noarch v0.2.2

conda install

To install this package run one of the following:
conda install conda-forge::lazy_import

Description

lazy_import provides a set of functions that load modules, and related attributes, in a lazy fashion. This allows deferring of ImportErrors to actual module use-time. Likewise, actual module initialization only takes place at use-time. This is useful when using optional dependencies with heavy loading times and/or footprints, since that cost is only paid if the module is actually used.

For minimal impact to other code running in the same session lazy_import functionality is implemented without the use of import hooks.


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.1) Legal | Privacy Policy