Python SDK core for quants, ML engineers, and AI agents — schema-versioned types, temporal safety, validation, alignment, and snapshot primitives. Domain adapters ship separately; `pip install mostlyrightmd` pulls the full SDK. Imports as `mostlyright`.
Project description
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.
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/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mostlyrightmd_core-2.0.0.tar.gz.
File metadata
- Download URL: mostlyrightmd_core-2.0.0.tar.gz
- Upload date:
- Size: 639.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd53dbabc4dce1778e96bdedcb783684444bf584725c3cf5875c45ff9dc71588
|
|
| MD5 |
a3dd3bc7cb5bee6ea095ab73cd8ccb49
|
|
| BLAKE2b-256 |
a5cce5675a964d19a40a2ff78245828a5df7029ac383e88b4225af7b74edea7a
|
Provenance
The following attestation bundles were made for mostlyrightmd_core-2.0.0.tar.gz:
Publisher:
release.yml on mostlyrightmd/mostlyright-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mostlyrightmd_core-2.0.0.tar.gz -
Subject digest:
dd53dbabc4dce1778e96bdedcb783684444bf584725c3cf5875c45ff9dc71588 - Sigstore transparency entry: 2244542548
- Sigstore integration time:
-
Permalink:
mostlyrightmd/mostlyright-sdk@61d12fa1dd50ecf45568953134f8ffd90af7236e -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/mostlyrightmd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61d12fa1dd50ecf45568953134f8ffd90af7236e -
Trigger Event:
push
-
Statement type:
File details
Details for the file mostlyrightmd_core-2.0.0-py3-none-any.whl.
File metadata
- Download URL: mostlyrightmd_core-2.0.0-py3-none-any.whl
- Upload date:
- Size: 510.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
750f7dc6c016ea06ecdd965916c97e8b0cccf33719e1ffa4e82873350739ed32
|
|
| MD5 |
d12685f7858f1df994db69ef0764a770
|
|
| BLAKE2b-256 |
dad173c9a27a195f4d5c20285b351af8d678529eb8efafc12f6585b087c80490
|
Provenance
The following attestation bundles were made for mostlyrightmd_core-2.0.0-py3-none-any.whl:
Publisher:
release.yml on mostlyrightmd/mostlyright-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mostlyrightmd_core-2.0.0-py3-none-any.whl -
Subject digest:
750f7dc6c016ea06ecdd965916c97e8b0cccf33719e1ffa4e82873350739ed32 - Sigstore transparency entry: 2244543125
- Sigstore integration time:
-
Permalink:
mostlyrightmd/mostlyright-sdk@61d12fa1dd50ecf45568953134f8ffd90af7236e -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/mostlyrightmd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@61d12fa1dd50ecf45568953134f8ffd90af7236e -
Trigger Event:
push
-
Statement type: