afnio.tellurio.consent#

Functions

check_consent()

Check if the user has consented to share their API key with the Tellurio server.

Check if the user has consented to share their API key with the Tellurio server. This function checks the environment variable ALLOW_API_KEY_SHARING, the local configuration file, and prompts the user for consent if necessary.

Raises:
  • ValueError – If the environment variable is set to an invalid value.

  • RuntimeError – If consent is required but not given in a non-interactive environment.