Skip to main content

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


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.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

buzz_client-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file buzz_client-1.0.1.tar.gz.

File metadata

  • Download URL: buzz_client-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/23.4.0

File hashes

Hashes for buzz_client-1.0.1.tar.gz
Algorithm Hash digest
SHA256 14cfe8b2af365b098ea84ab1fc8acd5e6129d8778ed0176e65642e93522172e9
MD5 7e5e9f760edb75a459f377fadff5662e
BLAKE2b-256 a73d38ab633d94af1055b6bc9228d44b18aae74b771bd31ac4d79127ca8f47b4

See more details on using hashes here.

File details

Details for the file buzz_client-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: buzz_client-1.0.1-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

Hashes for buzz_client-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4b487ca128e389d677abd0a5b02c0f307bb38fef06ca2207e8bdbd09fd819b
MD5 996135fdc33fd24ae08a67cc61edebe9
BLAKE2b-256 859173429fdfccf81397a88a6c55df0d3b54af06d75427ef704271cb5d76d539

See more details on using hashes here.

Supported by

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