Metadata-Version: 2.1
Name: lazy-module
Version: 0.0.1
Summary: Python LazyModule to replace python import statement for fast import
Home-page: https://github.com/anhvth/lazy_module/
Author: anhvth
Author-email: anhvth.226@gmail.com
License: Apache Software License 2.0
Keywords: Python LazyModule
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Provides-Extra: dev

LazyModule
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Install

``` sh
pip install lazy_module
```

## How to use

``` python
import time
```

``` python
start = time.time()
import pandas as pd
print('Import time:', time.time()-start)
```

    Import time: 0.425051212310791

## Lazy import

``` python
start = time.time()
pd = LazyModule('pandas')
plt = LazyModule('plt', old_import='from matplotlib.pyplot as plt')
print('Import time:', time.time()-start)
# Ipython tabcomplition should work normally
```

    Import time: 0.00010013580322265625

## Issue

-   Class import is not suported yet, assertion error will occor at
    runtime when the object is being called


