mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-12-02 14:34:02 +03:00
9 lines
282 B
Python
9 lines
282 B
Python
"""Example main module."""
|
|
|
|
|
|
def main(uid, password, photo, users_service, auth_service, photos_service):
|
|
"""Example main function."""
|
|
user = users_service.get_user_by_id(uid)
|
|
auth_service.authenticate(user, password)
|
|
photos_service.upload_photo(user['uid'], photo)
|