ApiEntry#

class ansys.aedt.mcp.api_search.ApiEntry#

One searchable PyAEDT API object.

Overview#

native_match_strength

Return how many sources (docstring references, body calls) use method.

is_indirect

True when the native call comes from a helper, not from the method itself.

native_methods

Lowercase native method names (without receiver) used by this entry.

native_api

All native AEDT calls for this method, from the method itself and from helpers.

Import detail#

from ansys.aedt.mcp.api_search import ApiEntry

Property detail#

property ApiEntry.is_indirect: bool#

True when the native call comes from a helper, not from the method itself.

property ApiEntry.native_methods: set[str]#

Lowercase native method names (without receiver) used by this entry.

property ApiEntry.native_api: list[str]#

All native AEDT calls for this method, from the method itself and from helpers.

Calls from the method itself (docstring and own code) come first, so if the same call also comes from a helper, the method’s own spelling is the one kept after duplicates are removed.

Attribute detail#

ApiEntry.name: str#
ApiEntry.qualname: str#
ApiEntry.kind: EntryKind#
ApiEntry.module: str#
ApiEntry.class_name: str | None#
ApiEntry.signature: str#
ApiEntry.summary: str#
ApiEntry.doc: str#
ApiEntry.file: str#
ApiEntry.line: int#
ApiEntry.native_references: list[str] = []#
ApiEntry.native_calls: list[str] = []#
ApiEntry.native_indirect: list[str] = []#
ApiEntry.native_dispatch: list[str] = []#
ApiEntry.tokens: collections.Counter#
ApiEntry.length: int = 0#

Method detail#

ApiEntry.native_match_strength(method: str) → int#

Return how many sources (docstring references, body calls) use method.

Calls found only through a helper count 0, so direct matches rank above them.