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: object

Accessors for available report plugins.

Methods Summary

description

Return the report description.

list

Return a list of reports.

name

Return the report name.

options

Return options available for this report and target.

tags

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:
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:

understand.Options

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