Configurator.category

Configurator.category(cat, *, trimcat=True, context=False)[source]

Return a dictionary of settings beginning with the substring cat + '.'. Optionally limit the search to the context level.

Parameters
  • cat (str, optional) – The rc setting category.

  • trimcat (bool, default: True) – Whether to trim cat from the key names in the output dictionary.

  • context (bool, default: False) – If True, then settings not found in the context dictionaries are omitted from the output dictionary. See context.