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
ProfileandPipelineand 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:modelstring supported by Pydantic AI -
observations.jsonloutput with source, usage and retry information per image -
A synthetic sample generator (a fictional shop screen) for demos and tests
-
An evaluation harness built on pydantic-evals: score a profile and a model against images with expected outputs
Planned: video input with frame sampling and de-duplication (0.2), cross-frame aggregation (0.2), screen classification, cropping and redaction (0.3), and side-by-side comparison of models and prompts (0.3).
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}
Evaluate
Install the eval extra, then score a profile and a model against a dataset of images with
expected outputs. framelift synth writes such a dataset (dataset.yaml) next to its images:
pip install "framelift[eval,anthropic]"
framelift synth --out samples --n 20
framelift eval samples/dataset.yaml --profile examples.fantasy_shop:profile \
--model anthropic:<model-name>
A dataset lists each image (relative to the dataset root), its SHA-256 and the expected output, which lists every required field (fields with defaults may be left out):
schema: framelift/dataset/v1
cases:
- name: shop-000
image: shop-000.png
sha256: 3dbb5bc8…
expected:
shop_name: Amber Market
items:
- {name: Dew Rope, price: 1590}
metadata: {orientation: portrait}
Image paths are relative to the dataset file; to keep images outside the repository, pass
--root DIR.
Before anything is sent to the model, every image is checked against its SHA-256 and every
expected output against the profile's output model, so a typo in a field name or a value YAML
reads differently (an unquoted no becomes false) is reported instead of scored as a misread.
The report shows, per case and on average, whether validation passed, field accuracy,
list-item precision and recall (items are matched with Profile.item_key, e.g.
item_key=lambda item: item.name), tokens, latency and retries.
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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| framelift-0.1.0.tar.gz | 21.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| framelift-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.5 kB
Release files / framelift-0.1.0.tar.gz
| Download URL | framelift-0.1.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e28a375961a5d8e1f055898ecca98f3fac3483c21175a2a63d55e675d2bca9b5
|
|
BLAKE2b-256 checksum How to use checksums |
7b24aba8fae743d158cce9eb47864cce6cb2d3d903695fc7e0db11d0ca0d7ded
|
| 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 logRelease files / framelift-0.1.0-py3-none-any.whl
| Download URL | framelift-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02f1e4923f6bdb184b053441e588b76ea0092020ff82c20867b0310e1c09619e
|
|
BLAKE2b-256 checksum How to use checksums |
68141621b3479df4a82b2c15fcc3d2af415961fe1a552bd3e732aba5a157b91c
|
| 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 logSecurity for framelift 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for framelift-0.1.0.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 logA 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.