Skip to content

SDK

mostlyrightmd is a local-first SDK for working with authoritative weather and climate observations — daily and hourly temperature, dewpoint, wind, precipitation, and more. It calls public APIs (AWC, IEM, GHCNh, NWS CLI) directly and writes a parquet cache to ~/.mostlyright/cache/. The SDK is currently in private beta.

The Python and TypeScript SDKs share the same surface: dataset(station, from_date, to_date) returns one row per local-standard-time day in the requested window, joining observations with the climate normal for that station and date. (research() is a fully working alias of dataset().)

Access

The SDK is in private beta. Request early access and we’ll send an invite with install instructions for Python and TypeScript.

  • Temporal safetyKnowledgeView and LeakageDetector. Train-time data is filtered to what was knowable at the as-of cutoff, and a separate audit path raises on leakage.
  • Source identity — the fused (source-blind) default vs a single-source source= pin, plus SourceMismatchError for the case where training data and inference data come from different feeds.
  • → v1.13dataset() as the primary composer, obs() per-report grain, standalone climate(), covariate columns, and the numbered-mode deprecation train.
  • Cache directory~/.tradewinds/ to ~/.mostlyright/ and the TRADEWINDS_CACHE_DIR to MOSTLYRIGHT_CACHE_DIR rename.

The auto-generated reference lands under python/ and typescript/ once a non-rc tag fires the SDK’s docs-publish workflow. Until then these subtrees are empty placeholders.

  • python/ — Sphinx + autodoc, regenerated on every v* Python tag.
  • typescript/ — TypeDoc, regenerated on every vts-* TS tag.