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.23.0.tar.gz (125.3 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.23.0-py3-none-any.whl (86.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: heimdex_media_contracts-0.23.0.tar.gz
  • Upload date:
  • Size: 125.3 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.23.0.tar.gz
Algorithm Hash digest
SHA256 d9d75344f842ebe551880b3897017a30be344d8dd8f6c6014f88a75fcbf3285b
MD5 d0e924fc432ef4125ffd9b9eb37a9b62
BLAKE2b-256 229430e8306f2304acb06f5e434f339a6b48642beda32b0ed03ee6ac69b286a7

See more details on using hashes here.

Provenance

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

Publisher: release.yml on HeimdexDev/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.23.0-py3-none-any.whl.

File metadata

File hashes

Hashes for heimdex_media_contracts-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3329ffe5c9c4df05df5c3e5f8d149819edd3e8718265c9ee7053d80b9aa7edab
MD5 e2b45dffb54e25c37c9d83e5b8bc986d
BLAKE2b-256 098d3cdb047211a8c644d873749f7e4cadc81afd120ac5470293593df6da5141

See more details on using hashes here.

Provenance

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

Publisher: release.yml on HeimdexDev/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