Skip to content

__main__

main() #

Example calling a C++ function that emits logs to a Python logger.

During installation of cogip-tools, a script called cogip-cpp-logger-example will be created using this function as entrypoint.

Source code in cogip/tools/cpp_logger_example/__main__.py
31
32
33
34
35
36
37
38
def main():
    """
    Example calling a C++ function that emits logs to a Python logger.

    During installation of cogip-tools, a script called `cogip-cpp-logger-example`
    will be created using this function as entrypoint.
    """
    typer.run(main_opt)