id_translation.Translator.from_config#

classmethod Translator.from_config(path, extra_fetchers=())[source]#

Create a Translator from TOML inputs.

See Configuration for help.

Parameters:
  • path – Path to the main TOML configuration file.

  • extra_fetchers – Paths to fetching configuration TOML files. If multiple fetchers are defined, they are ranked by input order. If a fetcher defined in the main configuration, it will be prioritized (rank=0).

Returns:

A new Translator instance with a config_metadata attribute.