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_authissues a blocking HTTP POST againstSEPAL_HOSTwithLOCAL_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:
RuntimeError –
PYSEPAL_DEV_AUTHis not armed.ValueError – The developer credential environment variables are unset.
- Return type:
SepalHeaders