"To set up Photos API connection you need to create a new user.\nIf you have email confirmation enabled in your Photos API config - you need to use a real email that will get a confirmation code afterwards.",
flush=True,
)
username=input("Choose username for new Photos API user: ").strip()
email=input(f"Choose email for user '{username}': ").strip()
password=input(f"Choose password for user '{username}': ").strip()
"Alright. If you have email confirmation enabled - please confirm registration by using the link in your email. After that press Enter. Otherwise just press Enter."
)
exceptExceptionasexp:
print(f"Could not create a user due to {exp}",flush=True)
print_exc()
exit()
ifnotargs.create_album:
print("You're done!",flush=True)
exit()
returnNone
asyncdefcli_create_album()->None:
print(
"To use Photos API your user needs to have an album to store its data.\nThis wizard will help you to create a new album with its name and title.",
flush=True,
)
name=input("Choose a name for your album: ").strip()
title=input(f"Choose a title for album '{name}': ").strip()