tecton.set_credentials
tecton.set_credentials(...)
Summary​
Explicitly override tecton credentials settings.
Typically, Tecton credentials are set in environment variables, but you can use this function to set the Tecton API Key and URL during an interactive Python session.
Parameters​
-
tecton_api_key
(Optional
[str
]) – Tecton API Key. (Default:None
) -
tecton_url
(Optional
[str
]) – Tecton API URL. (Default:None
)
Example​
tecton.set_credentials(tecton_api_key="<YOUR_API_KEY>", tecton_url="https://<DEPLOYMENT>.tecton.ai/api")
To change only the API key:
tecton.set_credentials(tecton_api_key="<YOUR_API_KEY>")