Skip to main content

earthaccess-auth

Tests Documentation PyPI OpenSSF Scorecard

A minimal-dependency distribution containing only the NASA Earthdata Login (EDL) authentication core of earthaccess: login strategies, token lifecycle, per-DAAC S3 credential exchange, and the redirect-safe requests session. Integrations with fsspec and obstore are optional extras, so auth-only consumers install none of the search/download stack.

Motivation

Downstream services and libraries commonly need EDL auth and nothing else from earthaccess. One concrete example from the titiler ecosystem is titiler-multidim, which needs a bearer token string to inject into icechunk virtual chunk container headers. It deploys as an AWS Lambda zip, where earthaccess's transitive dependencies (s3fs, fsspec, python-cmr, pqdm, tenacity, ...) count against the 250 MB unpacked limit for the sake of ~500 lines of auth logic.

Install matrix

pip install earthaccess-auth            # requests + tinynetrc + typing_extensions only
pip install earthaccess-auth[fsspec]    # + fsspec/aiohttp HTTPS session
pip install earthaccess-auth[obstore]   # + obstore credential provider bridge
pip install earthaccess                 # full stack (does not yet depend on this package)

Example: the titiler-multidim case

import earthaccess_auth

auth = earthaccess_auth.login(strategy="environment")
token = auth.token["access_token"]  # inject into icechunk http_store headers

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earthaccess_auth-0.1.0.tar.gz (144.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

earthaccess_auth-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file earthaccess_auth-0.1.0.tar.gz.

File metadata

  • Download URL: earthaccess_auth-0.1.0.tar.gz
  • Upload date:
  • Size: 144.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for earthaccess_auth-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c11d4f89ee9c5e1ccc8207229c62724a4cfbc12a4fb8f243fada02af03014b99
MD5 3239839d1c9253fa355ee425a03328b0
BLAKE2b-256 a483c6736a8a88f1b90a9b44dd67cc95ddac23645b2787a8ab3f861570c4985a

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthaccess_auth-0.1.0.tar.gz:

Publisher: publish.yml on earthaccess-dev/earthaccess-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file earthaccess_auth-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for earthaccess_auth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9989f1dd26288d5324b00487de2a42be9f863a098e6e85f82d4ab24d65b253d8
MD5 1a94766a12b66b16dbabdb7ad450a17f
BLAKE2b-256 1cc0143b515fff8c8e2d080e42ad1abc0f0190bc423f49c9b788a837e30068b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthaccess_auth-0.1.0-py3-none-any.whl:

Publisher: publish.yml on earthaccess-dev/earthaccess-auth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page