Metadata

Metadata introspection for the SQLite Graph 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-graph-plugin-sqlite",
  "version": "0.0.4",
  "type": "graph",
  "category": "knowledge-management",
  "interface": "cjm_graph_plugin_sqlite.plugin_interface.GraphPlugin",
  "module": "cjm_graph_plugin_sqlite.plugin",
  "class": "SQLiteGraphPlugin",
  "python_path": "/opt/hostedtoolcache/Python/3.12.12/x64/bin/python",
  "db_path": "/opt/hostedtoolcache/Python/3.12.12/x64/data/context_graph.db",
  "resources": {
    "requires_gpu": false,
    "min_system_ram_mb": 512
  },
  "env_vars": {}
}