Skip to main content

vs-stubs

Typing stubs for VapourSynth

vs-stubs provides Python type stubs for VapourSynth plugins and core functions. This helps editors, IDEs, and static type checkers (e.g. mypy, pyright) understand VapourSynth's API.

Due to the dynamic nature of VapourSynth's plugin system, any newly installed plugins are not automatically reflected in the stubs. When adding plugins, you will need to regenerate stubs to keep the type information accurate and in sync with your environment.

Note that vs-stubs does not include or install any actual VapourSynth plugins. Only their type definitions.


Installation

pip install vsstubs

Usage

You can use vsstubs via the command line or as a Python module.

Command Line

  • Simply update the VapourSynth stubs:

    vsstubs
    
  • Installing from the wheel output for a proper installation:

    pip install $(vsstubs --wheel)
    

    --wheel builds an installable vapoursynth-stubs wheel instead of writing a .pyi file directly.

    By default, the wheel is created in a temporary directory and the wheel path is printed to stdout, which lets shells pass it straight to pip install.

    Use --output with --wheel to choose the directory where the wheel should be built:

    vsstubs --wheel --output dist
    

    When --wheel is enabled, --output must be a directory path. The special output values @ and - are only for direct .pyi output and cannot be used with wheel output.

  • Generate a template stubs:

    vsstubs -o out.pyi --template
    
  • Add plugin stubs:

    vsstubs -i out.pyi -o @ add resize2
    
  • Remove plugin stubs (On Powershell you will need to escape the @ character):

    vsstubs -i out.pyi -o "@" remove resize2
    

Python API

from vsstubs import output_stubs

# Example usage
output_stubs(None, "output.pyi", template=True)

CLI Reference

vsstubs

Add command

vsstubs add --help

Check command

vsstubs check --help

Plugins command

vsstubs plugins --help

Remove command

vsstubs remove --help

Update command

vsstubs update --help

Release files for vsstubs 3.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 vsstubs 3.0.1
File Size Uploaded
vsstubs-3.0.1.tar.gz 36.4 kB Details

Built distribution (wheel)

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

Total release size: 67.7 kB

Release files / vsstubs-3.0.1.tar.gz

Download URL vsstubs-3.0.1.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8b58707d0db28d4e0e8f2611cefcc184160bd3a7b590c882db864c9f93975927
BLAKE2b-256 checksum
How to use checksums
9de68b2a2d653b6b4b4736a234d9d692ed5a54a0319caa5a017330bc54146022
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 Sep 25, 2026.

Transparency log

Release files / vsstubs-3.0.1-py3-none-any.whl

Download URL vsstubs-3.0.1-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d39ea28957c65cf0328680b8a6b136a6f3b59c50c835876a69d18267c500b8d1
BLAKE2b-256 checksum
How to use checksums
84dcd72eae98e521b6d80d298c6d72ebcf9e81c9e06e0f71dcefca4246d3b236
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 Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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