Credentials#

easysnowdata.auth#

Credentials: one Provider per credentialed service, used uniformly.

import easysnowdata as esd
esd.auth.status()                     # table: provider, configured?, how, needed by
esd.auth.login()                      # interactive, only for what is missing
esd.auth.login("earthengine", project="my-gcp-project")

Loaders call auth.ensure(*product.requires) before any network request and wrap reads in auth.env(*product.requires). Missing credentials raise CredentialError (with .provider) before any data is requested.

CredentialError

Raised when a data provider's credentials are missing or rejected.

Detection

Result of a network-free credential check.

Provider

One credentialed service.

get

Return the provider called name ("earthdata", "earthengine", …).

detect

Network-free credential check for one provider.

status

Return a table of providers: configured?, how, needed by which products.

login

Interactively set up credentials.

ensure

Initialise the named providers once; raise CredentialError if any is missing.

env

Enter the named providers' read environments (GDAL options, headers…).

reset

Forget every provider's cached initialisation.

summary_line

The one-line credential summary shown on import (network-free).