Skip to main content

No project description provided

Project description

msteams-connector

Microsoft Teams connector

Python MSTeams PyPI PyPI - Downloads

Get MSTeams Webhook

Following https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cdotnet

export PYTHONPATH=$(pwd)/src export MSTEAMS_WEBHOOK= pytest tests -v -s --log-cli-level=DEBUG

ruff check --fix ruff format

Usage

pip install msteams-connector

python code

from msteams_connector import *
import os

hook_url = os.environ["MSTEAMS_WEBHOOK"]

msteams = MSTeamsConnector(hook_url)
payload = msteams.generate_text_payload("Hello, World!")
msteams.send_payload(payload)

cli

Send with our release card template

msteams-connector send_release_card --version software-release-version --hook_url hook

Send with single text

msteams-connector send_text --text "hello world" --hook_url hook 

Developer git clone this repo in this repo root dir pip install -e ".[dev]"

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

msteams_con-0.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file msteams_con-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: msteams_con-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for msteams_con-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95553679849df3ccf736fb66e3aeeb9ca2dd3a890ba1bc5e5597174905a73fd9
MD5 8bf1efb7eee3e92961c122d9fcde3c63
BLAKE2b-256 745753fcd308282cddc3ae5bfa20fb67c1b9d31f822b869def362f9ffe707647

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