ConfigBase

class manim_eng._config.config.ConfigBase

Bases: object

Base class for manim-eng configuration classes.

as_dict() dict[str, Any]

Return this configuration as a dictionary.

Returns:

This configuration as a dictionary, with subconfigurations being added as subdictionaries.

Return type:

dict[str, Any]

load_from_dict(dictionary: dict[str, Any], table_prefix: str = '') Self

Load configuration in from a dict representation.

Parameters:
  • dictionary (dict[str, Any]) – The dict from which to load the values.

  • table_prefix (str) – The current TOML table the dictionary values are a representation of. Allows this method to produce error messages that reflect the structure of the TOML from which the dict was generated.

Notes

This method is written as a strict intermediary between the configuration TOML file and the configuration classes. As such, an input of an empty dictionary {} will do nothing, as it is the equivalent of reading in an empty configuration file. The same goes for empty dicts as values for tables: no change will be made to the table in this case.