GitHub - cedadev/token_auth_headers: Utility package for generating token auth headers for CEDA data accesses

Skip to content

Navigation Menu

Sign in

Appearance settings

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()})