Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tfiers/preload
Give user feedback while importing heavy Python modules
https://github.com/tfiers/preload
Last synced: about 2 months ago
JSON representation
Give user feedback while importing heavy Python modules
- Host: GitHub
- URL: https://github.com/tfiers/preload
- Owner: tfiers
- License: mit
- Created: 2019-07-03T08:57:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-07T08:10:02.000Z (almost 4 years ago)
- Last Synced: 2024-10-05T14:04:36.482Z (3 months ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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"](https://raw.githubusercontent.com/tfiers/preload/master/example.gif)
## Installation
```
pip install preload
```
This will get you the
[![Latest version on PyPI](https://img.shields.io/pypi/v/preload.svg?label=latest%20version%20on%20PyPI:)](https://pypi.python.org/pypi/preload/)## Usage
```python
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 pltprint("Hello")
```