Metadata

Metadata introspection for the Whisper plugin used by cjm-ctl to generate the registration manifest.

get_plugin_metadata


def get_plugin_metadata(
    
)->Dict: # Plugin metadata for manifest generation

Return metadata required to register this plugin with the PluginManager.

Testing

import json

metadata = get_plugin_metadata()
print(json.dumps(metadata, indent=2))
{
  "name": "cjm-transcription-plugin-whisper",
  "version": "0.0.20",
  "type": "transcription",
  "category": "transcription",
  "interface": "cjm_transcription_plugin_system.plugin_interface.TranscriptionPlugin",
  "module": "cjm_transcription_plugin_whisper.plugin",
  "class": "WhisperLocalPlugin",
  "python_path": "/opt/hostedtoolcache/Python/3.12.13/x64/bin/python",
  "db_path": "/opt/hostedtoolcache/Python/3.12.13/x64/data/whisper_transcriptions.db",
  "resources": {
    "requires_gpu": true,
    "min_gpu_vram_mb": 4096,
    "recommended_gpu_vram_mb": 8192,
    "min_system_ram_mb": 8192
  },
  "env_vars": {
    "CUDA_VISIBLE_DEVICES": "0",
    "OMP_NUM_THREADS": "4",
    "XDG_CACHE_HOME": "/opt/hostedtoolcache/Python/3.12.13/x64/.cache"
  }
}