LazyModule
Install
pip install --upgrade pip && pip install lazy_module
#or
pip install git+https://github.com/anhvth/lazy_module
How to use
import time
start = time.time()
import pandas as pd
print('Import time:', time.time()-start)
Import time: 0.30898594856262207
Lazy import
from lazy_module.core import *
start = time.time()
pd = LazyModule('pandas')
print('Import time:', time.time()-start)
# Ipython tabcomplition should work normally
Import time: 5.507469177246094e-05
Issue
- Class import is not suported yet, assertion error will occor at runtime when the object is being called
Metadata
Release files for lazy-module 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lazy_module-0.0.3.tar.gz | 7.9 kB | Without provenance | Details for lazy_module-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lazy_module-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for lazy_module-0.0.3-py3-none-any.whl |
Total release size: 15.4 kB
Release files / lazy_module-0.0.3.tar.gz
| Download URL | lazy_module-0.0.3.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd0cc79db9e8d2f8604611f0117de4316b342c3ae91283e5e8f0a1983b548074
|
|
BLAKE2b-256 checksum How to use checksums |
f6969f1eef037805cd6707329a81426c433eb5f7f6356d343bb40307771eae02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.5
|
Release files / lazy_module-0.0.3-py3-none-any.whl
| Download URL | lazy_module-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f6c68489b5da10144b5ee438375d28e3241d5ba32b6999d9ef5da2ee54782ff
|
|
BLAKE2b-256 checksum How to use checksums |
8ecd9226d99ab5947f43a0ef64649ba05ac098f7ea716f7582860f50b59b5a1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.5
|
Security for lazy-module 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.