easysnowdata.auth.Provider#
- class easysnowdata.auth.Provider[source]#
Bases:
objectOne credentialed service. Subclasses implement the four verbs.
detect()— environment variables and file existence only; no network, no heavy imports (it runs atimport easysnowdata).login()— interactive setup that persists per the service’s own convention (never a config file of our own).ensure()— initialise once, idempotently; raiseCredentialErrorwith the setup text before any data request.env()— context manager yielding the GDAL / HTTP configuration that reads from this service need.
- error(message: str | None = None, *, alternatives: tuple[str, ...] = (), cause: str | None = None) CredentialError[source]#
Build the standard
CredentialErrorfor this provider.