Factory functions for translation classes.
Module Attributes
A callable which creates new |
|
A callable which creates new |
Functions
|
Create an |
|
Create a |
Classes
|
Create a |
A callable which creates new AbstractFetcher instances from a dict config.
Config format is described in Section: Fetching.
clazz – Type of AbstractFetcher to create.
config – Keyword arguments for the fetcher class.
A Fetcher instance.
exceptions.ConfigurationError – If config is invalid.
TypeError – If clazz is not an AbstractFetcher subtype.
alias of Callable[[str, Dict[str, Any]], AbstractFetcher]
A callable which creates new Mapper instances from a dict config.
Config format is described in Subsection: Mapping.
If None is returned, a suitable default is used instead.
config – Keyword arguments for the Mapper.
for_fetcher – Flag indicating that the Mapper returned will be used by an AbstractFetcher instance.
A Mapper instance or None.
ConfigurationError – If config is invalid.
Create an AbstractFetcher from config.
Create a Mapper from config.
Bases: Generic[NameType, SourceType, IdType]
Create a Translator from TOML inputs.
A callable taking (name, kwargs) which returns an AbstractFetcher.
A callable taking (kwargs) which returns a Mapper.
Create a Translator from a TOML file.