Authentication
Obtain API-Key
An API key is required to use the DAHITI API. This can be obtained free of charge after registering on the DAHITI website (https://dahiti.dgfi.tum.de/register/). After registration, the API key can be created and downloaded in the user profile (https://dahiti.dgfi.tum.de/en/profile/).
Apply API-Key
There are two ways to use the API key when using the API:
Adding API key to ~/.netrc (recommended)
machine dahiti.dgfi.tum.de login username password 1F2E692BF71769F7C510B8CDB56CF576E077724021C1CC082D04B76FD31324DA
from dahitiapi.DAHITI import DAHITI
# Initialize Class
dahiti = DAHITI()
Adding API key directly in script
from dahitiapi.DAHITI import DAHITI
# Initialize Class
dahiti = DAHITI(api_key="1F2E692BF71769F7C510B8CDB56CF576E077724021C1CC082D04B76FD31324DA")