partis.schema.module module#

class SchemaLoader(schema_module)[source]#

Bases: Loader

Loader for a schema module

create_module(spec)[source]#

Return a module to initialize and into which to load.

This method should raise ImportError if anything prevents it from creating a new module. It may return None to indicate that the spec should create the new module.

class SchemaFinder[source]#

Bases: MetaPathFinder

Finder for schema modules

register(schema_module, origin=None)[source]#

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.

class SchemaModule(fullname=None, doc=None, origin=None)[source]#

Bases: module

Base class for schema modules