truthound plugins unload¶
Unload a loaded plugin.
Synopsis¶
Arguments¶
| Argument | Required | Description |
|---|---|---|
NAME |
Yes | Plugin name to unload |
Description¶
The plugin unload command unloads a loaded plugin:
- Deactivates the plugin if active
- Unloads from memory
- Returns to discovered state
State Transitions¶
Examples¶
Unload Plugin¶
Output:
Unload Active Plugin¶
Output:
Verify After Unload¶
# Unload the plugin
truthound plugins unload my-validator
# Verify state changed to discovered
truthound plugins list
Output:
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Name ┃ Version ┃ Type ┃ State ┃
┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ my-validator │ 0.1.0 │ validator │ discovered │
└─────────────────┴─────────┴───────────┴────────────┘
Use Cases¶
1. Cleanup After Testing¶
2. Reload Plugin (Update)¶
# Unload current version
truthound plugins unload my-validator
# Install update
pip install --upgrade truthound-plugin-my-validator
# Reload
truthound plugins load my-validator
3. Troubleshooting¶
# Unload problematic plugin
truthound plugins unload buggy-plugin
# Check validation works without it
truthound check data.csv
Error Handling¶
Plugin Not Found or Error¶
Output:
Exit Codes¶
| Code | Condition |
|---|---|
| 0 | Success |
| 1 | Error (plugin not found, unload failed) |
Related Commands¶
plugin load- Load a pluginplugin disable- Disable a pluginplugin list- List all plugins