Commit 8e8ad663 authored by Bronger, Torsten's avatar Bronger, Torsten
Browse files

Add rudimentary utils.py

So far, it exhibits a MongoDB client handle and the global settings.
parent 9e5080da
from pathlib import Path
from pymongo import MongoClient
from ruamel.yaml import YAML
yaml = YAML()
configuration = yaml.load(Path("/etc/findrd/findrd.yaml"))
mongodb_client = MongoClient(configuration["mongodb_url"])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment