Installation Wizard Integration
This guide explains how to integrate Stimm into an app installation wizard.
Correct flow
- Install base package:
pip install stimm - Read provider catalog with
get_provider_catalog() - Let user choose providers and parameters
- Compute extras with
required_extras_for_selection(...)orextras_install_command(...) - Install extras
- Restart Python process
API usage
- Discovery UI:
get_provider_catalog() - Optional runtime contract visibility:
list_runtime_providers(kind) - Install resolution:
required_extras_for_selection(...),extras_install_command(...)
Example
from stimm import extras_install_command, get_provider_catalog
catalog = get_provider_catalog() # exhaustive stt/tts/llm + parameters
cmd = extras_install_command(stt="deepgram", tts="openai", llm="azure-openai")
print(cmd) # pip install stimm[deepgram,openai]
Important
Use provider catalog for wizard discovery. Runtime provider lists are execution contracts and are not a replacement for discovery metadata.