Skip to main content

mostlyrightmd-core

The public-data SDK core for quants, ML pipelines, and AI agents.

mostlyrightmd-core is the Python core distribution: types, schemas, validators, temporal-safety primitives, align() / spine(), and snapshot helpers. Weather, markets, economy, and finance adapters ship as separate distributions; credentialed and hosted options belong to their domain packages rather than the core-only install.

The core also carries the manifest resolver every domain package uses: source addresses resolve through the hosted manifest catalog, which requires MOSTLYRIGHT_API_KEY (subscriptions at https://app.mostlyright.md). Without a key, resolution raises ApiKeyRequiredError before making any request.

Want the whole SDK in one command? Install the meta-distribution mostlyrightmd, which pulls the core plus every domain. Individual domains are mostlyrightmd-weather, mostlyrightmd-markets, mostlyrightmd-economy, and mostlyrightmd-finance.

Install

pip install mostlyrightmd-core           # core only (helpers + snapshot primitives)
pip install mostlyrightmd                # the FULL SDK (core + weather/markets/economy/finance)
pip install mostlyrightmd-weather        # weather data sources only (brings core transitively)

mostlyrightmd-core and mostlyrightmd-weather share the mostlyright.* Python namespace but ship as separate PyPI distributions, so users who only need the helpers can skip the heavier weather deps. weather.training_table() lazy-imports mostlyright.weather and raises a clear error if the weather package is not installed.

Point-in-time composition

The core package provides the lower-level align() and spine() helpers used to compose targets and sources against per-row cutoffs. They live under mostlyright.experimental: they are documented and usable, but semver-exempt until they graduate.

Use the domain packages for source reads such as weather.observations() and economy.series(). See docs/dataset.md for a complete composition example.

Training-table example

If you install the weather package, training_table() provides one small, predefined supervised-learning recipe:

from datetime import date
from mostlyright import weather

table = weather.training_table("KNYC", date(2025, 1, 6), date(2025, 1, 12))
print(table.columns.tolist())

Use it when that recipe matches your target. For your own target or sources, use the composition helpers above. See docs/reference/migration-2.0.md for the 2.0 naming changes.

Documentation

Quickstart, concepts, and the full API reference live at https://mostlyright.md/docs/sdk/.

Download files

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

Source Distribution

mostlyrightmd_core-4.1.0.tar.gz (716.3 kB view details)

Uploaded Source

Built Distribution

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

mostlyrightmd_core-4.1.0-py3-none-any.whl (547.4 kB view details)

Uploaded Python 3

File details

Details for the file mostlyrightmd_core-4.1.0.tar.gz.

File metadata

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

File hashes

Hashes for mostlyrightmd_core-4.1.0.tar.gz
Algorithm Hash digest
SHA256 73cb235abfb5f4beb5236d32f6a96e92787ed44ebf0ce710aba87604eceb076c
MD5 d8ab6f7998dd423cd59a1a6f54d89013
BLAKE2b-256 65a6edd473d3d2f7400644735128bd9e67fe6ff797dce0f5d8d0966083775605

See more details on using hashes here.

Provenance

The following attestation bundles were made for mostlyrightmd_core-4.1.0.tar.gz:

Publisher: release.yml on mostlyrightmd/mostlyright-sdk

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

File details

Details for the file mostlyrightmd_core-4.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mostlyrightmd_core-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 086710817ef2678994ac22feefa05d65ea86290fee632b824c52170206d5b170
MD5 502eddfe40b8a92c7759a1aa6bb8ea8d
BLAKE2b-256 598c22d61b7ba363743922f8350fa0803a1037c22ed687b7f571bf185b11f256

See more details on using hashes here.

Provenance

The following attestation bundles were made for mostlyrightmd_core-4.1.0-py3-none-any.whl:

Publisher: release.yml on mostlyrightmd/mostlyright-sdk

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

Release history Release notifications | RSS feed

5.0.1

2 files

5.0.0

2 files

4.1.1

2 files

This release

4.1.0 This release

2 files

4.0.0

2 files

3.0.0

2 files

2.1.0

2 files

2.0.0

2 files

Supported by

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