Getting started
Requirements
- Python 3.13 or newer
- A Microsoft Teams incoming webhook URL you are allowed to post to
requestsandPyYAML, installed with the package
Install
First run
The command exits 0 when Teams accepts the message. Put the webhook URL in
the environment, or in a profile, rather than in shell history.
Config file
Profiles live in $HOME/.teamsit.yml. Pass --config when the file lives
somewhere else. --config requires --profile.
profiles:
testing:
webhook_url: https://outlook.office.com/webhook/YOUR_WEBHOOK_URL
title: Alerts
color: "00FF00"
timeout: 15
notices:
webhook_url: https://contoso.webhook.office.com/webhookb2/YOUR_WEBHOOK_URL
title: Notice
teamsit --profile testing --text "Hello, Teams!"
teamsit -p notices --config "$HOME/work/teamsit.yml" --text "Disk full"
Each profile may set webhook_url, title, color, and timeout. A CLI
flag overrides the same field from the profile.
Module entry point: