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.1.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

preload-2.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file preload-2.1.tar.gz.

File metadata

  • Download URL: preload-2.1.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for preload-2.1.tar.gz
Algorithm Hash digest
SHA256 c3a05a2d8265fde6462ff38707684a8758a68bb7166c7d834fa25b1b130772f2
MD5 97fa9c75808fd6b9394378ca9fb0da44
BLAKE2b-256 b3855f4e54030837ac003b529cae749caccd8384c8d23ff6438d9dd9d77a4d32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: preload-2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for preload-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 508cf3285e7870d34f86a5701756842042b831977f093c252bacdd471cd0b94c
MD5 e6b0e5019e376995556ce223a6490cfd
BLAKE2b-256 acfc6a298d7ce1934f44d036e4682c1b6383fb778a01601da306f72702fb6e93

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