xarray_eop.credentials.get_credentials_from_env#
- xarray_eop.credentials.get_credentials_from_env(url: EOPath) dict[str, Any]#
Get credentials from environment variable For S3 protocol, it looks for the AWS-like (
AWS_ACCESS_KEY_ID,``AWS_SECRET_ACCESS_KEY``,``AWS_ENDPOINT_URL``) or S3-like (S3_KEY,``S3_SECRET``,``S3_URL``) environment variables.- Parameters:
url (EOPath) – object-storage path
- Return type:
dictionary of secrets parameter to be used in storage_options parameters for xarray/datatree functions
- Raises:
NotImplementedError – Currently, only S3 protocol is handled