Renamed the notion of handler classes to plugin classes in the Studio Python API

This change refactors the Python API to use the term "plugins" instead of "handlers" for classes containing decorated handler methods. The term handler is still used for an annotated method of a plugin class that handles a specific message type. Also improved some documentation.

PiperOrigin-RevId: 962150099
Change-Id: I34a8cc410cd784b088605490cfa3baccea5c9e71
This commit is contained in:
Matija Kecman
2026-08-10 07:49:47 -07:00
committed by Copybara-Service
parent ab1af24911
commit f1c8d3a58f
10 changed files with 84 additions and 68 deletions
@@ -238,7 +238,7 @@ def main(argv: list[str]) -> None:
with launch_passive.launch_passive(
config,
viewer_handlers=[viewer_app.ViewerApp(), BodyInspector()],
viewer_plugins=[viewer_app.ViewerApp(), BodyInspector()],
) as handle:
handle.send_to_viewer(messages.ModelEvent(model=model))