Skip to main content

A simple and small webserver to react to webhook-calls by running commands.For simplicity, webhook-urls and scripts are configured in a configfile.

Project description

Webhook command runner

This module provides a simple method for automatically execution calling scripts when a webhook-call is received.

In the configuration file you define, which script will be called on wich request. e.g.:

listen_port: 8080

method: GET, POST
command: echo "Hello!"

method: GET, POST
command: wall "Hello!"

method: GET
command: sleep 5 && wall "Hello!"

method: GET
path: /data/scripts/webhook_script_execution
command: git pull

To start the webhook command runner simply install it with pip and call webhook-command-runner:

$ pip3 install webhook-command-runner
$ webhook-command-runner config.ini

The configuration has following sections:


In this section, the IP-Adress and Port configuration can be done.


In these sections, it is defined, wich script will be called: You can define:

  • method: Which HTTP-Method can be used to trigger the script-execution. Today, GETand POST are implemented.
  • path: Optionally, you can define a Filesystem-Path, where the script shall be executed.
  • command: The command to be executed.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webhook-command-runner, version 1.0.4
Filename, size File type Python version Upload date Hashes
Filename, size webhook_command_runner-1.0.4.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View
Filename, size webhook_command_runner-1.0.4-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page