gravelamps.core.graveparser.interactions

Handles interactions between parsers and gravelamps configuration files.

gravelamps.core.graveparser.interactions.get_logging_level(config: ConfigParser, args: Namespace) str

Retrieve logging level from the configuration, overwriting with the arguments.

Parameters:
config: ConfigParser

INI Configuration values.

args: Namespace

Program commmandline arguments.

Returns:
str

Logging level string

gravelamps.core.graveparser.interactions.is_local(config: ConfigParser, args: Namespace) bool

Get the local setting from the configuration, overwriting with the arguments if necessary. Default is to assume non-local.

Parameters:
config: ConfigParser

INI configuration values.

args: Namespace

Program commmandline arguments.

gravelamps.core.graveparser.interactions.make_injection_args(args: Namespace, fp: Path) Namespace

Generate the injection arguments from input arguments and the filepath of the generated injection configuration file.

Parameters:
args: Namespace

Program commandline arguments.

fp: pathlib.Path

Path to injection INI file.

Returns:
injection_args: Namespace

Adjusted commandline arguments for INI file.