Goby3 3.6.1
2026.09.15
Loading...
Searching...
No Matches
goby::middleware::python Namespace Reference

Support for writing Goby applications in Python. More...

Namespaces

namespace  detail
 

Classes

class  Application
 Base class for the generated C++ glue class, forwarding the Goby virtual methods to Python. More...
 
class  ApplicationWrapper
 The class exposed to Python; user application classes subclass this. More...
 
class  ApplicationWrapperTrampoline
 Lets Python subclasses override the Goby virtual methods. More...
 

Functions

template<typename App >
void define_python_module (py::module_ &m, const std::string &app_name)
 Defines the contents of the generated extension module.
 

Detailed Description

Support for writing Goby applications in Python.

Python applications are written as a subclass of the application class exported by the generated extension module, mirroring how C++ applications subclass SingleThreadApplication. The generated module and its C++ glue code are produced from the same interface.yml file used by the Julia bindings (see goby/middleware/languages/julia/application.h).

Function Documentation

◆ define_python_module()

template<typename App >
void goby::middleware::python::define_python_module ( py::module_ &  m,
const std::string &  app_name 
)
inline

Defines the contents of the generated extension module.

Definition at line 513 of file application.h.