# meta


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## get_plugin_metadata

Returns metadata required to register this plugin with the
PluginManager. This function is called by `cjm-ctl` during the manifest
generation phase.

The returned dictionary includes:

- **python_path**: Absolute path to the environment’s Python interpreter
- **module/class**: Import path for dynamic loading by the Universal
  Worker
- **resources**: Hardware requirements (this plugin doesn’t require GPU
  itself)

------------------------------------------------------------------------

<a
href="https://github.com/cj-mills/cjm-system-monitor-nvidia/blob/main/cjm_system_monitor_nvidia/meta.py#L15"
target="_blank" style="float:right; font-size:smaller">source</a>

### get_plugin_metadata

``` python

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

```

*Return metadata required to register this plugin with the
PluginManager.*

## Testing

``` python
import json

metadata = get_plugin_metadata()
print(json.dumps(metadata, indent=2))
```

    {
      "name": "cjm-system-monitor-nvidia",
      "version": "0.0.6",
      "type": "infrastructure",
      "category": "system_monitor",
      "interface": "cjm_infra_plugin_system.plugin_interface.MonitorPlugin",
      "module": "cjm_system_monitor_nvidia.plugin",
      "class": "NvidiaMonitorPlugin",
      "python_path": "/opt/hostedtoolcache/Python/3.12.13/x64/bin/python",
      "db_path": "/opt/hostedtoolcache/Python/3.12.13/x64/data/nvidia_sysmon.db",
      "resources": {
        "requires_gpu": false,
        "min_gpu_vram_mb": 0,
        "min_system_ram_mb": 128
      },
      "env_vars": {}
    }

### CLI Introspection

The `cjm-ctl install-all` command runs this function inside the plugin’s
conda environment:

``` bash
conda run -n cjm-sys-mon-nvidia python -c \
  'from cjm_system_monitor_nvidia.meta import get_plugin_metadata; \
   import json; print(json.dumps(get_plugin_metadata(), indent=2))'
```

The output is written to
`~/.cjm/plugins/cjm-system-monitor-nvidia.json`.
