python-dependency-injector/examples/miniapps/application-multiple-containers-runtime-overriding/example/services.py

10 lines
197 B
Python
Raw Normal View History

2021-02-19 01:49:39 +03:00
"""Services module."""
class ConfigService:
def __init__(self, config):
self._config = config
def build(self):
self._config.from_dict({"default": {"db_path": "~/test"}})