bec_lib.file_utils.ServiceConfigParser#

class ServiceConfigParser(service_config: dict | None = None)[source]#

Bases: object

Service Config Parser

Initialize the service config parser.

Parameters:

service_config (dict) – Service config from BEC startup.

Methods

create_directory

Create a directory if it does not exist.

get_base_path

Get the base path from the config.

Attributes

service_config

Get the service config.

create_directory(directory: str) None[source]#

Create a directory if it does not exist.

get_base_path() str[source]#

Get the base path from the config.

property service_config: dict#

Get the service config.