The ``interface.py`` module
===========================
.. py:module:: ansys.tools.common.launcher.interface
Summary
-------
.. py:currentmodule:: interface
.. tab-set::
.. tab-item:: Classes
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~ansys.tools.common.launcher.interface.DataclassProtocol`
- Protocol for objects generated with :func:`dataclasses.dataclass`.
* - :py:obj:`~ansys.tools.common.launcher.interface.LauncherProtocol`
- Provides the interface for managing a local product instance.
.. tab-item:: Enums
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~ansys.tools.common.launcher.interface.ServerType`
- Defines which protocols the server supports.
.. tab-item:: Constants
.. list-table::
:header-rows: 0
:widths: auto
* - :py:obj:`~METADATA_KEY_DOC`
- Key used in the :py:class:`dataclasses.Field` ``metadata`` for the option description.
* - :py:obj:`~METADATA_KEY_NOPROMPT`
- Key used in the :py:class:`dataclasses.Field` ``metadata`` to skip prompting for
* - :py:obj:`~FALLBACK_LAUNCH_MODE_NAME`
-
* - :py:obj:`~LAUNCHER_CONFIG_T`
-
.. toctree::
:titlesonly:
:maxdepth: 1
:hidden:
DataclassProtocol
LauncherProtocol
.. toctree::
:titlesonly:
:maxdepth: 1
:hidden:
ServerType
Description
-----------
Interface definitions for implementing a local product launcher.
A plugin for the local product launcher must implement the :class:`LauncherProtocol`
class and register it.
Module detail
-------------
.. py:data:: METADATA_KEY_DOC
:value: 'launcher_doc'
Key used in the :py:class:`dataclasses.Field` ``metadata`` for the option description.
.. py:data:: METADATA_KEY_NOPROMPT
:value: 'launcher_noprompt'
Key used in the :py:class:`dataclasses.Field` ``metadata`` to skip prompting for
the option by default.
.. py:data:: FALLBACK_LAUNCH_MODE_NAME
:value: '__fallback__'
.. py:data:: LAUNCHER_CONFIG_T