Swiss AI Hub API
REST API, WebSocket gateway, and MCP server for the Swiss AI Hub platform. Built on FastAPI, it bridges frontends and external clients to Swiss AI Hub services via the Swiss AI Agent Protocol.
- Dynamic endpoints — agent and process endpoints are registered at runtime from NATS discovery, not hardcoded.
- Real-time — WebSocket and OpenAI-compatible SSE streaming of agent display events.
- Importable — mount any subset of controllers on an
ApiRunnerto build your own API.
Installation
pip install swiss-ai-hub-api
This pulls in swiss-ai-hub-core.
Usage
from swiss_ai_hub.api.routes.agent import AgentController
Links
- Source & issues: https://github.com/bbvch-ai/aihub-core
- Documentation: https://bbvch-ai.github.io/aihub-core/
License
Apache-2.0
Metadata
Release files for swiss-ai-hub-api 0.291.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swiss_ai_hub_api-0.291.5.tar.gz | 142.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swiss_ai_hub_api-0.291.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 415.5 kB
Release files / swiss_ai_hub_api-0.291.5.tar.gz
| Download URL | swiss_ai_hub_api-0.291.5.tar.gz |
|---|---|
| Size | 142.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6595ac82b09432be1551af55fe0ea5d60a8d69402d079098688370f3e9c6c739
|
|
BLAKE2b-256 checksum How to use checksums |
572239f76092ac414f581a3168c0e301e85ded80390b43a07a9bf45ea10613c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / swiss_ai_hub_api-0.291.5-py3-none-any.whl
| Download URL | swiss_ai_hub_api-0.291.5-py3-none-any.whl |
|---|---|
| Size | 272.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a41c9f6e3b4f708b7e871a39ed6f6e8496329348f75ab48b1f59cafa164fe613
|
|
BLAKE2b-256 checksum How to use checksums |
5161fde33059f9e143bbdd9d27adde7323740b6b9df013f4ad3c8842b4b27667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|