Skip to main content

Shared schemas, pure functions, and contracts for Heimdex media pipelines

Project description

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

Project details


Download files

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

Source Distribution

heimdex_media_contracts-0.9.1.tar.gz (60.2 kB view details)

Uploaded Source

Built Distribution

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

heimdex_media_contracts-0.9.1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file heimdex_media_contracts-0.9.1.tar.gz.

File metadata

  • Download URL: heimdex_media_contracts-0.9.1.tar.gz
  • Upload date:
  • Size: 60.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for heimdex_media_contracts-0.9.1.tar.gz
Algorithm Hash digest
SHA256 dc5e5f510b9ac9eaf2aaaf87b9d69173bc87395ed7c0f461aeef7b62c86e41cc
MD5 0b5231f6aac951c248166a2070d7e190
BLAKE2b-256 912b14c300ca065ddee5ca08c71648b6ae51c7047097da8e08e2a80d0ef032e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for heimdex_media_contracts-0.9.1.tar.gz:

Publisher: release.yml on jlee-heimdex/heimdex-media-contracts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file heimdex_media_contracts-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for heimdex_media_contracts-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddfd4b2edaec492d36aea0792733e3417715e76e0fbf4abb5535ac996cac4f85
MD5 1dcd68cf3250c5013d8fb8a35d93c4f5
BLAKE2b-256 aea4e5ff4b438c9453b62f42c11d69439bdeed678cf7c00be89a6701c0eb7283

See more details on using hashes here.

Provenance

The following attestation bundles were made for heimdex_media_contracts-0.9.1-py3-none-any.whl:

Publisher: release.yml on jlee-heimdex/heimdex-media-contracts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page