Skip to main content

🛠️ Teams Alerter

A lightweight Python module to send alerts to Microsoft Teams via Google Cloud Pub/Sub.


📦 How to Build the Module

Make sure you have the build package installed:

python -m pip install --upgrade build
python -m build

This will generate .whl and .tar.gz files inside the dist/ folder.


🔧 Install the Module Locally

From your project directory (with your virtual environment activated):

pip install ../teams-alerter/dist/teams_alerter-0.2.17-py3-none-any.whl

Adjust the path according to your actual .whl file location.


🚀 How to Use the Module

from teams_alerter import TeamsAlerter

# Example: error handling
try:
    raise RuntimeError("Test error")
except Exception as error:
    TeamsAlerter.handle_error(error, utils)

📤 How to Publish to PyPI

  1. Install twine:
pip install twine
  1. Upload the distribution files:
twine upload dist/*

A PyPI account is required: https://pypi.org/account/register/


teams-alerter/
├── teams_alerter/
│   ├── __init__.py
│   ├── core.py
│   └── utils.py
├── pyproject.toml
├── README.md
└── dist/

✅ Requirements

  • Python ≥ 3.8
  • Google Cloud SDK if you are using Pub/Sub
  • Dependencies:
    • google-cloud-pubsub

These dependencies are already listed in your pyproject.toml.


LIB URL: https://pypi.org/project/teams-alerter/

How to build and publish ? pip install build twine python -m build twine upload dist/* dans requirements.txt, ajouter teams-alerter==0.2.17 dans le code: from teams_alerter import TeamsAlerter

Metadata

Release files for teams-alerter 0.2.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for teams-alerter 0.2.17
File Size Uploaded Provenance Actions
teams_alerter-0.2.17.tar.gz 5.4 kB Without provenance Details for teams_alerter-0.2.17.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for teams-alerter 0.2.17
File Interpreter ABI Platform Actions
teams_alerter-0.2.17-py3-none-any.whl Python 3 none any Details for teams_alerter-0.2.17-py3-none-any.whl

Total release size: 11.5 kB

Release files / teams_alerter-0.2.17.tar.gz

Download URL teams_alerter-0.2.17.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f197fb0cf9ede1528a09e8de84c4dc3256a0d7fdd64f1d9d281aa235f70e17d8
BLAKE2b-256 checksum
How to use checksums
ab536922f0f70aa1e8bd61c69120784ffd3fdc7e4d46384bec424c0bef1535d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / teams_alerter-0.2.17-py3-none-any.whl

Download URL teams_alerter-0.2.17-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
273140d0c07fc02f635548529b24babe2e48adc0ef5fec1047d78d5d43d5ad4e
BLAKE2b-256 checksum
How to use checksums
680cdd7a89ab7bdea46ea9eacc92d8f33ceec079b20dc51b9e3e67eb07b59b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for teams-alerter 0.2.17

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page