You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When generating a stac item in my current project, instead of creating a SAS token and appending it to a URL, I would like to pass an Auth header to read_text() which would eventually get passed down to urllib.request. Maybe something like this already exists and I'm missing it.
The current code looks like this:
if fgdc_metadata_href is not None:
fgdc_metadata_text = read_text(
fgdc_metadata_href, fgdc_url_func)
fgdc = parse_fgdc_metadata(fgdc_metadata_text)
else:
fgdc = {}
Describe the solution you'd like
Maybe something like this where you pass in the headers
if fgdc_metadata_href is not None:
fgdc_metadata_text = read_text(
fgdc_metadata_href, headers)
fgdc = parse_fgdc_metadata(fgdc_metadata_text)
else:
fgdc = {}
Describe alternatives you've considered
I've downloaded the metadata file locally and added the absolute path to read_text but it has perf issues and also would like to have a URL in the stac item.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When generating a stac item in my current project, instead of creating a SAS token and appending it to a URL, I would like to pass an Auth header to
read_text()
which would eventually get passed down to urllib.request. Maybe something like this already exists and I'm missing it.The current code looks like this:
Describe the solution you'd like
Maybe something like this where you pass in the headers
Describe alternatives you've considered
I've downloaded the metadata file locally and added the absolute path to read_text but it has perf issues and also would like to have a URL in the stac item.
The text was updated successfully, but these errors were encountered: