Skip to content

Commit

Permalink
Add a deprecatoi warning in Auth()
Browse files Browse the repository at this point in the history
  • Loading branch information
rle-earthdaily committed Jul 4, 2024
1 parent cbdd6ac commit 5d519f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions earthdaily/earthdatastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ def __init__(self, config: str | dict = None, presign_urls=True):
>>> print(len(items))
132
"""
if not isinstance(config, dict):
warnings.warn(
"Using directly the Auth class to load credentials is deprecated. "
"Please use earthdaily.EarthDataStore() instead",
FutureWarning
)

self._client = None
self.__auth_config = config
self.__presign_urls = presign_urls
Expand Down

0 comments on commit 5d519f2

Please sign in to comment.