Skip to content

compile_proto.make_proto_files

Full path: schola.scripts.utils.compile_proto.make_proto_files

Run protoc for each .proto to emit Python and C++ stubs.

make_proto_files(protoc_path, proto_folder, python_folder, cpp_folder,
proto_files, add_type_stubs = False, cpp_output_options ='')

Parameters

  • protoc_path (str) - protoc executable.

  • proto_folder (str) - -I include root and location of .proto files.

  • python_folder (str) - —python_out (and optional —pyi_out) destination.

  • cpp_folder (str) - —cpp_out destination.

  • proto_files (list) - Proto basenames under proto_folder to compile.

  • add_type_stubs (bool) - If True, pass —pyi_out alongside —python_out.

  • cpp_output_options (str) - Options forwarded inside —cpp_out before the colon separator.