improver.utilities.cli_utilities module

Provides support utilities for cli scripts.

improver.utilities.cli_utilities.load_json_or_none(file_path)[source]

If there is a path, runs json.load and returns it. Else returns None.

Parameters

file_path (str or None) – File path to the json file to load.

Returns

A dictionary loaded from a json file. or None

Return type

dict or None