palgen.loaders.builtin
#
Module Contents#
- class palgen.loaders.builtin.Builtin#
palgen.loaders.builtin.Builtin palgen.loaders.builtin.Builtin palgen.loaders.builtin.Builtin palgen.loaders.builtin.Builtin palgen.loaders.loader.Loader palgen.loaders.loader.Loader palgen.loaders.loader.Loader palgen.loaders.builtin.Builtin->palgen.loaders.loader.Loader - __slots__ = ()#
- ingest(sources)#
Searches the given sources for ingestable extensions and loads them.
- Parameters:
sources (
Iterable[Path | str]
) – An iterable of paths to input files or strings- Yields:
tuple[str, Type[Extension]]
– name and class of all discovered palgen extensions- Return type:
Iterable[palgen.loaders.loader.ExtensionInfo]
- load(source)#
Attempt loading palgen extensions from the given path or string.
- Parameters:
source (
Path | str
) – Source to load from- Yields:
tuple[str, Type[Extension]]
– name and class of all discovered palgen extensions- Return type:
Iterable[palgen.loaders.loader.ExtensionInfo]