pyre.config.native.Importer

Module Contents

class pyre.config.native.Importer.Importer

Bases: pyre.config.Loader.Loader

This component codec recognizes uris of the form

import:package.subpackage.factory#name

The uri is interpreted as if

from package.subpackage import factory factory(name=name)

had been issued to the interpreter. {factory} is expected to be either a component class or a function that returns a component class. This class is then instantiated using {name} as the sole argument to the constructor. If {name} is not present, the component class is returned.

schemes = ['import']