No project description provided
Project description
msteams-connector
Microsoft Teams connector
Get MSTeams Webhook
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95553679849df3ccf736fb66e3aeeb9ca2dd3a890ba1bc5e5597174905a73fd9 |
|
MD5 | 8bf1efb7eee3e92961c122d9fcde3c63 |
|
BLAKE2b-256 | 745753fcd308282cddc3ae5bfa20fb67c1b9d31f822b869def362f9ffe707647 |