datazen.commands package#

Submodules#

datazen.commands.compile module#

datazen - A command implementation for compiling configuration data and

variables into a single, monolithic output.

datazen.commands.compile.cmd_compile(config_dirs: ~typing.List[str], schema_dirs: ~typing.List[str], variable_dirs: ~typing.List[str], output_file_path: str, logger: ~logging.Logger = <Logger datazen.commands.compile (WARNING)>) bool[source]#

Load configuration data by resolving variables and validating provided schemas. Write the result to the specified output file, inferring the type by the file extension.

datazen.commands.render module#

datazen - A command implementation for rendering configuration data (that has

optionally been resolved from variables) based on provided and discovered templates.

datazen.commands.render.cmd_render(template_dirs: ~typing.List[str], template_name: str, config_data_path: str, output_file_path: str, logger: ~logging.Logger = <Logger datazen.commands.render (WARNING)>) bool[source]#

Render the desired template from loaded configuration data.

datazen.commands.render.str_render(template: ~jinja2.environment.Template, config_data_path: str, logger: ~logging.Logger = <Logger datazen.commands.render (WARNING)>, **kwargs) str[source]#

Load configuration data and render a jinja2 template with it.

Module contents#