earthdaily package
Subpackages
Module contents
- earthdaily.EarthDataStore(json_path: Path | None = None, toml_path: Path | None = None, profile: str | None = None, presign_urls: bool = True, request_payer: bool = False) Auth [source]
Open earth data store connection to allow for datacube requests. Try to read Earth Data Store credentials from multiple sources, in the following order:
from input credentials stored in a given JSON file
from input credentials stored in a given TOML file
from environement variables
from the $HOME/.earthdaily/credentials TOML file and a given profile
from the $HOME/.earthdaily/credentials TOML file and the “default” profile
- Parameters:
path (Path, optional) – The path to the TOML file containing the Earth Data Store credentials. Uses “$HOME/.earthdaily/credentials” by default.
profile (profile, optional) – Name of the profile to use in the TOML file. Uses “default” by default.
- Returns:
A
earthdatastore.Auth
instance- Return type:
Auth