Give user feedback while importing heavy modules
Project description
Preload
Python programs often seem to "hang" in the beginning. This is due to heavy modules being imported. This package lets the user know what is happening, to avoid this impression:
Installation
pip install preload
Usage
from preload import preload
preload(["matplotlib.pyplot", "scipy.signal"])
# Rest of your imports and code, such as:
import numpy as np
import scipy.signal
import matplotlib.pyplot as plt
print("Hello")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
preload-2.2.tar.gz
(14.9 kB
view details)
Built Distribution
preload-2.2-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file preload-2.2.tar.gz
.
File metadata
- Download URL: preload-2.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7efd04333b6d25047a4f548d289fd8bd963cdf753808f3ce8117ab108d21e05a |
|
MD5 | 70d6c55c46103ae91d68bcbe3b1a6714 |
|
BLAKE2b-256 | 992a1dfc866e6a85997ff9f574a9753f763a8174dd9d727681a60f37967757cd |
File details
Details for the file preload-2.2-py3-none-any.whl
.
File metadata
- Download URL: preload-2.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30da8ff57f14bba3f54f1652971dab21cf2a7fc855316eca4abd56de2f3a7b0e |
|
MD5 | 643d29adbd1f82c447f7c7df7c564589 |
|
BLAKE2b-256 | 2d5ccc355850fc080d1faf1ff18bf9ce68170ff46fd00f3c688692f6d9789207 |