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"

Usage

from preload import preload_with_feedback
preload_with_feedback(["matplotlib.pyplot", "scipy.signal"])

# [Rest of your code, such as: ]
import numpy as np
import scipy.signal
import matplotlib.pyplot as plt

print("Hello")

Installation

pip install preload

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

Uploaded Source

Built Distribution

preload-1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preload-1.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • 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-1.1.tar.gz
Algorithm Hash digest
SHA256 b09d3a15fe1f20f6eb7172d06a2bae153b435c8cdd52ba366e45fce5b865fa24
MD5 382e3d8f8561b3ba553573301a6f33e6
BLAKE2b-256 ff609f862830dcc616ca6d051633d6fe2fcfb2b6288ebb8a0ecab774892519e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: preload-1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea4ca3385bb2e6ecac874ed053262111e577ace542373de2ae15aa7cd42d5fd
MD5 cccc26640a6720acbb4e07168c58e488
BLAKE2b-256 45bfe7153b60e17d96454f2173c037b63ac1c42f1e7f66ff1238fcde647f9b41

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