New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

slack-alerts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slack-alerts

Simple Slack alerting python library

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1
SLACK-ALERTS
SIMPLE SLACK ALERTING PYTHON LIBRARY
────
Build Status Coverage Status

 

 

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc