Configuration

You can request configuration for your stage during the initialize phase. The APIs work similarly to their C++ equivalents: you request the configuration (by name, or for yourself), and you supply the type you wish to deserialize the configuration into.

A simple example:

from ark_python_test_messages import *

class MyStage(pypipeline.Stage):
    def __init__(self):
        pass

    def initialize(self, interface):
        self.stage_config = interface.get_stage_config(PythonTestConfig, "MyConfig")

Here, PythonTestConfig is an rbuf type in the ark_python_test_modules module, and the name of the configuration within the config package is “MyConfig”.