A command-line tool that monitors command execution and sends notifications to Feishu when commands start, complete, or fail.
pip install .
- Set your Feishu webhook URL as an environment variable:
export FEISHU_WEBHOOK_URL="your_webhook_url_here"
- Monitor a command:
feishu_webhook monitor <command> [args...]
For example:
feishu_webhook monitor python train.py --epochs 10
- Sends notifications when a command:
- Starts execution
- Completes successfully
- Fails with an error
- Is interrupted by the user
- Includes command duration in notifications
- Preserves the exit code of the monitored command
- Handles keyboard interrupts gracefully
- Python 3.6 or higher
- requests package