Metadata

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

source

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-text-plugin-nltk",
  "version": "0.0.2",
  "type": "text-processing",
  "category": "text-processing",
  "interface": "cjm_text_plugin_system.plugin_interface.TextProcessingPlugin",
  "module": "cjm_text_plugin_nltk.plugin",
  "class": "NLTKPlugin",
  "python_path": "/opt/hostedtoolcache/Python/3.12.12/x64/bin/python",
  "db_path": "/opt/hostedtoolcache/Python/3.12.12/x64/data/nltk_text_processing.db",
  "resources": {
    "requires_gpu": false,
    "min_system_ram_mb": 512
  },
  "env_vars": {
    "NLTK_DATA": "/opt/hostedtoolcache/Python/3.12.12/x64/data/nltk_data"
  }
}