A client for Buzz API
Project description
buzz_client
A client for buzzAPI
Intro
buzz
is a client for buzzAPI, a tool to send notifications to several services, like email, pushover, slack, teams...
Syntax is:
Buzz client
Usage:
buzz [options] list
buzz [options] version
buzz [options] send <notifier> <recipient> [--title <title>] [--severity <severity>] [--attach <file>] [<body>...]
buzz --version
Options:
<notifier> the notifier you want to use,
you can see the available notifiers using `list` command
<recipient> the recipient of the notification,
must be valid for the notifier chosen
-h --help show this help message and exit
-v --version show version and exit
-a URL --api=URL API URL
--title <title> the title of the notification. [default: You received a buzz]
--severity <severity> the severity of the message. [default: info]
One of: 'info', 'success', 'warning', 'failure'
--attach <file> a file you want to attach to the notification
--format <format> format of the message text [default: text]
One of: 'text', 'markdown', 'html'
<body> Content of the notification,
if not specified read from stdin
Environment variables:
- BUZZ_API API URL, overrides command line argument
API URL format is `http(s)://auth-token@server`
Example: http://sesame@localhost:8000
- URL is the URL of the buzzAPI, for example https://buzz.domain.com/
- TOKEN is the authentication token of the buzzAPI instance.
The other arguments are quite self explicative, but you have to bear in mind that the body of the notification:
- can be passed on the command line of
buzz
like
buzz send email --recipient me@domain.com This is the content of the notification
- if not passed as an argument of
buzz
, then the content of the notification is read from standard input, for example
echo "Content of directory"; ls | buzz send --recipient me@domain.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
buzz_client-1.1.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file buzz_client-1.1.1.tar.gz
.
File metadata
- Download URL: buzz_client-1.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61d69330421bd98994c1508f60dbc380304859bac1fe51061d2e1c76216f7b86 |
|
MD5 | dca24620c8c21376f5b3f6f2ed12ca4a |
|
BLAKE2b-256 | a55d639c83974acc550b4d294363412dbd3958968b2a2a62068361c00065d0d9 |
File details
Details for the file buzz_client-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: buzz_client-1.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2b642b54112a9faff59036fde1dab7d4edcffcc1d954352ecc51a9d969a636 |
|
MD5 | 6ee4f2d6f9c631d664d9cf60f622e465 |
|
BLAKE2b-256 | c39dea0f815ee9e2ba89ca1f9c51c7e7cb0652394ffd24cc54d834b218e97e8a |