Skip to main content

framelift

Extract structured data from screen recordings and screenshots with vision LLMs.

You describe what to read as a Pydantic model and how to read it as a Profile; framelift turns images into validated, provenance-tagged JSON Lines.

Status: pre-alpha (0.x). The public API is limited to Profile and Pipeline and may change between minor versions.

Features (0.1)

  • Image input (files, directories, glob patterns), each tagged with its SHA-256 and perceptual hash
  • Structured extraction with Pydantic AI: your model is the output type, your validators trigger automatic retries
  • Model-agnostic: pass any provider:model string supported by Pydantic AI
  • observations.jsonl output with source, usage and retry information per image
  • A synthetic sample generator (a fictional shop screen) for demos and tests

Planned: video input with frame sampling and de-duplication (0.2), cross-frame aggregation (0.2), screen classification, cropping and redaction (0.3), and an evaluation harness built on pydantic-evals.

Install

pip install "framelift[anthropic]"   # or [openai], [google]

Quick start

from pydantic import BaseModel, Field
from framelift import Pipeline, Profile


class ShopItem(BaseModel):
    name: str = Field(description="Item name as displayed")
    price: int = Field(description="Price as an integer", gt=0)


class ShopScreen(BaseModel):
    shop_name: str
    items: list[ShopItem]


shop = Profile(
    name="fantasy-shop",
    version="1",
    output_type=ShopScreen,
    instructions="Read the shop's item list exactly as displayed.",
)

Pipeline(shop, model="anthropic:<model-name>", out_dir="out").run(["shots/*.png"])

Or from the command line:

framelift synth --out samples --n 3                       # generate fictional shop screenshots
framelift run "samples/*.png" --profile examples.fantasy_shop:profile \
  --model anthropic:<model-name> --out out

Each line of out/observations.jsonl looks like:

{"schema": "framelift/observation/v1",
 "profile": {"name": "fantasy-shop", "version": "1"},
 "source": {"path": "samples/shop-000.png", "sha256": "…", "phash": "…"},
 "data": {"shop_name": "…", "items": [{"name": "…", "price": 120}]},
 "model": "anthropic:<model-name>",
 "usage": {"input_tokens": 1534, "output_tokens": 96, "requests": 1, "latency_ms": 2104},
 "retries": 0}

Privacy

framelift runs locally and only sends the images you pass to the model provider you choose. It has no telemetry. Cropping and redaction before sending are planned for 0.3.

Development

uv sync --all-extras
uv run ruff check && uv run ruff format --check
uv run ty check
uv run pytest

Tests never call a real model (ALLOW_MODEL_REQUESTS = False); tests marked live are skipped by default.

License

MIT

Metadata

Release files for framelift 0.0.1

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

Source distribution (sdist)

Source distribution for framelift 0.0.1
File Size Uploaded Provenance
framelift-0.0.1.tar.gz 11.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 26.1 kB

Release files / framelift-0.0.1.tar.gz

Download URL framelift-0.0.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72ba01fc4b0ce4ebefeb09373e2d821549855622049287a69f7b0b708f4b9f23
BLAKE2b-256 checksum
How to use checksums
7f05644de4fd5c93931ed26614aa1c0d3b754d561243ae1841dcf0da6c33c62a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / framelift-0.0.1-py3-none-any.whl

Download URL framelift-0.0.1-py3-none-any.whl
Size 14.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70710e8609bf81b3677566d670ad7d0c6586ef8f4af9b4ca35c70b9c342d3d40
BLAKE2b-256 checksum
How to use checksums
d17f8d1e4b7f440062070c51450356a0682dd4a6dbda00f223292b9f63aec970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for framelift 0.0.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for framelift-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

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