Skip to main content

mif-core

Tests CI PyPI version Python versions License: MIT

The metric and strategy qualification layer of the Metric Integrity Framework.

mif-core sits above the two canonical infrastructure projects:

mif-dqf  → certifies data quality
mif-dal  → assembles and hands off certified data
mif-core → qualifies metrics and strategies
Layer Repository PyPI distribution Python import Responsibility
MIF-DQF symbioticode/mif-dqf mif-dqf dqf Certify the physical and structural quality of market data.
MIF-DAL symbioticode/mif-dal mif-dal dal Assemble reproducible streams and produce certified handoffs.
MIF Core symbioticode/mif-core mif-foundation core Qualify metrics and strategies against explicit offline tests.

The three packages form one directional contract: DQF certifies the data, DAL assembles and transports the certified handoff, and Core evaluates what is computed from that handoff. Each package remains installable and versioned independently.

This first increment defines explicit contracts and a deterministic offline catalogue. Tests are selected explicitly; no hidden one-size-fits-all protocol is applied.

Included test catalogue

The package currently ships six offline checks: DAL handoff readiness, signal shape, adaptive positive-return stability, return integrity, configurable rolling out-of-sample consistency, and prefix causality (look-ahead detection). They are deliberately small building blocks, not a complete profitability guarantee.

Development

python -m pip install -e '.[dev]'
python -m pytest
python -m build

The published distribution is named mif-foundation on PyPI. The import package and command remain core and mif-core respectively; the longer distribution name makes the PyPI project unambiguous.

Supported Python versions

The current release supports Python 3.11 and 3.12. Python 3.13 support is deferred because the canonical mif-dal dependency currently requires a NumPy version without a compatible Python 3.13 distribution.

mif-core catalog
mif-core --version
mif-core demo
mif-core metric-demo
mif-core demo --format text
mif-core metric-demo --format text
mif-core demo --tests T_HANDOFF_001,T_LOOKAHEAD_001

An external strategy can implement StrategyAdapter and be certified against an explicit list of tests. See examples/certify_strategy.py for an offline example; production callers should supply the real DALHandoff from mif-dal.

examples/certify_metric.py shows the corresponding metric contract.

See docs/API.md for the supported public surface. See docs/ROADMAP.md for current limits and next phases. See docs/PUBLISHING.md for the PyPI release path.

Status

Development implementation based on the documented MIF v5 architecture. The architecture file contains a historical brainstorming version marker; the provenance decision is recorded in docs/PROVENANCE.md.

Test

python3 -m unittest discover -s tests -v

Download files

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

Source Distribution

mif_foundation-0.2.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

mif_foundation-0.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file mif_foundation-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for mif_foundation-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66a5b121e9719b509feaf95cd3972f5ff7ef1136fc7786e44f6564dd9bc2fb6f
MD5 e96566fa5027ec3c96eab5ab9126ec2d
BLAKE2b-256 abe07deba567d21abc2413a3a75f13a334766cea366897a45e7d22b7032a1e9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mif_foundation-0.2.0.tar.gz:

Publisher: publish.yml on symbioticode/mif-core

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

File details

Details for the file mif_foundation-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mif_foundation-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mif_foundation-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e9b51b9b869e5fbc56bbd4d26259e28e5f7d17432611220c387738a80a6ae46
MD5 ea3a375df4ad0f25eaf36963195987ea
BLAKE2b-256 ec25302b9ea4e98adf945be159049ea1390268136cdba67d16bff1e86b1a3551

See more details on using hashes here.

Provenance

The following attestation bundles were made for mif_foundation-0.2.0-py3-none-any.whl:

Publisher: publish.yml on symbioticode/mif-core

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page