Skip to main content

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

  1. Installation process pip install teams_alert

  2. Import the package from teams_alert import TeamsAlert

  3. 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".

Workflows

Next, find "Post to a channel when a webhook request is received"

Post to a channel when a webhook request is received

Name the workflow if you so desire

Name the workflow

Check that the Team and Channel are correct

Check that the Team and Channel are correct

Hellz yes, you got the webhook URL

Hellz yes, you got the webhook URL

  1. Create an instance of TeamsAlert teams_alert = TeamsAlert(webhook_url)

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teams_alert-0.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

teams_alert-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file teams_alert-0.1.3.tar.gz.

File metadata

  • Download URL: teams_alert-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for teams_alert-0.1.3.tar.gz
Algorithm Hash digest
SHA256 752854c45547a32f346f9d1bde230eee1c59d44d865780cba07cdf837565939b
MD5 04bab7bca138dc02b73d33c8a0987f55
BLAKE2b-256 0174cecf3d1c3b6b2df434b4bb10f57667d14dfa24d59cf3e3d594cf228e275c

See more details on using hashes here.

File details

Details for the file teams_alert-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: teams_alert-0.1.3-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

Hashes for teams_alert-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1fc5ee2e3b3be3b3708cc6d176d28cd45f4605699d8c48bf1cb8eaa596a2ad
MD5 174a0ce27f59f347490694ae71690290
BLAKE2b-256 1af754200bb249102efe20094d06193ca4ce57f290a0c35a78d9b86961f19ca9

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