qvac-sdk
Python SDK for Tether QVAC — local-first AI inference on any device.
QVAC runs AI models entirely on-device with no cloud dependency. This SDK provides a Pythonic interface to QVAC's inference capabilities: LLM completions, image generation, speech-to-text, translation, TTS, OCR, and embeddings.
Installation
pip install qvac-sdk
With OpenAI-compatible client support:
pip install qvac-sdk[openai]
Quick start
Direct API
from qvac_sdk import QVACClient
client = QVACClient() # connects to local QVAC instance
# LLM completion
response = client.complete("Explain quantum computing in one paragraph")
print(response.text)
# Streaming
for chunk in client.complete_stream("Write a haiku about edge AI"):
print(chunk.text, end="")
Async
from qvac_sdk import AsyncQVACClient
async def main():
client = AsyncQVACClient()
response = await client.complete("Hello from async Python")
print(response.text)
OpenAI-compatible mode
QVAC exposes an OpenAI-compatible API via qvac serve openai. This SDK wraps it natively:
from qvac_sdk.openai_compat import QVACOpenAI
client = QVACOpenAI() # points to local QVAC OpenAI endpoint
response = client.chat.completions.create(
model="local",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
Speech-to-text
transcript = client.transcribe("meeting.wav")
print(transcript.text)
Image generation
image = client.generate_image("A cat riding a bicycle", width=512, height=512)
image.save("cat.png")
Embeddings
vectors = client.embed(["sentence one", "sentence two"])
print(vectors.shape) # (2, 384)
Configuration
client = QVACClient(
base_url="http://localhost:8080", # QVAC instance URL
timeout=30.0, # request timeout in seconds
model="default", # model name override
)
Environment variables:
| Variable | Default | Description |
|---|---|---|
QVAC_BASE_URL |
http://localhost:8080 |
QVAC API endpoint |
QVAC_TIMEOUT |
30.0 |
Request timeout (seconds) |
QVAC_MODEL |
default |
Default model name |
Supported capabilities
| Capability | Method | Status |
|---|---|---|
| LLM completion | complete() / complete_stream() |
Planned |
| Chat (multi-turn) | chat() / chat_stream() |
Planned |
| Speech-to-text | transcribe() |
Planned |
| Translation | translate() |
Planned |
| Text-to-speech | speak() |
Planned |
| Image generation | generate_image() |
Planned |
| OCR | ocr() |
Planned |
| Embeddings | embed() |
Planned |
| LoRA fine-tuning | finetune() |
Planned |
| OpenAI compat | qvac_sdk.openai_compat |
Planned |
Development
git clone https://github.com/kinance/qvac-sdk
cd qvac-sdk
pip install -e ".[dev]"
ruff check .
mypy src/
pytest
License
Apache 2.0 — same as QVAC.
Metadata
Release files for qvac-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qvac_sdk-0.1.0.tar.gz | 6.8 kB | Without provenance | Details for qvac_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qvac_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qvac_sdk-0.1.0-py3-none-any.whl |
Total release size: 14.5 kB
Release files / qvac_sdk-0.1.0.tar.gz
| Download URL | qvac_sdk-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15803e035fd74b94d4f5a7fb28be7fe2b17b93eefc87cee84fb542dfeb18e3f1
|
|
BLAKE2b-256 checksum How to use checksums |
c3cff20679f13cb33d99a55df4b81fc5991ab063420378003c14c2612211f93a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / qvac_sdk-0.1.0-py3-none-any.whl
| Download URL | qvac_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4febb537738e48c691dade7e478d6b1e63c83e970de6d1bc14b54cd4d039dd22
|
|
BLAKE2b-256 checksum How to use checksums |
6f7a80bfbac7b1fc1699402b459adff02d82d867dac85dd43bdd57a51371f653
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for qvac-sdk 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.