heimdex-media-contracts
Shared schemas, pure functions, and contracts for Heimdex media pipelines.
This package is intentionally dependency-light — it depends only on pydantic
and the Python standard library. It must never import heavy ML/media libraries
such as cv2, torch, whisper, insightface, pyannote, onnxruntime, or ffmpeg.
Modules
| Module | Contents |
|---|---|
heimdex_media_contracts.faces.schemas |
Pydantic models for face presence responses |
heimdex_media_contracts.faces.sampling |
Pure timestamp sampling math (no file I/O) |
heimdex_media_contracts.speech.schemas |
Dataclass models for speech segment pipelines |
heimdex_media_contracts.speech.tagger |
Keyword-based segment tagger (pure string matching) |
heimdex_media_contracts.speech.ranker |
Segment importance ranker (pure computation) |
Usage
from heimdex_media_contracts.faces.schemas import FacePresenceResponse
from heimdex_media_contracts.faces.sampling import sample_timestamps
from heimdex_media_contracts.speech.tagger import SpeechTagger
Running tests
cd heimdex-media-contracts
pip install -e ".[dev]"
python -m pytest -q
Metadata
Release files for heimdex-media-contracts 0.47.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| heimdex_media_contracts-0.47.0.tar.gz | 415.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| heimdex_media_contracts-0.47.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 606.2 kB
Release files / heimdex_media_contracts-0.47.0.tar.gz
| Download URL | heimdex_media_contracts-0.47.0.tar.gz |
|---|---|
| Size | 415.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
858ccc816054691ccffd3380a1f8e3be9355dfd4c71970f00ecb0c09874c36fc
|
|
BLAKE2b-256 checksum How to use checksums |
372857a84cedc3cf9445699f150c5e74fc20b55fbe423a1b7d2567cc99cb751b
|
| 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 Sep 17, 2026.
Transparency logRelease files / heimdex_media_contracts-0.47.0-py3-none-any.whl
| Download URL | heimdex_media_contracts-0.47.0-py3-none-any.whl |
|---|---|
| Size | 190.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4016a985462b260e897d9b167a1ba21472d61b17d8394cf01b42fa65b2e619c6
|
|
BLAKE2b-256 checksum How to use checksums |
67f0a6763a73ecafde3e589562ac7341fa323b715ee45648d83b50b353e34e72
|
| 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 Sep 17, 2026.
Transparency log