Regardless of how the script will be used later (Bare Python Script or Docker), an API Key is required for each user the script should be used for. Since Immich Server v1.135.x, creating API keys ...
The @a_sync('async') decorator can be used to define an asynchronous function that can also be executed synchronously.