Skip to main content

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:

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

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

Uploaded Source

Built Distribution

preload-2.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page