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.

Metadata

Release files for modelgate-mgs 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelgate-mgs 1.0.1
File Size Uploaded
modelgate_mgs-1.0.1.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for modelgate-mgs 1.0.1
File Interpreter ABI Platform
modelgate_mgs-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 kB

Release files / modelgate_mgs-1.0.1.tar.gz

Download URL modelgate_mgs-1.0.1.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bca677eb05c0af19068e8af650da84d70eb80b247f729061618d435cbeba5e7e
BLAKE2b-256 checksum
How to use checksums
c7f2c2eb2f20e0e34517f993567a892c79027d875fcb15cf271ab21d1373a42e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / modelgate_mgs-1.0.1-py3-none-any.whl

Download URL modelgate_mgs-1.0.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45ab89ae596b385f5e1b0799a568084bdb2e04f6d5b9e213268fc463a44eb91a
BLAKE2b-256 checksum
How to use checksums
ef0d28536dc562cab2f86e5a2ef1e97dbbdf13a1bb09e3fa58ecd967d0e83a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release 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