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.8.2.tar.gz (55.5 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.8.2-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for heimdex_media_contracts-0.8.2.tar.gz
Algorithm Hash digest
SHA256 1a7f55d0414ca8e2dfa63a1fa46a577a08e0c830b423df39750470fa0f743c23
MD5 095191a2a9eceae18754818e9451e5de
BLAKE2b-256 2b21641dc32e55917ad9343d9a65cce244401477841620b9172e84a4aee14691

See more details on using hashes here.

Provenance

The following attestation bundles were made for heimdex_media_contracts-0.8.2.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.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for heimdex_media_contracts-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 840b913488a516b13c6474062237ba520c5a967bc9f0bf5326a42484c014b36b
MD5 4b079b5e55c2d219c900ee3c4f8500ec
BLAKE2b-256 1520de72ed166d5f979df1b3c24c76026eb3cdd5c573d41de55e9e6306f95921

See more details on using hashes here.

Provenance

The following attestation bundles were made for heimdex_media_contracts-0.8.2-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