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

dstory

Latest version: v0.15.5

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: dkedar7
1 Stars
1 Forks
23 Versions
2.7K Downloads
Python Repo language

Scan summary

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

  • Releases: 23 versions; the latest 5 were published within 5 days (24–28 Nov 2026).
  • Findings: No rules fired in version 0.15.5.
  • Downloads: 2,692 downloads.

Versions

23 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.15.5 LATEST 28 Nov 2026 No rules fired
0.15.4 27 Nov 2026 No rules fired
0.15.3 26 Nov 2026 No rules fired
0.15.2 25 Nov 2026 Not shown
0.15.1 24 Nov 2026 Not shown

No rules fired in 0.15.5

Findings

Findings for v0.15.5. 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.15.5; other versions have their own rules, not their own score.

README

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

dstory

Turn DataFrames into NYT-style scrollytelling and slide-deck data stories — one self-contained HTML file you can email, host, or present. Pure Python in, no JavaScript required.

📖 Documentation · ▶ Live demo: Ctrl-Alt-Reinvent — Microsoft, 1975–2025 — a 40-scene data essay built with dstory · ▶ Cookbook gallery — the chart recipes, rendered · ▶ Theme showcase — same story, eight personalities · ▶ Morph showcase — bars curl into pies, live, zero JS

dstory is the deterministic infrastructure for data stories: a one-call builder, a single-file bundler, a 5-dimension vetter (renders / data fidelity / editorial integrity / visual / a11y), a brand system for your colors and typography, and pydantic schemas that surface authoring bugs at build time instead of delivery time.

In 30 seconds

pip install "dstory[all]" && playwright install chromium
dstory draft sales.csv            # -> sales/dist/story.html

or, in a notebook, dstory.build(pd.read_csv("sales.csv"), "sales").

You get one HTML file to email or host (--vendor also inlines the chart libraries, so it works with no network). It picks the charts and writes the headlines from your numbers, and every number in the prose is checked against the data before the file is written. Every chart comes with a data table, a CSV download, a keyboard explorer for screen readers, and a Listen button. Add --mode slides for a deck. Then edit sales/data.json and run dstory bundle sales to make it yours. The rest of this page covers authoring by hand.

Who is this for?

  • Python data scientists (no JS): animated chart sequences via declarative Vizzu scenes, plus a cookbook of finished D3 charts you copy and own. DataFrame → story.html in one notebook cell.
  • Authors comfortable with D3: full creative control — scenes are plain JS files you write; dstory does everything else and stays out of your chart code.
  • AI-assisted authoring: dstory is the substrate the companion data-storytelling Claude skill builds on — the agent writes the bespoke D3; the vetter gates what ships.

Status

Alpha — under active development. API may change before 1.0.

Install

pip install dstory                     # core: schema + brand + scaffold + bundle
pip install "dstory[vet]"              # adds Playwright for browser-driven vetting
pip install "dstory[prep]"             # adds pandas for data-prep helpers
pip install "dstory[all]"              # everything

# After installing the [vet] extra, install Chromium:
playwright install chromium

Quick start: notebook, zero JavaScript

One cell, DataFrame to shippable HTML:

import pandas as pd
from dstory import build
from dstory.prep import to_long

df = pd.DataFrame({
    "month":   ["Jan", "Feb", "Mar", "Apr"],
    "Signups": [1000, 1500, 2900, 3400],
    "Churn":   [200, 240, 250, 260],
})

result = build({
    "meta": {"title": "Q1 Growth", "theme": "scientific-bright"},
    "scenes": [{
        "id": "scene-growth", "kind": "vizzu", "dataset": "metrics",
        "alt": "Animated bar-to-line sequence: signups more than tripled while churn stayed flat.",
        "series": [
            {"name": "month", "type": "dimension"},
            {"name": "variable", "type": "dimension"},
            {"name": "value", "type": "measure"},
        ],
        "frames": [
            {"headline": "Signups took off in March",
             # grouped bars: churn sits beside signups instead of hiding behind them
             "config": {"channels": {"x": ["month", "variable"], "y": "value", "color": "variable"},
                        "geometry": "rectangle"}},
            {"headline": "While churn barely moved",
             "config": {"channels": {"x": "month", "y": "value", "color": "variable"},
                        "geometry": "line"}},
        ],
    }],
    "datasets": {"metrics": to_long(df, id_vars="month")},
}, "q1-growth", vet=True)

result.html    # → q1-growth/dist/story.html — open it, scroll, the chart morphs
result.passed  # → True (the 5-dimension vet report)

