modelvet (Python binding)
Verify-before-load structural validation for GGUF and safetensors model files. ctypes binding over the modelvet C library: fixed memory, checked arithmetic, bounded work, no allocation inside the validator.
import modelvet
report = modelvet.verify_path("model.safetensors")
if not report.accepted:
print(report.violation_name, report.violation, hex(report.offset))
A malformed file is a normal result: a Report with a REJECT verdict
and the first precise violation, not an exception. Exceptions are
reserved for API misuse (ModelvetArgumentError), arena exhaustion
(ModelvetArenaError), and a missing native library.
An ACCEPT verdict is structural only: it says nothing about model behavior, provenance, or poisoned weights. See the project's INTEGRATION.md for the full contract.
Native library resolution
MODELVET_LIBRARY(path to a shared library;make sharedin the repository buildsbuild/libmodelvet.so),- the packaged
modelvet/_nativemodule built from the vendored amalgamation at install time, - a system
libmodelvetfound byctypes.util.find_library.
If the library was built with raised MVET_MAX_* caps, set
MODELVET_ARENA_BYTES to at least its recomputed worst-case bound.
MIT. Copyright (c) 2026 AgenC (tetsuo-ai).
Metadata
Release files for modelvet 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| modelvet-0.1.1.tar.gz | 45.0 kB | With provenance | Details for modelvet-0.1.1.tar.gz |
Release files / modelvet-0.1.1.tar.gz
| Download URL | modelvet-0.1.1.tar.gz |
|---|---|
| Size | 45.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
862bc4d1bf6ab2270e5e465587fe36f0917eec257fe001ab9037d3309269083a
|
|
BLAKE2b-256 checksum How to use checksums |
051b5ef9ffdd6a2b411fbba76b154a0fd733fb545e7ae0fcbf931cb184a061c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.
Transparency logSecurity for modelvet 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for modelvet-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.