QVAC SDK v0.22.0
📦 NPM: https://www.npmjs.com/package/@qvac/sdk/v/0.22.0
QVAC SDK 0.22.0 sits on @qvac/[email protected]. assessModelFit now asks each engine's fitter instead of a shared coefficient table, a load can set modelFitPolicy for itself, and completions can issue parallel tool calls with nested JSON Schema still intact. MiniMax-H3 can start a video from a still, decide() answers typed Laya questions, and the catalog adds MOSS speech, Laya decisions, and Nemotron diarization. Native addons move onto fabric 0.22. Bundling needs Node ^22.21.0 || >=24.9.0.
The committed range is ^0.22.0. tetherto-qvac-sdk publishes at the same version.
Table of Contents
- Breaking Changes
- Node version for
qvac bundle/ bare-pack assessModelFituses engine fitters- Per-load
modelFitPolicy - Catalog constant names
- Split addons resolve
#host-addonfrom the consumer manifest - Cached turns send the full conversation
- Mobile addons need bare-link 4
- GPU backend selection on generated VLA configs
- Fabric 0.22 addon set
- Node version for
- New APIs
- Features
- Bug Fixes
- Model Changes
Breaking Changes
Node version for qvac bundle / bare-pack
bare-pack needs Node ^22.21.0 || >=24.9.0. Earlier 22.x (including 22.20.0) crashes the lexer. qvac doctor and qvac bundle sdk refuse those versions instead of native-crashing.
Before:
"engines": { "node": ">=18.0.0" }After:
"engines": { "node": "^22.21.0 || >=24.9.0" }assessModelFit uses engine fitters
Every candidate is assessed by the engine that would run it. The 'calibration' evidence class is gone, and so is estimate on the result and on each model. Under 'computed-only', floorBytes is the bound. A candidate the engine itself calls a fit can still come back likely-too-large: the interactive-v1 reserve applies on top of the engine's own headroom.
Before:
const result = await assessModelFit({ models })
result.evidence // 'calibration' | 'computed-only' | 'native-fit'
result.estimate // { lowerBoundBytes, upperBoundBytes }
result.models[0].estimate // sameAfter:
const result = await assessModelFit({ models })
result.evidence // 'computed-only' | 'native-fit'
result.floorBytes // bound under 'computed-only'Per-load modelFitPolicy
Skipping the fit probe was process-wide (QVAC_ADVISORY_MODEL_FIT=0) and also disabled the engine verdict for assessModelFit. The probe is now per load. 'log' (default) still runs it and never blocks. 'off' skips it for that load only. 'refuse' fails a load the engine projects will not fit.
Before:
// Skipping the fit probe was process-wide, and also disabled the engine
// verdict for assessModelFit.
QVAC_ADVISORY_MODEL_FIT = 0After:
import { loadModel } from '@qvac/sdk'
await loadModel({ modelSrc, modelType, modelFitPolicy: 'off' }){ "modelFitPolicy": "off" }await loadModel({
modelSrc: GPT_OSS_20B_INST_Q4_K_M,
modelConfig: { ctx_size: 131072, 'cache-type-k': 'f32', 'cache-type-v': 'f32' },
modelFitPolicy: 'refuse'
}){
"serve": {
"models": {
"big": { "model": "GPT_OSS_20B_INST_Q4_K_M", "modelFitPolicy": "refuse" }
}
}
}Catalog constant names
PARAKEET_TDT_MODEL is no longer a first-class catalog export. Load the GGUF constant instead.
Before:
import { PARAKEET_TDT_MODEL } from '@qvac/sdk'After:
import { loadModel, PARAKEET_TDT_0_6B_V3_F16 } from '@qvac/sdk'
await loadModel({ modelSrc: PARAKEET_TDT_0_6B_V3_F16 })Split addons resolve #host-addon from the consumer manifest
bare-link resolves DT_NEEDED replacements only from a package's own dependencies, so fabric platform packages must be declared on the native addon consumer (llm-llamacpp, embed-llamacpp, and the other engine addons), not on application manifests. require('@qvac/fabric/backends') is removed. A source-built fabric no longer serves its own prebuilds/<host>; run npm run link:platform to expose the build as node_modules/@qvac/fabric-<suffix>. bundle and verify accept both the previous and the current split-addon layouts.
Native consumers stop passing SUBDIR into qvac_addon_finalize and load backends through fabric:
Before:
qvac_addon_finalize(${addon} SUBDIR "${BACKENDS_SUBDIR_VALUE}")ggml_backend_load_all();After:
qvac_addon_finalize(${addon})#include <qvac-fabric.h>
qvac_fabric_load_backends();Cached turns send the full conversation
Named KV-cache completions send the whole history every turn. generationParams.remove_thinking_from_context is gone. A changed tool set on a named key reuses the same cache file, trimmed where it differs. A deleted attachment now fails later cached turns, as it does uncached. stats.promptTokens on a cached turn counts only the tokens processed that turn; reused cache tokens are excluded.
Before:
completion({
modelId,
history,
kvCache: 'chat',
generationParams: { remove_thinking_from_context: true }
})After:
completion({ modelId, history, kvCache: 'chat' })Mobile addons need bare-link 4
Mobile hosts that link split addons need react-native-bare-kit ^0.16.0.
Before:
{
"dependencies": {
"react-native-bare-kit": "^0.15.5"
}
}After:
{
"dependencies": {
"react-native-bare-kit": "^0.16.0"
}
}GPU backend selection on generated VLA configs
Generated Kotlin VLA load configs take a backend name string instead of the LoadModelSrcRequestGgmlVlaModelConfigBackend enum.
Before:
LoadModelSrcRequestGgmlVlaModelConfig(
backend = LoadModelSrcRequestGgmlVlaModelConfigBackend.CPU
)After:
LoadModelSrcRequestGgmlVlaModelConfig(backend = "cpu")Fabric 0.22 addon set
This cut ships the fabric 0.22 addon set. @qvac/ggml-rpc-server moves from ^0.1.2 (0.21.1) to ^0.5.1.
New APIs
Python client
tetherto-qvac-sdk now validates load_model the same way the JS client does. An addon that ships its own weights still sends the empty-string model_src the wire union requires. A model_config key the model type does not define is refused with REQUEST_VALIDATION_FAILED instead of being dropped.
from tetherto.qvac_sdk import load_model
from tetherto.qvac_sdk.errors import RequestValidationError
model_id = await load_model(transport, model_type="classification-ggml", model_config={})
try:
await load_model(
transport,
model_src=OCR_LATIN,
model_type="ggml-ocr",
model_config={"detectorModelSrc": OCR_CRAFT, "nope": 1},
)
except RequestValidationError as error:
print(error.code, error)Model fit
Where the engine reports a placement, assessModelFit now carries projection.devices: one row per device with name, totalBytes, freeBytes, weightsBytes, contextBytes, and computeBytes.
import { assessModelFit } from '@qvac/sdk'
const result = await assessModelFit({ models: [load] })
// projection.devices is present where the engine reports a placement per device
// [{ name: 'MTL0', totalBytes, freeBytes, weightsBytes, contextBytes, computeBytes }]OCR and translation loads go through their engine fitters, so a result can be 'native-fit' instead of a computed floor.
const result = await assessModelFit({
models: [
{
modelSrc: OCR_LATIN,
modelType: 'ggml-ocr',
modelConfig: { langList: ['en'], detectorModelSrc: OCR_CRAFT }
}
]
})
// result.evidence === 'native-fit'The resolved load, including LavaSR stage paths on TTS, is what the fitter sees. Diffusion video loads are projected instead of refused.
OCR GPU selection
OCR loads can pick a ggml backend and, on multi-GPU hosts, a dedicated or integrated device.
import { loadModel } from '@qvac/sdk'
const modelId = await loadModel({
modelSrc: OCR_LATIN,
modelType: 'ggml-ocr',
modelConfig: { langList: ['en'], backendDevice: 'vulkan', mainGpu: 'dedicated' }
})PCM-only bundles
decoder-audio 0.8.0 lets a bundle omit FFmpeg when the app only streams PCM. Set includeAudioDecoder to false in config.
{
"plugins": ["@qvac/sdk/whispercpp-transcription/plugin"],
"includeAudioDecoder": false
}Parallel tool calls
llama.cpp completions can return more than one tool call in a single response. Unset or false keeps one.
await completion({
modelId,
history,
tools,
generationParams: { parallel_tool_calls: true }
})Nested JSON Schema on tool parameters is kept, including arrays of objects and union types.
await completion({
modelId,
history,
tools: [
{
type: 'function',
name: 'plan_trip',
description: 'Plan a trip',
parameters: {
type: 'object',
properties: {
stops: {
type: 'array',
items: { type: 'object', properties: { name: { type: 'string' } } }
},
budget: { type: ['number', 'null'] }
},
required: ['stops']
}
}
]
})Past tool calls can be replayed as structured history: an assistant message with toolCalls, then a tool message with toolCallId and toolName.
await completion({
modelId,
history: [
{ role: 'user', content: 'Weather in Paris?' },
{
role: 'assistant',
content: '',
toolCalls: [{ id: 'call_1', name: 'get_weather', arguments: { city: 'Paris' } }]
},
{ role: 'tool', content: '18C', toolCallId: 'call_1', toolName: 'get_weather' }
],
tools
})MiniMax-H3 image-to-video
video() accepts mode: 'img2vid' with a first-frame init_image.
const firstFrame = fs.readFileSync('first-frame.png')
const { outputs } = video({
modelId,
mode: 'img2vid',
prompt: 'A sailboat glides across a calm bay.',
init_image: firstFrame,
width: 864,
height: 480,
video_frames: 22,
fps: 24,
cfg_scale: 1
})Vision image size cap
LLM vision loads accept 'image-max-megapixels' in modelConfig. Larger images are rejected from the header before decode. Default 50.
await loadModel({
modelSrc: SMOLVLM2_500M_MULTIMODAL_Q8_0,
modelConfig: {
projectionModelSrc: MMPROJ_SMOLVLM2_500M_MULTIMODAL_Q8_0,
'image-max-megapixels': 100
}
})Typed decisions
decide() answers typed questions (choice, score, or noul) about one state or a batch of states on a llamacpp-decision load. qvac serve can expose that as System One HTTP.
import { decide, loadModel, LAYA_MULTILINGUAL_322M_Q8_0 } from '@qvac/sdk'
const modelId = await loadModel({
modelSrc: LAYA_MULTILINGUAL_322M_Q8_0,
modelType: 'llamacpp-decision',
modelConfig: { device: 'cpu' }
})
const result = await decide({
modelId,
state: 'Please refund my duplicate payment.',
questions: { refund: { type: 'noul', instructions: 'A refund is requested.' } }
})MOSS ASR and Nemotron diarization
MOSS transcribe loads take transcriptionWorkload on assessModelFit (audioSeconds, optional hotwords) and can return speaker labels. Nemotron Sortformer diarization on a parakeet load returns overlapping speakerSegments with millisecond timestamps.
import { loadModel, transcribe, assessModelFit, MOSS_TRANSCRIBE_DIARIZE_Q8_0 } from '@qvac/sdk'
await assessModelFit({
models: [
{
modelSrc: MOSS_TRANSCRIBE_DIARIZE_Q8_0,
transcriptionWorkload: { audioSeconds: 300, hotwords: ['Erin'] }
}
]
})
const moss = await loadModel({ modelSrc: MOSS_TRANSCRIBE_DIARIZE_Q8_0 })
await transcribe({
modelId: moss,
audioChunk: 'meeting.wav',
metadata: true,
hotwords: ['Erin']
})
const nemotron = await loadModel({
modelSrc: './nemotron-diarization.gguf',
modelType: 'parakeet-transcription'
})
const segments = await transcribe({
modelId: nemotron,
audioChunk: 'meeting.wav',
metadata: true
})
// segments[].speakerSegments: { speakerId, startMs, endMs }[], preserving overlap.MOSS TTS 0.11 engines
tts-ggml 0.11 adds moss-sfx (sound effects) and moss-speech. Sound-effect runs take seconds and steps.
import { loadModel, textToSpeech, AUDIOGEN_MOSS_SFX_V2_Q8_0 } from '@qvac/sdk'
const modelId = await loadModel({
modelSrc: AUDIOGEN_MOSS_SFX_V2_Q8_0.src,
modelType: 'tts-ggml',
modelConfig: { ttsEngine: 'moss-sfx', useGPU: true }
})
const run = textToSpeech({
modelId,
text: 'Heavy rain falling on a tin roof.',
stream: false,
seconds: 2,
steps: 20
})
const samples = await run.buffer
const sampleRate = await run.sampleRateAudioGen 0.6.0
MiniMax audiogen can be assessed before load and fails the load instead of falling back to CPU. ACE-Step runs accept per-run shift and return render metadata on stats. Edits take a timbre referenceAudio plus prompt metadata. audioUnderstand exposes the decoded seed.
const fit = await assessModelFit({
models: [
{
modelType: 'audiogen',
modelConfig: { engine: 'minimax', lmModelSrc, synthModelSrc, device: 'gpu' }
}
]
})
const run = audioGen({
modelId,
caption: 'a rainy-day lo-fi loop',
simpleMode: true,
shift: 1.5
})
const rendered = (await run.stats)?.metadata
const edit = audioEdit({
modelId,
sourceAudio,
operations,
referenceAudio,
bpm: 120,
keyscale: 'C minor'
})
const { seed } = await audioUnderstand({ modelId, sourceAudio }).descriptionGPU backend selection for LLM, embeddings, and VLA
LLM, embedding, and VLA loads can name an ordered GPU backend list. Unset uses the native default order. Use device: 'cpu' for CPU.
import { loadModel, ModelType } from '@qvac/sdk'
const modelId = await loadModel({
modelType: ModelType.llamacppCompletion,
modelSrc: '/models/llm.gguf',
modelConfig: { backend: 'cuda,vulkan' }
})Features
The engine fitter now sees the same resolved load loadModel would run, including LavaSR enhancer and denoiser paths on TTS. Diffusion video is projected instead of refused up front.
Bug Fixes
safe-fetch calls the http and https request paths separately, so mixed-scheme downloads no longer share one handler.
Concurrent assessModelFit / loadModel probes await the engine fitter and share in-flight fit markers. Both probes still run; a .running marker this process holds is not treated as a crash.
Python and Kotlin JVM workers authenticate on loopback TCP IPC. A worker whose @qvac/sdk package.json does not declare "qvacIpcAuthentication": "token-v1" is refused.
Model Changes
Added
AUDIOGEN_MOSS_SFX_V2_F16
AUDIOGEN_MOSS_SFX_V2_Q8_0
LAYA_421M_F16
LAYA_421M_Q8_0
LAYA_MULTILINGUAL_322M_F16
LAYA_MULTILINGUAL_322M_Q8_0
LAYA_TYPED_DECISIONS_421M_F16
LAYA_TYPED_DECISIONS_421M_Q8_0
MOSS_TRANSCRIBE_DIARIZE_F16
MOSS_TRANSCRIBE_DIARIZE_Q5_0
MOSS_TRANSCRIBE_DIARIZE_Q8_0
PARAKEET_NEMOTRON_3_DIARIZATION_Q8_0
TTS_CODEC_MOSS_SPEECH_F16
TTS_DIALOGUE_MULTILINGUAL_MOSS_TTSD_F16
TTS_MOSS_SPEECH_BF16
TTS_MOSS_SPEECH_Q8_0Removed
PARAKEET_TDT_MODELThe Python client for QVAC: local-first, P2P AI inference (LLM completion,
embeddings, transcription, TTS, OCR, translation, diffusion, audio generation,
VLA, …) through the same worker and the same contract as the TypeScript
@qvac/sdk. Asyncio-native.
The package version tracks the @qvac/sdk version it speaks (e.g. 0.15.0), so
a given python-sdk release makes clear exactly which SDK it targets.
Install
The fastest path is a self-contained install — one command, no separate
worker, no Node.js. It pulls a per-platform wheel that bundles the QVAC worker
(the @qvac/sdk runtime) and the Bare runtime, from the matching GitHub
release (these wheels are far too large for PyPI, so they live as release
assets):
# Replace <version> with the release you want, e.g. sdk-v0.17.0:
pip install tetherto-qvac-sdk \
-f https://github.com/tetherto/qvac/releases/expanded_assets/sdk-v<version>pip selects the bundled wheel for your platform and pulls the pure-Python deps
(pydantic, bare-rpc, compact-encoding) from PyPI. Then
async with Client() as client: ... just works — the bundled worker is found
automatically, zero configuration. Optional extras: vla (numpy),
notebook (numpy + pandas).
Bundled wheels ship for darwin-arm64, linux-x64, linux-arm64, win32-x64. On any other platform pip falls back to the thin wheel below.
Thin install (any platform)
If there's no bundled wheel for your platform, or you'd rather run a shared system worker, install the thin client from PyPI and provide the worker separately:
pip install tetherto-qvac-sdkThen install the worker once (either route needs Node.js):
# via Python — fetches the exact worker version this package speaks and caches
# it under ~/.cache/qvac/worker/<version>:
python -m tetherto.qvac_sdk install-worker
# or via npm — install the @qvac/sdk version that MATCHES this package (they
# share a version; Client() warns on a mismatch):
npm install -g @qvac/sdk@<your tetherto-qvac-sdk version>Client() then finds the worker automatically (see "Worker resolution" below
for the full lookup order, including pointing QVAC_SDK_DIR at a locally-built
@qvac/sdk for development). The Python route pins the worker to the exact
version this package was generated against, so you never track it yourself.
Upgrading
To upgrade and keep the bundled worker, re-run the install with -f
pointing at the new release tag:
pip install -U tetherto-qvac-sdk \
-f https://github.com/tetherto/qvac/releases/expanded_assets/sdk-v<newversion>A plain pip install -U tetherto-qvac-sdk (no -f, or a stale tag) upgrades to
the thin PyPI wheel: pip applies no priority between locations and just
takes the highest version it can see, which on PyPI is the py3-none-any
wheel — you'd then need install-worker. To switch an already-installed thin
build to the bundled wheel at the same version, add --force-reinstall
(pip treats a version as satisfied regardless of which wheel is installed).
Quickstart
import asyncio
from tetherto.qvac_sdk import Client, load_model, completion, unload_model
from tetherto.qvac_sdk.models import LLAMA_3_2_1B_INST_Q4_0
async def main():
async with Client() as client:
t = client.transport
model_id = await load_model(t, model_src=LLAMA_3_2_1B_INST_Q4_0)
run = completion(
t,
model_id=model_id,
history=[{"role": "user", "content": "Explain quantum computing in one sentence"}],
)
async for event in run.events:
if event.type == "contentDelta":
print(event.text, end="", flush=True)
print()
await unload_model(t, model_id)
asyncio.run(main())More in examples/ — one runnable example per major capability
(completion events / tools / worker-orchestrated tools, cancel, embeddings,
translation, transcription, TTS, OCR, audio generation, registry queries, model
info, logging, VLA, plugins), mirroring packages/sdk/examples.
The public API (tetherto.qvac_sdk)
Everything you normally need is re-exported flat from tetherto.qvac_sdk; model constants
live in tetherto.qvac_sdk.models.
Client— starts/owns a worker connection;client.transportis passed to every call.- Ergonomic wrappers (kwargs + typed results):
load_model,unload_model,completion,translate,cancel,delete_cache,invoke_plugin/invoke_plugin_stream,model_registry_list/_search/_get_model. (Tool calling iscompletion(tools=...); the worker-orchestrated loop is an advanced path attetherto.qvac_sdk._completion.completion_orchestrate, not flat-public.) - Result types:
CompletionRun(.events,.final),CompletionFinal,ToolCall,TranslateRun. - Generated method stubs for every other contract method (
embed,transcribe,text_to_speech,ocr_stream,audio_gen_stream,audio_edit_stream,diffusion_stream,classify,get_model_info,download_asset, …), each taking a typed request model. - Request/response models + enums (
LoadModelRequest,ModelType, …), also available in full fromtetherto.qvac_sdk.schemas. - Errors (
QvacError,RPCError,InferenceCancelledError,ContextOverflowError, …) forexcept/isinstance. - Logging:
logging_stream,subscribe_server_logs,SDK_LOG_ID,SDK_ALL_LOG_ID. VLA:vla,vla_hparams,vla_preprocess_image,vla_pad_state. - Notebook facade:
tetherto.qvac_sdk.notebook.SyncClient— synchronous, numpy/pandas returns, live in-cell streaming.
The raw generated method stubs are also in tetherto.qvac_sdk.methods, and the pydantic
models in tetherto.qvac_sdk.schemas, if you prefer the explicit modules.
Audio generation currently uses the raw audio_gen_stream stub rather than an
ergonomic Python audio_gen() wrapper. Build an AudioGenStreamRequest, iterate
the progress and base64 PCM frames, and assemble the output audio. See
examples/audiogen.py. Source-driven editing
(audio_edit_stream with an AudioEditStreamRequest carrying the ordered
flow-edit / repaint operations) streams the same frame shape.
Intentional divergences from @qvac/sdk
Two top-level JS/TS facades are deliberately not ported; Python uses the ecosystem equivalent instead.
getLogger— use the standard libraryloggingmodule. Alogging.Handleris theLogTransportequivalent, and the log-stream surface that has no stdlib counterpart (logging_stream,subscribe_server_logs,SDK_LOG_ID,SDK_ALL_LOG_ID) is already exported above.profiler(process-wide aggregation +exportTable/exportJSON) — use the per-callprofiled_calland the__profilingenvelope helpers intetherto.qvac_sdk.profiling, aggregating the returnedProfilingReports yourself. The global profiler is not a Client-API capability and would only collect useful data after instrumenting the full streaming client.
Notebook / data science
For notebooks and REPLs, tetherto.qvac_sdk.notebook.SyncClient runs the async
client on a background thread so every call is plain and blocking (no await),
with numpy/pandas returns and live in-cell streaming. Needs the notebook
extra (pip install "tetherto-qvac-sdk[notebook]"):
from tetherto.qvac_sdk.notebook import SyncClient
from tetherto.qvac_sdk.models import EMBEDDINGGEMMA_300M_Q4_0
with SyncClient() as client:
m = client.load_model(model_src=EMBEDDINGGEMMA_300M_Q4_0)
vec = client.embed(m, "hello") # 1-D numpy array
df = client.embed_frame(m, ["a", "b", "c"]) # pandas DataFrame, indexed by textembed returns numpy arrays, embed_frame a DataFrame, completion streams
live and returns the text, and transcribe/text_to_speech round-trip audio
as numpy. Full examples: examples/notebook.ipynb
(Jupyter) and examples/notebook.py (script).
Configuring the SDK
Client(config=...) (and BareRpcTransport(config=...)) sends an SDK
config to the worker on connect — the same QvacConfig the TypeScript client
applies (cacheDirectory, loggerLevel, swarmRelays, per-device plugin
defaults, …):
async with Client(config={"cacheDirectory": "/data/qvac-models", "loggerLevel": "warn"}) as client:
...cacheDirectory (must be absolute) relocates where models are stored — handy
for a shared/mounted cache. As a shortcut, the QVAC_CACHE_DIR env var sets
cacheDirectory without code (used by CI to point at a warm model cache).
Worker resolution
Client() locates a worker by trying, in order: explicit worker_path /
bare_path (or QVAC_WORKER_PATH / QVAC_BARE_PATH); a self-contained
bundled wheel (tetherto/qvac_sdk/_bundle/, zero config); sdk_dir / QVAC_SDK_DIR
pointing at an installed @qvac/sdk; a worker fetched by python -m tetherto.qvac_sdk install-worker (into ~/.cache/qvac/worker/<version>, overridable with
QVAC_WORKER_HOME); then a global npm install -g @qvac/sdk. The fetched
worker is version-locked to this package.
Staying in sync with @qvac/sdk (drift avoidance)
The rule: generate what can be generated; put un-generatable behaviour in the worker; hand-write per language only what is irreducibly client-side, and never trust it to match — guard it.
- Generated from the one contract. The pydantic models + typed method stubs,
the model-type resolution maps (
_generated/model_type_maps.py), the error-code registries (_generated/error_codes.py), and the pinned SDK version (_generated/sdk_version.py) are all generated from../sdk/contract/**.generate.py --check(and the SDK'scontract:check) fail CI if either side drifts. - Behaviour lives in the worker.
translatesource-language detection and the completion tool-loop (completionOrchestrate) run in the worker, so Python and JS share one implementation instead of two that diverge (they did: Python once usedlingua, JS@qvac/langdetect-text). - Version lock-step. This package's version is the
@qvac/sdkversion it was generated against. - Conformance corpus.
../sdk/e2e/conformance/cases.jsonis run by both a JS runner andtests/test_conformance.py, so the two clients are diffed against the same cases.
The irreducibly-client-side code (typed error classes, numpy marshaling, stream assembly, the notebook facade) is the only hand-written surface mirroring the JS client, and it's covered by the conformance corpus + real-worker tests rather than trusted to match.
Development
python3 -m venv .venv
.venv/bin/pip install -e ".[gen,dev]"
.venv/bin/python3 scripts/generate.py # regenerate from ../sdk/contract
.venv/bin/python3 -m pytest # unit + (with a built worker) real-model e2eFormat, lint, typecheck, and the generation check (all run in CI):
.venv/bin/python3 scripts/generate.py --check
.venv/bin/python3 -m black --check src/tetherto/qvac_sdk scripts/ tests/
.venv/bin/python3 -m ruff check src/tetherto/qvac_sdk scripts/ tests/
.venv/bin/python3 -m mypy -p tetherto.qvac_sdk && .venv/bin/python3 -m mypy scripts testsReal-model tests spawn a worker (packages/sdk built via npm run build, or
QVAC_POC_SDK_DIR) and otherwise skip. generate.py runs black + ruff --fix --select I (with the package config) on its own output, so a fresh
regeneration already passes the checks above.
Stay updated
Never miss a release
New versions, breaking changes and migration notes - straight to your inbox. No spam, unsubscribe anytime.