source
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"
}
}