A simple package to send messages or alerts to MS Teams channels.
Project description
teams_alert
Introduction
teams_alert is a python package that allows you to send alerts to Microsoft Teams. It is a simple package that allows you to send messages to a channel in Microsoft Teams.
Getting Started
-
Installation process
pip install teams_alert
-
Import the package
from teams_alert import TeamsAlert
-
Get the webhook url from the channel in Microsoft Teams.
First, go to the Team and channel you are interested in posting to. Click the three dots next to the channel name and select "Workflows".
Next, find "Post to a channel when a webhook request is received"
Name the workflow if you so desire
Check that the Team and Channel are correct
Hellz yes, you got the webhook url
-
Create an instance of TeamsAlert
teams_alert = TeamsAlert(webhook_url)
-
Send a message - email is optional
teams_alert.send("Some sort of title you'd want to use", "Some sort of message you'd want to send", "jimbo_p@oxy.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
Built Distribution
File details
Details for the file teams_alert-0.1.1.tar.gz
.
File metadata
- Download URL: teams_alert-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8073541eec86ee674cbf5be5a71e091f9c021f3bf7d8bc1db046f976dfa6fb37 |
|
MD5 | 579a164fc466aed9034b13f6cdbe2c20 |
|
BLAKE2b-256 | bfc65c69b42f0eb0120947c9cb8a31fd4b596236f26f281355cd91e9bc63c138 |
File details
Details for the file teams_alert-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: teams_alert-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c502ae13defa15bc6df856fcb15679c7b468425a5024ca326b1110cd8f73180 |
|
MD5 | d273e97ec85d51d350edec98773449a8 |
|
BLAKE2b-256 | 6681846303f692e688e177dbac579c828edda8466d49924dea8eb6e2b7a499bc |