modelgate-core
Reference implementation of MGS (Model Gate Specification) — pure-Python, zero infrastructure dependencies.
Status: Fase 1 packaging skeleton. The actual Reader → Manifest →
Checker → Report pipeline is built in Fase 2 — see
ROADMAP.md at the repo root.
pip install -e .
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. The hosted server
(packages/modelgate-server) is a consumer of this package, not the
other way around.
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 (once tagged 1.0, per ROADMAP.md Fase 4):
modelgate.audit(path, config=None) -> Reportmodelgate.read_dataset(path) -> Manifest— structure-only parsing, no Requirement checks run. Added in Fase 5 formodelgate-server's upload-time validation, but useful to anyone who wants 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
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 modelgate_mgs-1.0.0.tar.gz.
File metadata
- Download URL: modelgate_mgs-1.0.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
219ec5a98c5339cf42f0700203e8ff73c0d322b56b7fcc9d3abb85e61134253a
|
|
| MD5 |
443ffec1a2b195d6d02e93f6f345de08
|
|
| BLAKE2b-256 |
4d51133876bc07c3ce879ddb7be998c4ddab7668be9b59271c9de0c23419595b
|
File details
Details for the file modelgate_mgs-1.0.0-py3-none-any.whl.
File metadata
- Download URL: modelgate_mgs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d5a5cd934940517b67c67eae366cf0cc4416419a99998a129e97388cf00e7a4
|
|
| MD5 |
bf84aba7e3435bfbb9f65e0654c75370
|
|
| BLAKE2b-256 |
a71cb4ef0c78d4d4c7998c872332afd974d1f3f5a5a7abc7382927988dd81324
|