Useful tool for easy importing with aliases
Project description
🧺 get_lunchbox
Easy imports in Python — simplify your workflow by dynamically importing modules with optional aliases.
Update
- adeed
get_lazy_lunchbox()which saves memory, by importing a module when it's used
🚀 Usage
from get_lunchbox import get_lunchbox
lb = get_lunchbox(
("math",),
("numpy", "np"),
("matplotlib.pyplot", "plt")
)
print(lb.math.sqrt(25)) # 5.0
print(lb.np.array([1, 2, 3])) # numpy array
lb.plt.plot([1, 2], [3, 4]) # matplotlib plot
lb.plt.show()
Installation Process
pip install get_lunchbox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
get_lunchbox-1.1.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file get_lunchbox-1.1.tar.gz.
File metadata
- Download URL: get_lunchbox-1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824db67bf7293f40b0cc9b4ba12e9c1abe47136a8d9d009cc2aceeb06ab67fd9
|
|
| MD5 |
39ae2c974b7033cd513754831bbbc283
|
|
| BLAKE2b-256 |
b0121970fc9e9c72e89d795714c1f138f638189cee8df790be240fe895d73924
|
File details
Details for the file get_lunchbox-1.1-py3-none-any.whl.
File metadata
- Download URL: get_lunchbox-1.1-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8d4bc8a85bbda14271ca9dffacd3a39042d1808ed37d10f63e8066ce3957c4
|
|
| MD5 |
b485bc6a60967dd66b159b431286c926
|
|
| BLAKE2b-256 |
687762389c3d14e91589ea61ce3a596b94175e78cd5dc91c9f3a9390281f0b54
|