mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 02:24:02 +03:00
9 lines
262 B
Python
9 lines
262 B
Python
|
"""Example main module."""
|
||
|
|
||
|
|
||
|
def main(users_service, auth_service, photos_service):
|
||
|
"""Example main function."""
|
||
|
user = users_service.get_user('user')
|
||
|
auth_service.authenticate(user, 'secret')
|
||
|
photos_service.upload_photo(user['id'], 'photo.jpg')
|