How-To: ToolBoxV2 Features verstehen und nutzen¶
TL;DR¶
Features werden automatisch beim Import entpackt basierend auf installierten Extras.
Architektur¶
ToolBoxV2 verwendet ein modulares Feature-System:
toolboxv2/features_packed/ ← ZIP-Archive
toolboxv2/features/ ← Entpackte Features
Feature-Extras¶
| Extra | Features | Abhängigkeiten |
|---|---|---|
cli |
cli | prompt_toolkit, rich, readchar |
web |
web | starlette, uvicorn, httpx |
desktop |
desktop | PyQt6 |
exotic |
exotic | scipy, matplotlib, pandas |
isaa |
isaa | litellm, langchain_core, groq |
production |
core, cli, web | - |
dev |
Alle | - |
all |
Alle | - |
Installation mit Features¶
Nur Core (Standard)¶
pip install toolboxv2
Mit extras¶
pip install toolboxv2[web] # Core + Web
pip install toolboxv2[cli] # Core + CLI
pip install toolboxv2[all] # Alles
pip install toolboxv2[isaa] # AI-Agent
Automatisches Entpacken¶
Beim import toolboxv2 wird automatisch:
ensure_features_loaded()aufgerufen- Prüfen welche Extras installiert sind
- Passende ZIPs entpacken
- Feature-Status setzen
from toolboxv2 import ensure_features_loaded, get_feature_status
# Alle installierten Features
status = get_feature_status()
print(status)
Feature prüfen¶
Ein Feature gilt als installiert wenn:
1. Verzeichnis existiert: features/{name}/
2. feature.yaml existiert
3. .installed Marker existiert
from toolboxv2.feature_loader import is_feature_installed
if is_feature_installed("web"):
print("Web-Feature ist aktiv")
Verfügbare Features¶
| Feature | Beschreibung |
|---|---|
core |
Basis-System |
cli |
Kommandozeilen-Tools |
web |
Web-Interface |
desktop |
Desktop-GUI |
exotic |
Wissenschaftliche Tools |
isaa |
AI-Agent |
CLI-Commands für Features¶
# Features anzeigen
tb manifest list
# Feature aktivieren
tb manifest enable <feature>
# Feature deaktivieren
tb manifest disable <feature>
# Packed Features anzeigen
tb manifest packed
# Feature packen
tb manifest pack <feature>
# Feature entpacken
tb manifest unpack <path>