from configspec import * from shepherd import PluginInterface interface = PluginInterface() confspec = ConfigSpecification() confspec.add_spec("spec1", StringSpec()) interface.register_confspec(confspec) def my_interface_function(): return 42 interface.register_function(my_interface_function)