Skip to main content

Linux echo with webhooks! ⚓

Project description

whecho

linux echo but with webhooks! ⚓

Don't guess when a job is finished! Have it message you!

requirements

  • python 3.6+

installation

pip install whecho

First Time Setup

  • obtain a webhook URL discord_webhook_example
  • Currently supports:
  • Initialize the default_url
$ whecho --init
Current config:
[1] default_url: None
[2] user: craut
[3] machine: craut-spectre

Please enter the number/name of the config option you would like to modify (empty or Q to exit): 1
Please enter the new value for default_url: <WEBHOOK_URL>
Successfully modified default_url to <WEBHOOK_URL>!
Current config:
[1] default_url: <WEBHOOK_URL>
[2] user: craut
[3] machine: craut-spectre

Please enter the number/name of the config option you would like to modify (empty or Q to exit): q
Successfully initialized whecho!

general usage (from shell/console)

$ whecho "hello there"

hello_there_discord

usage from python

from whecho.whecho import whecho_simple
whecho_simple("I'm inside python 🐍")

inside_python

advanced usage

$ whecho --help
usage: whecho [-h] [--version] [-m MSG] [--init] [-u URL] [-d] [MSG [MSG ...]]

Linux echo with webhooks! ⚓

positional arguments:
  MSG                The message to echo.

optional arguments:
  -h, --help         show this help message and exit
  --version          Prints the version of whecho and exits.
  -m MSG, --msg MSG  The message to echo (same as 1st positional argument).
  --init             Initializes whecho. Also used to change current config.
  -u URL, --url URL  The webhook URL to send the message to.
  -d, --debug        Whether to print debugging information.

Project details


Download files

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

Source Distribution

whecho-0.0.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whecho-0.0.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file whecho-0.0.6.tar.gz.

File metadata

  • Download URL: whecho-0.0.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for whecho-0.0.6.tar.gz
Algorithm Hash digest
SHA256 462a062a678943ad27ae7abe5a3d19f410faade485b8959ee41e91d6a19fd904
MD5 4a0c62084d1784e43b950eff055d9003
BLAKE2b-256 244a2ed6b70c1cc4d419fa07f2a3882cc81513fa88e92627cb0780d995bb3c2b

See more details on using hashes here.

File details

Details for the file whecho-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: whecho-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for whecho-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 134857ff89fcd55034558814aa34e5e9ba5a8c55f990387c7c2efe035f544748
MD5 c6b9d874c3f6c55786ce0d4a1ff9f2eb
BLAKE2b-256 522d3c6e281ef314e706483e2e0ecd155992854e347bdac9a07c1af43100d300

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page