The Understand Python API gives scripts access to everything Understand knows about your code — entities, references, metrics, and dependencies — and powers custom checks, graphs, and reports.
Report#
- class understand.Report#
Bases:
objectAccessors for available report plugins.
Methods Summary
Return the report description.
Return a list of reports.
Return the report name.
Return options available for this report and target.
Return report tags.
Methods Documentation
- description() str#
Return the report description.
- Return type:
str
- Returns:
the description, which may be an empty string
- classmethod list(target=None, enabled_only=True) list[understand.Report]#
Return a list of reports.
- Parameters:
target (understand.Ent or understand.Arch or understand.Db or understand.Inspection or None) – optional, list only reports valid for this target
enabled_only (bool) – optional, defaults to True. When True, return only enabled report plugins.
- Return type:
list[understand.Report]
- Returns:
the list of reports
- name() str#
Return the report name.
- Return type:
str
- Returns:
the report name
- options(target) understand.Options#
Return options available for this report and target.
- Parameters:
target (understand.Db, understand.Ent, understand.Arch, or understand.Inspection) – database, entity, architecture, or inspection the report applies to
- Return type:
- Returns:
the report options
- tags() list[str]#
Return report tags.
Tags are optional and may be empty.
- Return type:
list[str]
- Returns:
the list of tags