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
- 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"
usage from python
from whecho.whecho import whecho_simple
whecho_simple("I'm 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.5.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file whecho-0.0.5.tar.gz
.
File metadata
- Download URL: whecho-0.0.5.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 pkginfo/1.9.6 readme-renderer/27.0 requests/2.28.1 requests-toolbelt/0.8.0 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/4.8.1 keyring/21.2.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a33cd801658affb283f290e806e3975e0903898e258310db4c9a6698cac5898 |
|
MD5 | 70e3d77cf65967f3565e40f97babf1e2 |
|
BLAKE2b-256 | 12631debb665c61afbed64dd983ef6b7ca682e270f140b1eafbab63146191951 |
File details
Details for the file whecho-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: whecho-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 pkginfo/1.9.6 readme-renderer/27.0 requests/2.28.1 requests-toolbelt/0.8.0 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/4.8.1 keyring/21.2.1 rfc3986/2.0.0 colorama/0.4.5 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d305245051fa84cfc98bbba7c9cdf619c95a690a353ad4490dc191162b1519b5 |
|
MD5 | 93f8166439f200bd0f681f57aad704a4 |
|
BLAKE2b-256 | d48b02d309c71881c234c03b995a025464098ca3d0028e63d805940e8813c9db |