python-dependency-injector/examples/miniapps/application-multiple-contai.../example/__main__.py

13 lines
283 B
Python

"""Main module."""
from .containers import Application
if __name__ == "__main__":
application = Application()
config = application.service.config()
config.build()
print(application.repository.site())
# Output: Adapter=[DB Path=[~/test]], queue=[Some storage]