Skip to main content

MIFpy

mifpy is a lightweight Python library for the Movie Information Format (.mif), a ZIP-based container format for movie metadata, subtitles, actor appearance timelines, and associated assets.

Features

  • Load and save .mif archives using Python zipfile
  • Validate required package files and formats
  • Parse manifest.ini, meta.ini, appearances.json, and subtitles.srt
  • Add content assets under content/
  • CLI support: inspect, extract, and create

Package structure

A valid .mif archive contains:

  • manifest.ini
  • meta.ini
  • subtitles.srt
  • appearances.json
  • content/ (optional)

Installation

Install with Poetry:

poetry install

Usage

from mifpy import MIFPackage

pkg = MIFPackage.create(
    meta={"title": "The Matrix", "year": 1999, "runtime_ms": 8160000},
    subtitles="1\n00:00:00,000 --> 00:00:02,000\nWake up, Neo.\n",
    appearances={
        "actors": {
            "keanu_reeves": {
                "name": "Keanu Reeves",
                "image": "content/keanu.png",
            }
        },
        "appearances": [
            {"actor": "keanu_reeves", "start_ms": 1000, "end_ms": 10000}
        ],
    },
)

pkg.add_content_file("keanu.png", b"<raw-image-bytes>")
pkg.save("movie.mif")

CLI

mifpy inspect movie.mif
mifpy extract movie.mif ./out
mifpy create sample.mif

Testing

Run tests with:

poetry run pytest

Metadata

Release files for mifpy 1.0.0

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

Source distribution (sdist)

Source distribution for mifpy 1.0.0
File Size Uploaded Provenance Actions
mifpy-1.0.0.tar.gz 6.4 kB Without provenance Details for mifpy-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mifpy 1.0.0
File Interpreter ABI Platform Actions
mifpy-1.0.0-py3-none-any.whl Python 3 none any Details for mifpy-1.0.0-py3-none-any.whl

Total release size: 15.4 kB

Release files / mifpy-1.0.0.tar.gz

Download URL mifpy-1.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5285382c8625d07f2752c658aefd39b8682135689535058a34bc82af25754ec5
BLAKE2b-256 checksum
How to use checksums
c3ca62957b90441394e9a52d23f429b6e957ddb87683b20e31dac88d3022252d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.3 Windows/11

Release files / mifpy-1.0.0-py3-none-any.whl

Download URL mifpy-1.0.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f2851e4b20936862db4435951f19b37a52f7d74cf036440cf3b1cd0d4367273
BLAKE2b-256 checksum
How to use checksums
6e0abc630766bb8f6b4e8877c020363cc5361df644023e420c16fa2748ee944e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.3 Windows/11

Security for mifpy 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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