xoa.meta.MetaVarSpecs.get_attrs

xoa.meta.MetaVarSpecs.get_attrs#

MetaVarSpecs.get_attrs(meta_name, select=None, exclude=None, errors='warn', loc=None, multi=False, standardize=True, **extra)#

Get the default attributes from meta specs

Parameters:
  • meta_name (str) – Valid generic Meta name

  • select (str, list) – Include only these attributes

  • exclude (str, list) – Exclude these attributes

  • multi (bool) – Get standard_name and long_name attribute as a list of possible values

  • errors ({'ignore', 'warn', 'raise'}) –

    In case of errors

    • 'ignore': silently ignore

    • 'warn': emit a warning

    • 'raise': raise an exception

  • extra (dict) – Extra params are included as extra attributes

Returns:

dict