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)
--wheelbuilds an installablevapoursynth-stubswheel instead of writing a.pyifile 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
--outputwith--wheelto choose the directory where the wheel should be built:vsstubs --wheel --output dist
When
--wheelis enabled,--outputmust be a directory path. The special output values@and-are only for direct.pyioutput 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
Add command
Check command
Plugins command
Remove command
Update command
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)
| File | Size | Uploaded | |
|---|---|---|---|
| vsstubs-3.0.1.tar.gz | 36.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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