Skip to content
/ preload Public

Give user feedback while importing heavy Python modules

License

Notifications You must be signed in to change notification settings

tfiers/preload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

A console showing the output of the program under "Usage"

Installation

pip install preload

This will get you the Latest version on PyPI

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")

About

Give user feedback while importing heavy Python modules

Resources

License

Stars

Watchers

Forks

Languages