noc.core.importer

Module Contents

class noc.core.importer.ImportRouter(mappings)

Bases: object

Module importer that maps module prefixes to loader classes

find_module(self, fullname, path=None)
class noc.core.importer.NOCLoader(path_entry)

Bases: object

Abstract class for prefixed loader

PREFIX
INIT_SOURCE =
packages
get_source(self, fullname)
get_code(self, fullname)
get_data(self, path)
_get_filename(self, fullname)
is_package(self, fullname)
load_module(self, fullname)
class noc.core.importer.NOCPyruleLoader

Bases: noc.core.importer.NOCLoader

PREFIX = noc.pyrules
COLLECTION_NAME = pyrules
collection
_get_collection(self)
get_source(self, fullname)
class noc.core.importer.NOCCustomLoader

Bases: noc.core.importer.NOCLoader

PREFIX = noc.custom
get_source(self, fullname)
noc.core.importer._get_loader()