Skip to main content

modelgate-core

Reference implementation of MGS (Model Gate Standard) — pure-Python, zero infrastructure dependencies.

pip install modelgate-mgs

No FastAPI, no database, no message queue — this package is meant to be usable from a plain Python script, a notebook, or a CI job with nothing but pip install modelgate-mgs.

Usage

from modelgate import audit

report = audit("./my_dataset.zip")
print(report.overall_verdict)  # PASS / FAIL / NOT_EVALUATED
for r in report.requirements:
    print(r.id, r.verdict, r.metrics)
modelgate check ./my_dataset.zip --spec mgs-1.0 --json > report.json

Stable API surface (D5.1)

Only what's listed in modelgate.__all__ is covered by any stability guarantee:

  • modelgate.audit(path, config=None) -> Report
  • modelgate.read_dataset(path) -> Manifest — structure-only parsing, no Requirement checks run. Useful if you want a Manifest without paying for a full audit.
  • modelgate.Report, modelgate.RequirementResult, modelgate.Manifest

Anything under modelgate._readers, modelgate._checkers, modelgate._rounding — the leading underscore is enforced, not just documented — may change shape between minor versions without notice. The modelgate check CLI's --json output shape (spec §4) is the other thing meant to be stable; parse that, not Python internals, if you're integrating from outside Python.

Download files

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

Source Distribution

modelgate_mgs-1.0.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

modelgate_mgs-1.0.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file modelgate_mgs-1.0.1.tar.gz.

File metadata

  • Download URL: modelgate_mgs-1.0.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for modelgate_mgs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bca677eb05c0af19068e8af650da84d70eb80b247f729061618d435cbeba5e7e
MD5 5c5f36af5df35042e5a194da9f487c04
BLAKE2b-256 c7f2c2eb2f20e0e34517f993567a892c79027d875fcb15cf271ab21d1373a42e

See more details on using hashes here.

File details

Details for the file modelgate_mgs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: modelgate_mgs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for modelgate_mgs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45ab89ae596b385f5e1b0799a568084bdb2e04f6d5b9e213268fc463a44eb91a
MD5 df3469653f772f2868acef0c1cfb5c89
BLAKE2b-256 ef0d28536dc562cab2f86e5a2ef1e97dbbdf13a1bb09e3fa58ecd967d0e83a8c

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 Sentry Error logging StatusPage Status page