-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose endpoint
argument in get_s3fs_session
top-level function
#602
Comments
yes, this is a good idea. In the same vein, I also find this method useful and think it would be good to expose directly: >>> earthaccess.__store__.auth.get_s3_credentials(endpoint='https://nisar.asf.earthdatacloud.nasa.gov/s3credentials')
{'accessKeyId': 'XXX',
'secretAccessKey': 'XXX',
'sessionToken': 'XXX',
'expiration': '2024-06-12 20:48:21+00:00'} and might be a nice addition to the TEA s3 credentials READMEs: https://nisar.asf.earthdatacloud.nasa.gov/s3credentialsREADME Notably, this does not work: >>> arthaccess.auth.Auth.get_s3_credentials(endpoint='nisar.asf.earthdatacloud.nasa.gov/s3credentials')
TypeError: Auth.get_s3_credentials() missing 1 required positional argument: 'self' even though I think it could be provided as just a function or provided as a static method. |
For anyone interested in working on this issue, there is currently an |
Yes, sorry if my original description was confusing. |
endpoint
argument in get_s3fs_session
top-level function
How's this read to y'all? |
Per #482, there is a desire to be able to directly invoke
get_s3fs_session
from the top ofearthaccess
, like so:Currently, it is possible to do the following, but accessing
__store__
is perhaps not desirable:The text was updated successfully, but these errors were encountered: