Previous topic

ninjecto.core

Next topic

ninjecto.local

This Page

ninjecto.inputs

Supported input formats module.

Functions

  • load_file(): Load any supported file format.
  • load_files(): Recursively load a list of paths and merge their content left to right.
ninjecto.inputs.load_file(path)

Load any supported file format.

Parameters
path (Path) – File to load.
Returns
A dictionary with the parsed content.
Return type
dict
ninjecto.inputs.load_files(paths)

Recursively load a list of paths and merge their content left to right.

That is, last to load will override last.

Parameters
paths (list) – List of Path objects pointing to files to load.
Returns
Merged content of all files.
Return type
dict