Skip to content

A command-line tool that monitors command execution and sends notifications to Feishu when commands start, complete, or fail.

Notifications You must be signed in to change notification settings

greatoyster/feishu_webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Feishu Webhook Command Monitor

A command-line tool that monitors command execution and sends notifications to Feishu when commands start, complete, or fail.

Installation

pip install .

Usage

  1. Set your Feishu webhook URL as an environment variable:
export FEISHU_WEBHOOK_URL="your_webhook_url_here"
  1. Monitor a command:
feishu_webhook monitor <command> [args...]

For example:

feishu_webhook monitor python train.py --epochs 10

Features

  • 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

Requirements

  • Python 3.6 or higher
  • requests package

About

A command-line tool that monitors command execution and sends notifications to Feishu when commands start, complete, or fail.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages