vst-audio
Python bindings for vst-audio, a Rust library that hosts VST2 and VST3 plugins in separate worker processes. Scanning also runs outside Python. No audio device is opened.
Installation
pip install vst-audio
Requires Python 3.9 or newer and NumPy. Functional native wheels contain a worker for their platform; the earlier 0.0.1 package was a name reservation and does not host plugins. This implementation targets Windows, Linux and macOS. Native execution has currently been verified on Windows x64 only. Use plugins built for the same architecture as the packaged worker.
import numpy as np, vst_audio
host = vst_audio.Host()
with host.load("Plugin.vst3", sample_rate=48000, block_size=512) as plugin:
out = plugin.process(np.zeros((plugin.input_channels, 48000), np.float32))
Host() first checks VST_AUDIO_WORKER, then the package's _worker/
directory. An invalid explicit environment override raises WorkerNotFoundError
rather than silently running a different worker. You can also pass an executable
path directly with Host(worker=...). Plugins are never bundled.
Supported operations
- Scan VST2 or VST3 classes, optionally in an OS sandbox (
sandboxed=True). - Load one plugin per worker with a sample rate, block size and f32/f64 precision. The plugin must support the requested precision; there is no implicit conversion.
- Select a VST3 class using
class_id=host.scan(path)[index].id. - Render planar NumPy arrays, including C-order and Fortran-order arrays, and
request a silent input tail with
process(audio, tail=frames). - List immutable parameter snapshots, set normalized values, and save or restore opaque state bytes.
- Open and close a worker-owned floating editor. A usable desktop session is required; opening an editor does not start audio playback.
- Close explicitly or use a context manager.
close()is idempotent and requests asynchronous worker teardown. Do not rely on garbage collection for cleanup.
The input has shape (input_channels, frames) and dtype numpy.float32 for
sample_format="f32" or numpy.float64 for "f64". The returned array has shape
(output_channels, frames + tail) and the same dtype. The renderer zero-pads the
last block and removes pipeline and reported plugin latency. Priming has no
samples, but counts as pipeline time so it is not trimmed twice. A zero-length
input with tail=0 returns an empty output without processing a block.
Rendering releases the GIL and waits losslessly for each block, with timeout
in seconds per block. Control methods also release the GIL while waiting;
parameter enumeration uses one timeout for all pages. The input is copied before
releasing the GIL, so another Python thread cannot change the render in progress.
Block buffers are reused throughout the render. Each process call flushes
silence through the latency and rounds to whole blocks; it is an offline render,
not a gapless streaming callback. Plugin state is retained between calls.
Use a fresh instance for independent renders that require fresh DSP state.
Plugin.latency reports the plugin's latency in frames, excluding the pipeline.
The endpoint refreshes this value at block boundaries. Latency is sampled at the
first block of each render; plugins that change latency during a render are not
supported for sample-accurate alignment. Use a plugin only on its creating thread.
Errors
All hosting errors derive from VstAudioError:
WorkerNotFoundError: no worker at the configured or bundled location.StartError: startup or request submission failed.kindis the snake_case RustStartErrorKindname. An expired load timeout cancels startup and haskind="cancelled".RenderError:kindisinvalid_buffer,not_running,recovered,timed_out, orlost. No partial render is returned.RequestTimeout: a matching control reply did not arrive in time.
A worker-reported control rejection raises VstAudioError with its diagnostic.
Wrong dtype raises TypeError; wrong array shape or invalid format raises
ValueError. Unrelated control events are retained internally, but this first
API does not expose an event stream. After a failed render, close the instance
and load again rather than treating the failed call as a completed render.
Not exposed in this first API
No realtime audio-device callback, MIDI/SysEx, sample-offset automation, transport control, bus configuration, editor embedding, recovery control, async Python API or cross-architecture worker registry is provided. Floating editor support comes from the Rust worker, not a Python GUI toolkit.
Building and testing from the repository
Build tooling requires Rust, Python 3.11+ and platform-native build dependencies.
The installed package itself supports Python 3.9+. From bindings/python:
python stage_worker.py
python -m pip install .
python run_tests.py
stage_worker.py builds a locked release worker and stages its redistribution
notices. --worker PATH uses an existing executable (or a macOS .app bundle)
instead. On macOS the helper bundle receives an ad-hoc hardened-runtime signature;
distributors remain responsible for signing and notarization.
run_tests.py builds the repository fixtures, stages a release worker, creates
a fresh target/python-venv, builds and installs a wheel, then runs pytest against
that installed wheel. It verifies bundled-worker resolution as well as the
environment override. The Matrix fixtures verify exact f32 matrix output and
64-frame latency compensation. Their f64 rejection is intentional; separate
advanced fixtures verify f64 synthesis silence and a nonzero f64 VST3 effect.
Linux and macOS execution, editor interaction, Python 3.9 and multi-page native
parameter enumeration still need platform or fixture coverage.
VST is a registered trademark of Steinberg Media Technologies GmbH. This project is independent of Steinberg and is not endorsed by it.
Metadata
Release files for vst-audio 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| vst_audio-0.1.0-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details for vst_audio-0.1.0-cp39-abi3-win_amd64.whl |
| vst_audio-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.28+ x86-64 | Details for vst_audio-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl |
| vst_audio-0.1.0-cp39-abi3-macosx_11_0_x86_64.whl | CPython 3.9 | abi3 | macOS 11.0+ x86-64 | Details for vst_audio-0.1.0-cp39-abi3-macosx_11_0_x86_64.whl |
| vst_audio-0.1.0-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details for vst_audio-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
Total release size: 5.4 MB
Release files / vst_audio-0.1.0-cp39-abi3-win_amd64.whl
| Download URL | vst_audio-0.1.0-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1d5ca4a947bfd4fc852116cf0e53566d6ccb60fe00308e93157d6d2191cab21a
|
|
BLAKE2b-256 checksum How to use checksums |
d46b2d21f596b5c6153c266cb3d6b78359a215aaec86e776ec09efa420780bff
|
| 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 4, 2026.
Transparency logRelease files / vst_audio-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
| Download URL | vst_audio-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a61fb0428ee21791b9c6af933e37ec02ad11d92ff08e877167bdddcf09329392
|
|
BLAKE2b-256 checksum How to use checksums |
b029e7a5d0746c717e572cc54debb4ebf7bf478df0b14a0a7e3013620c5b5e1a
|
| 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 4, 2026.
Transparency logRelease files / vst_audio-0.1.0-cp39-abi3-macosx_11_0_x86_64.whl
| Download URL | vst_audio-0.1.0-cp39-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
2fe56c2882a02837dade1f71000aec716f57288fcb0735acd863d0c6e93ca470
|
|
BLAKE2b-256 checksum How to use checksums |
6f57e7bb4c2afd190d2e2c04abfe2a2d28b8c0197bfd7c1776b8c69fa757bf40
|
| 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 4, 2026.
Transparency logRelease files / vst_audio-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | vst_audio-0.1.0-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aa0d862d9a1ad0e67d5234539f795be6a7bf5c73314c5cca6a3d62f1900a8d32
|
|
BLAKE2b-256 checksum How to use checksums |
a9c9f6ba209f8c77a5e8ef6f0fcb66d5872ec4d9dffeb238d391dd75642963e9
|
| 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 4, 2026.
Transparency logSecurity for vst-audio 0.1.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 4 files in this release have been uploaded with provenance metadata.
Attestation for vst_audio-0.1.0-cp39-abi3-win_amd64.whl
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 4, 2026.
Transparency logA 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.