afnio.tellurio.consent#
Functions
Check if the user has consented to share their API key with the Tellurio server. |
- afnio.tellurio.consent.check_consent()[source]#
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.