mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
13 lines
279 B
Python
13 lines
279 B
Python
"""Main module."""
|
|
|
|
from .containers import Container
|
|
from .commands import SaveRating, DoSomethingElse
|
|
|
|
|
|
if __name__ == "__main__":
|
|
container = Container()
|
|
message_bus = container.message_bus()
|
|
|
|
message_bus.handle(SaveRating)
|
|
message_bus.handle(DoSomethingElse)
|