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
-
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@gmail.com")
How to get the webhook URL
-
Go to the Team and channel you are interested in posting to. Click the three dots next to the channel name and select "Workflows".
-
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
-
Copy the webhook URL
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.11.tar.gz
.
File metadata
- Download URL: teams_alert-0.1.11.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1330f45b42722b3a8d4cc54a95706443ac7060cb18b1da92d6888be4480ced |
|
MD5 | 9adb830bfee3f88969ef1dd5c94ae3bd |
|
BLAKE2b-256 | 0e38bcfc9668a037d0869868565ddf37f3eae4facdb4b33cff7505b2228699d1 |
File details
Details for the file teams_alert-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: teams_alert-0.1.11-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83eb0911bf4089fdffc74893482bd35a45aa5c22501096be0d5dbeff1ca7658f |
|
MD5 | 46497a3e5dce8806a79de9470b1950a7 |
|
BLAKE2b-256 | 324beb6094f15ddc7dad5b331fa2770cef7d5117e724527d430e967f3b735306 |