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

13 lines
283 B
Python
Raw Normal View History

2021-02-19 01:49:39 +03:00
"""Main module."""
from .containers import Application
if __name__ == "__main__":
2021-02-19 01:49:39 +03:00
application = Application()
config = application.service.config()
config.build()
print(application.repository.site())
# Output: Adapter=[DB Path=[~/test]], queue=[Some storage]