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 <recipient> [--title <title>] [--severity <severity>] [--attach <file>] [<body>...]
buzz --version
Options:
-h --help show this help message and exit
-v --version show version and exit
-s URL --server=URL API URL
-t TOKEN --token=TOKEN API Auth token
--recipient <recipient> the recipient of the notification,
must be valid for the notifier chosen
--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
<notifier> the notifier you want to use,
you can see the available notifiers using `list` command
<body> Content of the notification,
if not specified read from stdin
Environment variables:
- BC_API API URL, overrides command line argument
- BC_TOKEN API token, overrides command line argument
- 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.0.2.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file buzz_client-1.0.2.tar.gz
.
File metadata
- Download URL: buzz_client-1.0.2.tar.gz
- Upload date:
- Size: 3.3 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 | 1690986073d7800e5e009103656133af53ace79a1ae74601a61aa96cb08257c3 |
|
MD5 | 206a5724586e5027d344a0476e07859b |
|
BLAKE2b-256 | 171b1ede42706302b4d09b299c45c1bd0c6fdbe5215f19d53beea06c90543b93 |
File details
Details for the file buzz_client-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: buzz_client-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 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 | 8b2c3d6b12cef19c9e61b533be5417f7c8a35d5564ca5991acad0bc8f84812f6 |
|
MD5 | 34302a8755ad64caf7150ea0d1a70459 |
|
BLAKE2b-256 | 97d3cdec655fefe4da71f6ce26ec379141a2a4f1293725f0aa84b5f10973e246 |