Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_lunchbox-1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for get_lunchbox-1.1.tar.gz
Algorithm Hash digest
SHA256 824db67bf7293f40b0cc9b4ba12e9c1abe47136a8d9d009cc2aceeb06ab67fd9
MD5 39ae2c974b7033cd513754831bbbc283
BLAKE2b-256 b0121970fc9e9c72e89d795714c1f138f638189cee8df790be240fe895d73924

See more details on using hashes here.

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

Hashes for get_lunchbox-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8d4bc8a85bbda14271ca9dffacd3a39042d1808ed37d10f63e8066ce3957c4
MD5 b485bc6a60967dd66b159b431286c926
BLAKE2b-256 687762389c3d14e91589ea61ce3a596b94175e78cd5dc91c9f3a9390281f0b54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page