landstac.types

Shared types and aliases for landstac.

This module centralizes light-weight typing helpers to keep function signatures readable throughout the codebase.

Classes

Credentials

Container for ERS credentials loaded from a local file or environment.

class landstac.types.Credentials[source]

Bases: TypedDict

Container for ERS credentials loaded from a local file or environment.

Fields

usernamestr

ERS account username.

passwordstr

ERS account password.

tokenOptional[str]

Optional bearer token if the host accepts Authorization headers. LandsatLook commonly relies on ERS cookies, so this can be null.

password: str
token: str | None
username: str