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.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 vsstubs 3.0.0
File Size Uploaded
vsstubs-3.0.0.tar.gz 36.3 kB Details

Built distribution (wheel)

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

Total release size: 67.6 kB

Release files / vsstubs-3.0.0.tar.gz

Download URL vsstubs-3.0.0.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7f1fd82cc279bad8ba48554cc0e13e6ef93b0d3ba28560331c3d666b75316c74
BLAKE2b-256 checksum
How to use checksums
a8c19dcaeb58a4ac43263ba7b445ee165a24d38ee4b881014cc247d0ed32dc18
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.0-py3-none-any.whl

Download URL vsstubs-3.0.0-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53f1601b1850364fa61a8af40e67908d3e01b2f79642404f8f4cbcb3d7ae4fdc
BLAKE2b-256 checksum
How to use checksums
f19dddebd6011e6e3b47d5d0810370544fb4b2afcfcab69d0fd806b1e0ada40f
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

3.0.1

2 release files

This release

3.0.0 This release

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