Skip to content

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
→ Nur Core wird entpackt

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:

  1. ensure_features_loaded() aufgerufen
  2. Prüfen welche Extras installiert sind
  3. Passende ZIPs entpacken
  4. 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>