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.
Description is optional and 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 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]
- name() str#
Return the report name.
- options(target) understand.Options#
Return options available for this report and target.
- Parameters:
target (understand.Db, understand.Ent, or understand.Arch) – database, entity, or architecture the report applies to
- Return type:
- tags() list[str]#
Return report tags.
Tags are optional and may be empty.