Skip to main content
SLACK-ALERTS
SIMPLE SLACK ALERTING PYTHON LIBRARY
────

 

 

Usage

import slack_alerts

alerter = slack_alerts.Alerter('https://your-slack.webhook/url')
alerter.critical('something bad happened!!')

Installation

With pip

pip3 install --user slack_alerts

As a dependency

# with poetry
poetry add slack_alerts

# with virtualenv
virtualenv -p python3 .env
source .env/bin/activate
pip install slack_alerts

# with pipenv
pipenv install slack_alerts

Tests

Run pytest for unit tests

# you need a valid slack webhook url as there is no api mocking
export SLACK_WEBHOOK_URL='https://...'

poetry run coverage run --source slack_alerts -m pytest -v
poetry run coverage report

Run flake8 for code style

poetry run flake8 .

Built With

  • Poetry - Python dependency management made great
  • Requests - The famous and robust http client library

Metadata

Release files for slack-alerts 1.0.0

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

Source distribution (sdist)

Source distribution for slack-alerts 1.0.0
File Size Uploaded Provenance Actions
slack-alerts-1.0.0.tar.gz 4.0 kB Without provenance Details for slack-alerts-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slack-alerts 1.0.0
File Interpreter ABI Platform Actions
slack_alerts-1.0.0-py3-none-any.whl Python 3 none any Details for slack_alerts-1.0.0-py3-none-any.whl

Total release size: 13.2 kB

Release files / slack-alerts-1.0.0.tar.gz

Download URL slack-alerts-1.0.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b6540f7de61c8e94b73bc8ba6a038de97c827bb8639e4c231749bee66871cda
BLAKE2b-256 checksum
How to use checksums
1d8b27d8f19d056be28e9a30301121bc629ca08954dd1bc7cf6b5312f4d8b11b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

Release files / slack_alerts-1.0.0-py3-none-any.whl

Download URL slack_alerts-1.0.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11c1ca9d2f9d97b5a5a59dd9fb5781b45fa6ca76661a95acc72c76c090f803f7
BLAKE2b-256 checksum
How to use checksums
a2a92114e19fec8fc9d649b9de8bb9003dba36053f5654e106714acd700a88fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

Security for slack-alerts 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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