utils – Utilities for Core Functions

utils.py is a module that provide a number of basic functions for core dtf operations and functions.

utils.expand_tree(path, input_extension='yaml')
  • path (string) – A starting path to begin searching for files.
  • input_extension (string) – Optional. A filter.

A list of paths starting recursively from the path and only including those objects that end with the input_extensions.

expand_tree() returns a list of paths, filtered to

Parameters:path (string) – The location within the current directory of a Python module.
Returns:The full absolute path of the module.

In addition to rendering an absolute path, get_module_path() also appends this path to sys.path.


Returns the base name of a file without the file extension.