Auto-generated Python client for the NousViz API.
Project description
nousviz-client
Auto-generated Python client for the NousViz API.
Generated from /openapi.json via openapi-python-client. Do not edit
nousviz_client/ by hand — re-run scripts/regenerate-clients.sh from the
repo root.
Distinct from
nousviz_sdk(the plugin SDK that runs inside NousViz). This package is for external integrations that talk to a NousViz instance over HTTP.
Install
pip install nousviz-client
Three-line example
from nousviz_client import AuthenticatedClient
from nousviz_client.api.auth import auth_me
from nousviz_client.api.plugins import plugins_list
client = AuthenticatedClient(base_url="https://nousviz.online", token="<your-session-token>")
me = auth_me.sync(client=client)
plugins = plugins_list.sync(client=client)
For unauthenticated calls (public endpoints like /api/health), use
Client instead of AuthenticatedClient:
from nousviz_client import Client
from nousviz_client.api.health import health_check
client = Client(base_url="https://nousviz.online")
status = health_check.sync(client=client)
Auth
AuthenticatedClient(token=...) sets the X-Session-Token header on
every request. Issue a session token via POST /api/auth/login:
from nousviz_client import Client
from nousviz_client.api.auth import auth_login
from nousviz_client.models import LoginRequest
client = Client(base_url="https://nousviz.online")
resp = auth_login.sync(client=client, body=LoginRequest(email="me@example.com", password="..."))
print(resp.token) # → "abc123..."
Operation naming
Every endpoint module is nousviz_client.api.<tag>.<resource_verb>:
| HTTP | Module |
|---|---|
GET /api/auth/me |
nousviz_client.api.auth.auth_me |
GET /api/plugins |
nousviz_client.api.plugins.plugins_list |
POST /api/plugins/{id}/install |
nousviz_client.api.plugins.plugins_install |
POST /api/auth/impersonate/{user_id} |
nousviz_client.api.auth.auth_impersonate_start |
Each module exposes:
sync(client, ...)— synchronous request, returns the parsed response.asyncio(client, ...)— async via httpx.AsyncClient.sync_detailed(client, ...)/asyncio_detailed(client, ...)— return the fullResponse[T]wrapper with status code + headers.
Types
Every Pydantic response model is exported from nousviz_client.models:
from nousviz_client.models import MeResponse, PluginEntry, JobsListResponse
See /docs/api for the live schema
panels and try-it-out form.
Versioning
Each release of nousviz-client matches the platform VERSION file.
Spec changes are PR-reviewable through the OpenAPI snapshot test
(tests/test_openapi_stability.py) — when the snapshot updates,
regenerate the client in the same PR.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nousviz_client-1.0.0.tar.gz.
File metadata
- Download URL: nousviz_client-1.0.0.tar.gz
- Upload date:
- Size: 205.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0b99033b9d75a2f1cec37a399b29434140a02a5bd253c83de63ad5f105c70f8
|
|
| MD5 |
3c674242dc85a2978052aa5c35b3cb4d
|
|
| BLAKE2b-256 |
ae27466104d761c6cb978721a6ed561c2376db27f67fa40b3d91276dfecb0271
|
File details
Details for the file nousviz_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nousviz_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 639.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbcb555a0491249d7b26148fafb71d13bd8ddede5ca9d360cc95ae58f3209147
|
|
| MD5 |
705273c8c9d1caf79de30fbaafb6e074
|
|
| BLAKE2b-256 |
fe5cc6b910ed9cc184aabfa599d1938d4dc1e0bfd01176f680bdcdbb9b26ee12
|