qgis_deployment_toolbelt.scenarios.scenario_reader module¶
Read and validate scenario files.
Author: Julien Moura (https://github.com/guts, Oslandia)
- class qgis_deployment_toolbelt.scenarios.scenario_reader.ScenarioReader(in_yaml: str | Path | BufferedIOBase)¶
Bases:
object
Read and validate scenario files.
- __init__(in_yaml: str | Path | BufferedIOBase)¶
Instanciating YAML scenario reader.
- check_yaml_buffer(yaml_buffer: BufferedIOBase) BufferedIOBase ¶
Perform some checks on passed yaml file.
- Parameters:
yaml_buffer – bytes reader of the yaml file to check
- Returns:
checked bytes object
- Return type:
BufferedIOBase