With vet=True, build() runs the browser checks (does every chart paint, any console errors, screenshots) whenever Playwright and Chromium are installed, and warns when it can't. If that happens, result.report.skipped lists what wasn't checked. Run pip install "dstory[vet]" && playwright install chromium to get the full gate.

kind: "vizzu" scenes are fully declarative — frames animate between any chart configuration (bar → line → stacked → polar…, 40+ types; see references/vizzu-chart-gallery.md). No scene JS file exists for this story at all.

Zero-config: dstory draft

Skip the dict entirely. Point dstory at a data file and get a vetted story:

dstory draft mix.csv --theme warm-print --source "Power-mix shares"
#  -> mix/dist/story.html, vetted (browser checks too when Chromium is installed)

draft profiles the table (time, category and measure columns; wide tables are melted), picks scenes by rule, maps the columns onto cookbook recipes, and writes headlines, commentary and alt text from computed facts. Every number in that prose is a registered claim, so the vetter checks it against the data. Deterministic and offline: no model, no key. It reads CSV, TSV, JSON, Parquet and Excel; --mode slides, --vendor, --max-scenes and --no-vet work as elsewhere. The output is a normal project: edit mix/data.json, then dstory bundle mix.

Real exports are messy, and draft copes:

  • Numbers stored as text ("$1,200", "12%", "(300)") are read as numbers.
  • A stray typo or blank cell is dropped and named in explain() ((cleaned) sales: read as numbers; 1 non-numeric value dropped ('abc')), rather than aborting the draft.
  • Time columns are recognised from their values: "Jan 2024", "2024 Q1" or "Q1 2024", and evenly spaced years in a column with any name.

The same thing from Python, with a DataFrame:

import pandas as pd, dstory

df = pd.read_csv("mix.csv")                    # year, source, share_pct
d = dstory.draft(df, title="Gas took coal's place", theme="warm-print")
print(d.explain())
result = dstory.build(d.story, "mix", scenes=d.scenes, vet=True)
result.passed                                  # True

dstory.build(df, "mix")                        # or: a DataFrame straight in
Scenes:
  1. scene-trend: line-reveal over year x share_pct -- time series detected; share_pct is a share, compared in percentage points, so it follows the largest source in 2024 (Gas)
  2. scene-shift: slope-chart of source, 2014 vs 2024 -- category x first/last period (4 source values present in both)
  3. scene-race: bump-chart of source rank by share_pct -- the top source changed (Coal in 2014, Gas in 2024)
  4. scene-mix: waffle of source by share_pct in 2024 -- share_pct sums to ~100 per year
Claims (6), each checked by the vetter:
  c-trend: Gas share rose 16 points between 2014 and 2024
  c-shift: Coal share fell 24 points between 2014 and 2024, the biggest shift of any source
  ...

Rules today:

