Skip to main content

vsgraph

VapourSynth plugin (Rust) and typed Python API for inspecting filter graphs.

Walks the dependency graph of a VideoNode or AudioNode and returns typed dataclasses describing every node (filter name, filter mode, media info, processing time, creation call stack) and edge (request pattern).

Graphs can be exported to Mermaid, Graphviz DOT, ASCII, Cytoscape.js or JSON.

Requirements

  • Python ≥ 3.12
  • VapourSynth ≥ R79 (API 4.2 or 4.3)
  • The core must be created with vs.CoreCreationFlags.ENABLE_GRAPH_INSPECTION

Installation

pip install vsgraph

The wheel ships the native graph plugin, which VapourSynth autoloads.

Usage

import vapoursynth as vs
from vsgraph import get_graph

core = vs.core
vs._try_enable_introspection(0)

clip = core.std.BlankClip(width=1920, height=1080, format=vs.YUV420P8)
clip = core.resize.Bicubic(clip, width=1280, height=720)

graph = get_graph(clip)

print(graph.root.name, graph.root.media_info.fps)
print(graph.to_ascii())

for node in graph.get_dependencies(graph.root):
    print(node.name, node.filter_mode, f"{node.processing_time_ms:.2f} ms")

Exports

Method Output
Graph.to_mermaid() Mermaid flowchart
Graph.to_dot() Graphviz DOT
Graph.to_ascii() Tree view
Graph.to_cytoscape() Cytoscape.js elements dict
Graph.to_json() JSON string

The raw plugin functions are also available as core.graph.VideoGraph(clip, pretty) and core.graph.AudioGraph(clip, pretty), both returning a JSON string.

Development

Requires a Rust toolchain and uv.

uv sync --no-editable
uv run pytest

Metadata

Release files for vapoursynth-graph 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 vapoursynth-graph 1.0.0
File Size Uploaded Provenance Actions
vapoursynth_graph-1.0.0.tar.gz 38.5 kB With provenance Details for vapoursynth_graph-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-graph 1.0.0
File Actions
vapoursynth_graph-1.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for vapoursynth_graph-1.0.0-py3-none-win_amd64.whl
vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_x86_64.whl
vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_aarch64.whl
vapoursynth_graph-1.0.0-py3-none-macosx_13_0_x86_64.whl Python 3 none macOS 13.0+ x86-64 Details for vapoursynth_graph-1.0.0-py3-none-macosx_13_0_x86_64.whl
vapoursynth_graph-1.0.0-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for vapoursynth_graph-1.0.0-py3-none-macosx_13_0_arm64.whl

Total release size: 1.7 MB

Release files / vapoursynth_graph-1.0.0.tar.gz

Download URL vapoursynth_graph-1.0.0.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ebba5d983e3f93b7c75c52256e6323193faa33fadc1a7b806211c169a2313124
BLAKE2b-256 checksum
How to use checksums
f5cf73b82ef15570a196eb751fa1a20acca7c4da138a5026936cd488bcd1ab74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / vapoursynth_graph-1.0.0-py3-none-win_amd64.whl

Download URL vapoursynth_graph-1.0.0-py3-none-win_amd64.whl
Size 319.1 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d9cbdc473c81fbbb7ecd3e4c8eccdf0a9c57b129200f2384af1f235457dd69ea
BLAKE2b-256 checksum
How to use checksums
4da985ac2e931b14fcc806d59f157f7aebe36f0daf8c08be3b258e67ce5df874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_x86_64.whl

Download URL vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 580.0 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ced028e9b69841973709236ed74324c44dd5566725bca39479cc5ffd3d2b93c1
BLAKE2b-256 checksum
How to use checksums
439f3882653ce872d5d5a39340f67a5bd0a80e989694db6124ab111d126a81f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_aarch64.whl

Download URL vapoursynth_graph-1.0.0-py3-none-manylinux_2_28_aarch64.whl
Size 195.5 kB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
06b62cae643c9477718dcdcc36f3e274bc74ed779bb9d41be631786696f9de56
BLAKE2b-256 checksum
How to use checksums
9e9688ff3df70563e25e537a2da1f1d230856a2076bf6db4686dc0f0db79ae7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / vapoursynth_graph-1.0.0-py3-none-macosx_13_0_x86_64.whl

Download URL vapoursynth_graph-1.0.0-py3-none-macosx_13_0_x86_64.whl
Size 383.6 kB
Tags Python 3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
d5083f92526341c612eb2c87726a35c88f92169b4dd6b419c47cb2eff67a6c12
BLAKE2b-256 checksum
How to use checksums
b50bb0e7eabe38d3c4feb8ce8550b91cdc005ab517a5ac6d06076979fcb75fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / vapoursynth_graph-1.0.0-py3-none-macosx_13_0_arm64.whl

Download URL vapoursynth_graph-1.0.0-py3-none-macosx_13_0_arm64.whl
Size 190.4 kB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
7f4553f840cca0caee3ffdb9b8c2ba3ec8a413cdd6c68afe3b7c1f4e85029d3b
BLAKE2b-256 checksum
How to use checksums
ba91394b6842f24edba4ca54158e0ad7fa6880313f126d56a2ef4b23aa91ea26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for vapoursynth-graph 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.

Full provenance

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

Select from 6 files

Attestation for vapoursynth_graph-1.0.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 Nov 2, 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