Skip to main content

media-intelligence

Media Intelligence extracts structured data from documents, images and video. Its document engine preserves page or worksheet evidence in searchable artifacts. Other layers provide ingestion, transcription, enrichment, persistence and publication through optional backends.

Installation

Choose the documents extra for the example below. Other extras include ingest, video, transcribe, enrich and publish.

python -m pip install 'media-intelligence[documents]'

Quick start

Extract an existing PDF with native readers, then retrieve its first page using the artifact ID and the same source file.

from media_intelligence.documents import extract_document, read_page

source = "invoice.pdf"
result = extract_document(source, store_root="./artifacts", ocr="off")
page = read_page(source, result["artifact_id"], 1, store_root="./artifacts")

Document processing

Readers handle PDF, modern Office documents and common text formats. Results preserve source references, warnings and per-unit status. Search with search_document(source, artifact_id, query, store_root=...). Artifacts are bound to source content and extraction settings so callers can resume partial work and distinguish earlier results.

Use ocr="auto" to send pages that need OCR to a configured Hugpy vision model. Configure the endpoint with HUGPY_CORE_URL and the model with HUGPY_DOCUMENT_OCR_MODEL. OCR results retain their inferred text alongside native evidence.

Pipeline API

media_intelligence.available() reports which layer dependencies are present. MediaPipeline exposes ingestion, extraction, structuring, enrichment, persistence and publication as individual stages. Use individual namespaces such as documents when an application needs only one operation.

The source guide describes supported readers, extraction limits, source-bound artifact retrieval and managed OCR. Document extraction reference

Metadata

Release files for media-intelligence 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for media-intelligence 0.1.7
File Size Uploaded Provenance Actions
media_intelligence-0.1.7.tar.gz 46.4 kB Without provenance Details for media_intelligence-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for media-intelligence 0.1.7
File Interpreter ABI Platform Actions
media_intelligence-0.1.7-py3-none-any.whl Python 3 none any Details for media_intelligence-0.1.7-py3-none-any.whl

Total release size: 95.9 kB

Release files / media_intelligence-0.1.7.tar.gz

Download URL media_intelligence-0.1.7.tar.gz
Size 46.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8d106540c90977db3fa228c96eafeee7ad84cde3e5992d65794dbcdfe2218d24
BLAKE2b-256 checksum
How to use checksums
d8f1a2d80ec5330f94b55763a6066c38dcd0b5e22c5c11b1698238b36ff3ff42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / media_intelligence-0.1.7-py3-none-any.whl

Download URL media_intelligence-0.1.7-py3-none-any.whl
Size 49.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
065d6a8dc7005b94022647c2561db8d336bef1136ba31b61f341268e3fb87118
BLAKE2b-256 checksum
How to use checksums
9f280b7e2694f2320ff36fe78b975e3dd2e227200fda4fe9318f61e2f769bdb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for media-intelligence 0.1.7

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page