feat: added service config helper
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .service_config import load_service_config
|
||||
@@ -0,0 +1,13 @@
|
||||
import yaml
|
||||
|
||||
CONFIG_PATH = ""
|
||||
|
||||
|
||||
def load_service_config() -> dict:
|
||||
"""Load the service configuration from the YAML file."""
|
||||
with open(CONFIG_PATH, "r", encoding="utf-8") as stream:
|
||||
try:
|
||||
config = yaml.safe_load(stream)
|
||||
except yaml.YAMLError as exc:
|
||||
print(exc)
|
||||
return config
|
||||
Reference in New Issue
Block a user