Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

framelens

Latest version: v0.4.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: FrameLens
2 Versions

Scan summary

framelens was last scanned on 28 Nov 2026 at version 0.4.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 28 Nov 2026.
  • Findings: No rules fired in version 0.4.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.4.1 LATEST 28 Nov 2026 No rules fired
0.4.0 28 Nov 2026 No rules fired

No rules fired in 0.4.1

Findings

Findings for v0.4.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.4.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

framelens

Python client for FrameLensAI — evaluation and regression testing for video AI.

FrameLensAI turns "did the new model get worse?" from a vibe into a gated, statistical answer: versioned video test suites → provider-neutral eval runs → video-native metrics with confidence intervals → CI gates that block confident regressions.

This package is the client. It talks to a FrameLens server (self-hosted via docker compose, or run locally with make dev); it does not run evals by itself.

pip install framelens

Requires Python 3.10+. The only dependency is httpx.

Quickstart

from framelens import FrameLens

fl = FrameLens(api_key="dev-key", base_url="http://localhost:8000")

sha     = fl.upload_video("clip.mp4")            # content-addressed; re-upload is a no-op
project = fl.create_project("perimeter-security")
dataset = fl.create_dataset(project["id"], "intrusion-events",
                            task_type="event_detection")
fl.add_case(dataset["id"], video_sha=sha,
            ground_truth={"events": [{"start_ms": 4200, "end_ms": 6100}]})
fl.freeze(dataset["id"])                         # immutable version snapshot

model = fl.create_model_config(project["id"], "gpt-4o", adapter="openai_compat",
                               params={"model": "gpt-4o"})   # api_key is encrypted server-side

run = fl.run(project["id"], dataset_id=dataset["id"],
             model_config_id=model["id"])
run = fl.wait(run["id"])                         # or fl.watch(...) for live SSE progress
print(run["summary"]["overall"]["event_f1"])

Runs are idempotent: the same (dataset version, model config, prompt, sampling) tuple produces the same fingerprint, and the server returns the existing run instead of paying for it twice. run() tells you which happened via outcome: created, cached, joined or resumed.

Gating a pull request

A gate fails only when a paired bootstrap says the regression is real — never on a single point estimate.

verdict = fl.gate(run["id"], baseline="main", gates=[
    {"metric": "event_f1",  "min_delta": -0.01},
    {"metric": "fa_per_min", "max_delta": 0.05, "slice": "tags.night"},
])

from framelens import raise_for_gates
raise_for_gates(verdict)      # FrameLensGateFailed, with a readable table

Inside your own test suite

Installing the SDK auto-registers a pytest plugin (via the pytest11 entry point) — no conftest.py wiring:

def test_no_regression(framelens_eval):
    result = framelens_eval(
        project_id, dataset_id=dataset_id, model_config_id=model_config_id,
        gates=[{"metric": "event_f1", "min_delta": -0.01}])
    result.assert_gates()
    assert result.metric("event_f1") > 0.8

Point it at a server with --framelens-url / --framelens-key (or FRAMELENS_API_URL / FRAMELENS_API_KEY), and use --framelens-subset smoke so a PR gates a smoke subset while the nightly gates the full suite.

Async

AsyncFrameLens mirrors the sync client method for method:

from framelens import AsyncFrameLens

async with AsyncFrameLens(api_key=..., base_url=...) as fl:
    run = await fl.run(project_id, dataset_id=..., model_config_id=...)
    run = await fl.wait(run["id"])

Failures are typed, and carry the request id

Every error inherits from FrameLensError and carries the server's request_id, so a failure in your CI log is findable in the server's:

FrameLensAuthError · FrameLensPermissionError · FrameLensNotFoundError · FrameLensValidationError · FrameLensRateLimited · FrameLensServerError · FrameLensConnectionError · FrameLensTimeoutError · FrameLensVersionError · FrameLensRunFailed · FrameLensGateFailed

Transient failures retry with jittered backoff honouring Retry-After: a 429 for every method (refused ⇒ not executed), a 5xx or transport error only where repeating is safe — GET/DELETE plus the POSTs the API makes idempotent.

fl = FrameLens(api_key=..., base_url=..., timeout=30.0,
               verify="/etc/ssl/corp-ca.pem")   # also: transport=, client=

Large collections

List routes are cursor-paginated and capped; the SDK follows the cursor for you.

for prediction in fl.iter_predictions(run_id):   # streams, follows next_cursor
    ...
cases = fl.list_cases(dataset_id)                # same, materialised

Versioning

Semver, pre-1.0: a minor bump may change behaviour, a patch may not. framelens.API_VERSION is the API contract this client was written against and is sent on every request, so an unsupported server answers at the first call rather than deep inside a job.

Licence

Apache-2.0. The full text ships inside the package (LICENSE).

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases framelens

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229