include.encoded.import_hook module

class include.encoded.import_hook.EncodedModuleLoader(module_prefix)

Bases: include.base.import_hook.BaseIncludeLoader

Load python modules from their encoded content

This import hook allows storing and using module content as a compressed data blob.

load_module(name)

Load and return a module

Always returns the corresponding module. If the module is already loaded, the existing module is returned.

module2uri(module_name)

Convert an encoded module name to an unencoded source uri

uri2module(uri)

Convert an unencoded source uri to an encoded module name