gentle.generators#

gentle.generators.python

Common data for Python generators.

Generic generator interface.

class gentle.generators.AbstractGenerator(srcdir: Path)#

Bases: ABC

Generic class for metadata generators.

classmethod get_generator_subclasses() list[Type[AbstractGenerator]]#

Get generators inheriting from this abstract class.

Returns:

subclasses

abstract update_metadata_xml(mxml: MetadataXML) None#

Update metadata object in place.

abstract property active: bool#

Whether generator works.

property slow: bool#

Whether generator takes long time to finish.