Data Scene
an additive measure over time, split by 2 to 7 categories an animated Vizzu opener: the total as stacked bars, which morph into one line per category as you scroll
time x measure line-reveal
3 to 8 categories over 4+ periods (when the opener didn't already split them) small-multiples, one panel per category ("Every metro peaked in 2021")
category x first/last period slope-chart, or range-dots past 7 categories, where slope labels collide
the top-ranked category changed over time bump-chart ("Gas overtook Coal to rank first by 2024")
shares summing to ~100 (or ~1) waffle
anything else one safe bar-steps scene

The prose follows newsroom conventions so a reader can't be misled:

  • Shares are compared in percentage points ("fell 24 points"), not relative percent.
  • Big multiples read as "rose 12-fold", not "rose 1100%".
  • A change across zero is described ("turned negative in 2023"), never given as a percent.
  • Daily dates read "on Jan 2, 2024".
  • Separate columns (Signups, Churn) are never summed into a total.
  • The opener only stacks when the total is real: no gaps, no negative values, and a measure that adds up.
  • A summed "Total" line covers only periods where every category reports. A missing or dropped cell never shows up as a fall. With fewer than 3 complete periods, the trend follows the largest category instead, and explain() names the gap.
  • Small-multiple panels share one scale, so heights compare. When the largest panel is 10x the smallest (or the columns are separate series), each panel gets its own labelled scale and the text says "compare shapes, not heights".

Vizzu loads WebAssembly from its CDN, so it can't be inlined. An offline build (--vendor, or build(df, vendor=True)) therefore keeps the D3 line chart instead of the opener. Pass --no-opener (opener=False) to always use the line chart.

The vetter enforces the same rules for hand-written claims:

  • unit: "pp" claims are checked as points. Build them with prep.compute_point_change().
  • "N-fold" is checked against the ratio.
  • A direction verb ("rose", "fell") must match the sign.
  • A percent fall beyond 100% fails.

d.story is a plain data.json dict, so edit it like one; d.to_project("mix") writes a normal project instead. Needs the [prep] extra (pip install "dstory[prep]"). See one CSV drafted in two themes.

The cookbook

When you want the bespoke-D3 look without writing D3 from scratch: 10 complete, themed, responsive scene renderers — see them rendered.

dstory recipes                                        # list: line-reveal, beeswarm, bump-chart, ...
dstory scene my-story scene-growth --from line-reveal # copy one in, wired and ready

A recipe is source code dropped into your project — edit it freely, it's yours. Each documents its dataset columns and scene.config options in the file header. All are theme-token driven and respect prefers-reduced-motion. There is still no BarChart() API and never will be: recipes are starting points, not abstractions.

Quick start (CLI)

# 1. Scaffold a project from one of the 8 bundled themes
dstory init my-story --theme editorial-noir --audience general-public

# 2. Add scenes: from the cookbook, a blank stub, or by hand
dstory scene my-story scene-trend --from line-reveal
#    ...then edit my-story/data.json (datasets, headlines, claims)

# 3. Preview while authoring
dstory preview my-story

# 4. Bundle to a single self-contained HTML file
dstory bundle my-story --vendor
# → my-story/dist/story.html  (--vendor inlines d3/scrollama/Motion: works offline)

# 5. Vet before delivery
dstory vet my-story/dist/story.html --data my-story/data.json

Other commands: dstory draft data.csv (a vetted story from a data file, zero config), dstory themes (the 8 brand presets), dstory theme my-story warm-print (re-theme a project), dstory upgrade my-story (bring a project's runtime up to date), dstory recipes (the cookbook), dstory --help.

Upgrading dstory upgrades your projects. A project keeps its own copy of story.js and story.css. After pip install -U dstory, the next dstory bundle replaces copies you never touched with the new version, so fixes reach stories you made months ago. A copy you edited is kept, and the bundle tells you so; dstory upgrade my-story --force replaces it after saving yours to .dstory-backup/. --no-upgrade on dstory bundle (or upgrade=False in bundle()) keeps everything as it is.

Claims that can't drift from the data

from dstory.prep import compute_ratio, compute_claim

ratio = compute_ratio(after=2900, before=1000)        # 2.9
claim = compute_claim(
    id="c1",
    text_template="Signups {phrase} in Q1",           # → "Signups tripled in Q1"
    value=ratio,
)

compute_claim() derives the phrase from the value using the same vocabulary and windows the vetter checks ("doubled"…"quintupled", "rose 12-fold" from 5.5×, "held steady" for no change, percentages otherwise; pass style="percent" for "increased by N%" throughout), so a claim built this way cannot fail data-fidelity vetting — and a hand-written claim that drifts from its value blocks the build: build() and dstory bundle refuse to write it (ClaimDriftError; opt out with check_claims=False / --no-check-claims). compute_ratio() and compute_pct_change() tag their result with its unit, and the claim records it ("unit": "ratio" or "pct"), so a 3.4× ratio is never printed as "3.4%" and a +2% change is never called "doubled". For a plain float, pass kind="ratio" or kind="pct". Both refuse a negative base (ValueError): dividing by a loss flips the direction, so a loss that tripled would read "tripled". Describe that change in units instead. compute_claim() likewise refuses a change across zero (100 to -50); write that text yourself ("turned negative"). The vetter fails a claim whose from has a negative base.

A claim is only as good as the words the reader sees, so the vetter also checks the prose around it. Give a claim a scene and every change that scene's headline, commentary, steps or alt text states must fit one of its claims: "doubled"…"quintupled", "N-fold", "5x", "three times over", "by a factor of ten", "multiplied by five", "fell by half", "rose by a third", a percent change with a direction ("rose 30%", "down 4%", "a 30% drop") and a change in points ("up 2 points"). Every way of saying "N times" shares one window, so "twofold", "2x" and "by a factor of two" mean exactly what "doubled" means. A hedge counts: "nearly doubled" fits 1.9, "more than quadrupled" fits 4.8, and "nearly doubled" at 2.3 still fails. The direction counts, so "Churn fell 30%" against a claim that churn rose 30% stops the build, as does editing the headline to "quintupled" and forgetting the claim. A bare figure with no direction ("12% of users", "made up 47%") is a level or a share, not a change, and is left alone. If a scene states a second change, register a claim for it too. A registered claim whose text appears in no reader-facing prose is flagged as well.

A claim can also say where its number comes from, so it can't go stale when the data changes. dstory draft records this on every claim it writes, and you can add it to your own with from_=:

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 dstory

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229