ds_fetch_py_sdk.env =================== .. py:module:: ds_fetch_py_sdk.env .. autoapi-nested-parse:: Deployment environments. Module Contents --------------- .. py:function:: require_secure(url: str, what: str) -> str `url` if it is HTTPS, or HTTP on this machine; tokens and passwords never travel in clear text. .. py:class:: Environment Where the APIs and the identity server live. `resource` is the RFC 8707 resource id tokens are minted for. Local uses dev's identity server and resource, so a dev sign-in works against a locally running service. .. py:function:: resolve(env: str | Environment | None = None) -> Environment Resolve an environment by name, defaulting to `$AIC_ENV` or `prod`. `$AIC_FETCH_URL`, `$AIC_TOOLS_URL` and `$AIC_ISSUER` override the named environment's URLs.