pycmor.dev package

pycmor.dev package#

Submodules#

pycmor.dev.utils module#

Utilities that can help with testing

pycmor.dev.utils.ls_to_yaml(directory: str, output=None) str[source]#

List the contents of a directory and write it to a yaml file

Parameters:
  • directory (str or pathlib.Path) – The directory to list

  • output (str or file-like object) – The file to write the yaml to, defaults to sys.stdout

Returns:

The yaml string

Return type:

str