Skip to main content

Dynamic module loader

Project description

modlib - For collecting modules the wrong way with less badness
=====

Overview
-----

This module simplifies importing dynamic modules. It exposes the Modstack class, which collects modules as you import them. If you need the same module again, it will return the existing module from the stack rather than reimporting it. It also supports getting a specific item from the modules rather than the full module

How to use
-----

import modlib

Stack = modlib.Modstack
Names = ['foo.bar', 'alpha', 'hello.world']
Modules = { x: Stack.get(x) for x in Names }

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

modlib-0.1.0.tar.gz (1.5 kB view hashes)

Uploaded Source

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