Skip to main content

A simple Python package for sending alerts using SendAlert.io

Project description

SendAlert.io Python Package

A simple Python package for sending alerts using SendAlert.io.

Installation

pip install sendalert

Authentication

Before using the package, you need to set your SendAlert.io API key. There are two recommended ways to do this:

Option 1: Set as an environment variable

Set your API key as an environment variable:

export SENDALERT_API_KEY=your_api_key_here

Option 2: Set in your Python script

Alternatively, you can set the API key at the beginning of your Python script:

import os
import sendalert

os.environ["SENDALERT_API_KEY"] = "your_api_key_here"

Make sure to keep your key safe.

Usage

After setting the API key, you can use the package like this:

import sendalert

sendalert.sendalert("Your alert message")

You can also specify the mode:

sendalert.sendalert("Your warning message", mode="warning")

mode (optional, default="info"): The alert mode (e.g., "info", "warning", "error")

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

sendalert-0.1.4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

sendalert-0.1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file sendalert-0.1.4.tar.gz.

File metadata

  • Download URL: sendalert-0.1.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for sendalert-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c762ff135c3e92f63bcd31a16e52c2eca587b53b712ec03706aabba12f3e2b4c
MD5 2ba9b17b7c3b82929545d7ee7d2a082e
BLAKE2b-256 eebf2d8acfe9f3dde2b90d4398134751846eb8ab076e5a6e04a1203ada14adf5

See more details on using hashes here.

File details

Details for the file sendalert-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sendalert-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for sendalert-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0a3242b92298f7169f317eb4807563cac4801e3e7fc4a0c7b2eb8ef83a50ce
MD5 b26db02d4924ff541a2319bbf04fb3b9
BLAKE2b-256 ff6dd24bd81bc849b40aa696c50f743f2ba4c74c060eb9d5b2d376e09a83cf15

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