Skip to content

Releases: p1-dta/lazimp

0.0.4

18 Sep 17:06
Compare
Choose a tag to compare

Features

Breaking changes

  • ⚠️ lazimp.lazy_import signature has changed i.e.:
def lazy_import(
        *bare_imports: str,
        aliases: collections.abc.Mapping[str, str] | None = None,
        sub_import: collections.abc.Mapping[str, str] | None = None,
        **kw_sub_import: str,
) -> collections.abc.Callable[[str], ModuleType]:

kw_sub_import will be merge with the sub_import mapping.

Fixes

  • 🐛 Fix bare import who weren't working.

Docs

Full Changelog: 0.0.3...0.0.4
PyPi release: https://pypi.org/project/lazimp/0.0.4/

0.0.3

17 Sep 14:55
Compare
Choose a tag to compare

Features

  • ⭐ To help typing and auto-completion of packages that use lazimp, types.ModuleType is now accessible through lazimp directly.

Docs

  • ✏️ README.md with description and examples.

Full Changelog: 0.0.2...0.0.3
PyPi release: https://pypi.org/project/lazimp/0.0.3/

0.0.2

17 Sep 14:52
Compare
Choose a tag to compare

Fixes

  • 🐛 Fix a missing import that prevent the package to be used properly when built from github sources.
  • 🐛 main auto-complete from lazimp module is removed.

Internal

  • ⚙️ lazy_import is directly stored in __init__.py, not in main.py anymore.

Full Changelog: 0.0.1...0.0.2
PyPi release: https://pypi.org/project/lazimp/0.0.2/

0.0.1

17 Sep 13:56
Compare
Choose a tag to compare

Features

  • ⭐ Lazy loading of sub-packages and modules.

Full Changelog: https://github.com/Vikka/lazimport/commits/0.0.1
Pypi release: https://pypi.org/project/lazimp/0.0.1/