Skip to content

Packages & versioning

Mostly Right ships publicly for Python and TypeScript. One meta-package installs all common methods; per-domain packages let you depend on only what you use.

Terminal window
pip install mostlyrightmd
Terminal window
pnpm add mostlyright

The Python import name is mostlyright. Support floors are Python 3.11+ and Node 20+.

DomainPythonTypeScript
Core / metamostlyrightmdmostlyright / @mostlyrightmd/core
Weathermostlyrightmd-weather@mostlyrightmd/weather
Marketsmostlyrightmd-markets@mostlyrightmd/markets
Economymostlyrightmd-economy@mostlyrightmd/economy
Financemostlyrightmd-finance@mostlyrightmd/finance

All packages share the mostlyright namespace and follow the same schema and source-identity conventions. Inspect each runtime’s returned schema before freezing a cross-runtime model contract.

The current release is 4.1.0 for both languages.

  • Version 4.0 requires MOSTLYRIGHT_API_KEY. Without a key, calls fail with ApiKeyRequiredError before any network request. The vendored manifest catalogs and KeylessDecayWarning were removed.
  • Version 4.0 added weather.hazards (NWS alerts, storm bulletins, active tropical cyclones, and HURDAT2 best tracks, in both SDKs) and Python’s economy.release_calendar().
  • Version 4.1 added wildfire incident and satellite hotspot reads to @mostlyrightmd/weather, and river-gauge reads to both SDKs. Hotspot bounding-box queries read MOSTLYRIGHT_FIRMS_MAP_KEY.

Version 3.0 set the naming contract, and it still applies:

  • Daily reports use weather.daily_summaries() in Python and dailySummaries() from @mostlyrightmd/weather/daily-summaries in TypeScript. The old climate() names were removed.
  • Kalshi and Polymarket expose the same market-data verbs: series, events, markets, market, candles, trades, and orderbook, except that Polymarket has no series tier.
  • weather.satellite() accepts a station or arbitrary lat and lon. Europe, Africa, and the Indian Ocean now route to Meteosat and require EUMETSAT credentials unless you explicitly request VIIRS.

Date windows still use from_date / to_date; time windows use from_time / to_time. Python and TypeScript rows use the same descriptive snake_case field names.

The packages do not ship a fixed source manifest. Set MOSTLYRIGHT_API_KEY so the SDK can retrieve current endpoint, schema, and source definitions; the key comes with the subscription (USD 29/month at app.mostlyright.md). After resolving the manifest, the SDK fetches data directly from the selected source; Mostly Right does not proxy those source requests.

Python can cache under ~/.mostlyright/cache/, Node under ~/.mostlyright/cache-ts/, and browser builds use IndexedDB. Some sources need their own credentials, and optional hosted methods use MOSTLYRIGHT_* environment variables. See Credentials.