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:
objectAccessors for available automatic architecture generators.
Methods Summary
Return the automatic architecture description.
Return automatic architecture generators.
Return the name of this automatic architecture.
Return the options available for the automatic architecture.
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:
- 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