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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

preload-2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file preload-2.0-py3-none-any.whl.

File metadata

  • Download URL: preload-2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for preload-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56a86061ca77661258b216539fe93248ce382f6aa6fdcc9050dec547a3441501
MD5 cac8f03fcb45f0b07c1789dba8a73508
BLAKE2b-256 d643ac8b4569ecbb24cdb08e568e8c3eae39cf566c8a9f407019110aa6b99560

See more details on using hashes here.

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