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 an API key
supplied by mostlyright.configure(api_key=...) or the MOSTLYRIGHT_API_KEY
environment variable (subscriptions at https://app.mostlyright.md). Without a
key, resolution raises ApiKeyRequiredError before making any request. Both
routes, and the notebook pattern, are in docs/api-key.md.
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/.
Release files for mostlyrightmd-core 5.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mostlyrightmd_core-5.0.1.tar.gz | 754.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mostlyrightmd_core-5.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / mostlyrightmd_core-5.0.1.tar.gz
| Download URL | mostlyrightmd_core-5.0.1.tar.gz |
|---|---|
| Size | 754.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5740598ae95c22e694d20a0c4ada8c94da6986530ce0cccc8a09b26d48bb498e
|
|
BLAKE2b-256 checksum How to use checksums |
6601e355b542c1cfbd2439d7f0f6643aa2ccf6a0f0c76095fb8ae30a9c66c524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency logRelease files / mostlyrightmd_core-5.0.1-py3-none-any.whl
| Download URL | mostlyrightmd_core-5.0.1-py3-none-any.whl |
|---|---|
| Size | 564.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afaf2574c08d6a70a03ce90ac99fe569c95c80c252a68659d703f205561affdf
|
|
BLAKE2b-256 checksum How to use checksums |
ee609ea6fbb370ce71a28247f006fbc87a44442b57c6ceb49b28a72f1ea1d5b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 25, 2026.
Transparency log