Email and password authentication

Use the email and password you used to create an account on Terrene, to create a credentials object that can be used to authenticate your requests to the API.

from terrene.auth import EmailPasswordCredentials

credentials = EmailPasswordCredentials(
    email="<email address>", password="<password>")

Token authentication

from terrene.auth import TokenCredential

credentials = TokenCredential(token="<token>")