pysepal.solara.dev_auth.prime_dev_auth#

pysepal.solara.dev_auth.prime_dev_auth()[source]#

Log in once for the whole process with the developer credentials.

get_sepal_headers_from_auth issues a blocking HTTP POST against SEPAL_HOST with LOCAL_SEPAL_USER / LOCAL_SEPAL_PASSWORD. Call this from application startup to keep that POST off the render path; the session layer otherwise calls it lazily on the first render.

Returns:

The developer’s SEPAL headers, cached for the process.

Raises:
  • RuntimeErrorPYSEPAL_DEV_AUTH is not armed.

  • ValueError – The developer credential environment variables are unset.

Return type:

SepalHeaders