ngcloud.pipe module

ngcloud.pipe._get_builtin_template_root()[source]
ngcloud.pipe.get_shared_static_root()[source]

Return path to shared static files of builtin NGCloud report.

ngcloud.pipe.get_shared_template_root()[source]

Return path to shared template root of builtin NGCloud report.

The functions help one to extend current pipeline externally. The path returned depends on your installation path, but usually is ngcloud_package/pipe/report/templates/shared

When extending stage of a pipeline, one can faciliate shared templates by supplying this path to template_find_paths

class MyStage(Stage):
    template_find_paths = [
        get_shared_template_root(),
        Path('path' / 'to' / 'custom' / templates')
    ]
Returns:Path object