symforce.codegen.backends.python.generate_module_init module

generate_module_init(codegen_objects, generated_paths, template_config=RenderTemplateConfig(autoformat=True, custom_preamble=''))[source]

Generate an __init__.py for a directory of generated functions that imports all the functions for convenience

Parameters:
  • specs – The Codegen objects for the generated functions

  • generated_pathses – The generated paths for the functions, returned by Codegen.generate_function

  • template_config (RenderTemplateConfig) – The configuration for rendering the template

  • codegen_objects (Iterable[Codegen]) –

  • generated_paths (Iterable[GeneratedPaths]) –

Return type:

None