Skip to main content

Design-by-Contract for ML pipelines: fail-fast data/features/models

Project description

ml-contracts

Design-by-Contract for ML: Enforce data/features/models pre-deployment.

Install

pip install ml-contracts

Quickstart

from ml_contracts import DataContract
contract = DataContract(
    name="input-data",
    schema={"age": int},
    ranges={"age": (18, 75)},
    distribution={"age": "norm"}
)

Fits production pipelines—lightweight, no infra.

Project details


Download files

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

Source Distribution

ml_contracts-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

ml_contracts-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file ml_contracts-0.1.0.tar.gz.

File metadata

  • Download URL: ml_contracts-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ml_contracts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 994acdfd15d0f4be23362b218cacd78f43d0c8c7895a08416298dc72342c0bfc
MD5 a627c8b2d37dc76872e1b33050dea85b
BLAKE2b-256 4ae942fcff2aeaebee4c72372c7f579ad971b3213fc8e74d88707f767fdb1397

See more details on using hashes here.

File details

Details for the file ml_contracts-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ml_contracts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ml_contracts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5d6a39c6d785e1f6511f1ed36fdbc75c7aa85707f5e3426fa9727b239c8b2c
MD5 5a7941bc9544fccf1edc335393141405
BLAKE2b-256 96bbec1270d58e7c577fc67c50c157a9433eb1404ee7fd6a6623c29f85b00925

See more details on using hashes here.

Supported by

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