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.

AutomaticArch#

class understand.AutomaticArch#

Bases: object

Accessors for available automatic architecture generators.

Methods Summary

description

Return the automatic architecture description.

list

Return automatic architecture generators.

name

Return the name of this automatic architecture.

options

Return the options available for the automatic architecture.

tags

Return automatic architecture tags.

Methods Documentation

description() → str#

Return the automatic architecture description.

Return type:

str

Returns:

the description, which may be an empty string

classmethod list(target=None, enabled_only=True) → list[understand.AutomaticArch]#

Return automatic architecture generators.

Parameters:
  • target (understand.Db or None) – optional, list only architectures for the database

  • enabled_only (bool) – optional, defaults to True. When True, return only enabled automatic architecture plugins.

Return type:

list[understand.AutomaticArch]

Returns:

the list of automatic architectures

name() → str#

Return the name of this automatic architecture.

Return type:

str

Returns:

the automatic architecture name

options() → understand.Options#

Return the options available for the automatic architecture.

Return type:

understand.Options

Returns:

the automatic architecture options

tags() → list[str]#

Return automatic architecture tags.

Tags are optional and may be empty.

Return type:

list[str]

Returns:

the list of tags