Lazy-import

Latest version: v0.2.2

Safety actively analyzes 681775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.2

- fixed a serious bug when lazy-loading a submodule of a fully-loaded base.

0.2.1

- annoying release to fix install notice on PyPi (because README.rst was
incorrect).

0.2

- stabilized a python 3 bug when importing modules using 'import modulename'
syntax.
- added a test shortcut.
- published to PyPi (yay!)

0.1

- along with python 2.7, the code is now Python 3 compatible
(at least versions 3.4 through 3.6).
- a replacement of lazyModule (lazy_module, which defers most work to
_lazy_module) was implemented that uses a modified LazyModule class;
- a different LazyModule class is now created per instance, so that
reverting the __getattribute__ behavior can be done safely;
- a function to lazily import module callables was added;
- customization is fully supported, either as passable custom error messages
or as passable LazyModule subclass alternatives.
- module reloading is now more stable, especially in the case of submodules.
- added testing.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.