Skip to content

cedadev/token_auth_headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

token_auth_headers

Utility package for generating token auth headers for CEDA data accesses

1. Install Package

pip install token_auth_headers

2. Set Environment Variables

Set CEDA_USERNAME and CEDA_PASSWORD environment variables.

3. Use token auth headers in your access method

from token_auth_headers import remote_options
import xarray as xr
ds = xr.open_dataset(file, engine='kerchunk',storage_options={'remote_options':remote_options()})

About

Utility package for generating token auth headers for CEDA data accesses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages