{"id":24597,"library":"slack-webhook","title":"slack-webhook","description":"slack-webhook is a Python client library for Slack Incoming Webhooks, supporting Python 3.6 and above. Version 1.0.7 is the latest release, with infrequent updates.","status":"active","version":"1.0.7","language":"python","source_language":"en","source_url":"https://github.com/10mohi6/slack-webhook-python","tags":["slack","webhook","messaging","client"],"install":[{"cmd":"pip install slack-webhook","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Needed for HTTP requests to Slack webhook URLs.","package":"requests","optional":false}],"imports":[{"note":"The package name uses underscores: slack_webhook, not slackwebhook.","wrong":"from slackwebhook import Slack","symbol":"Slack","correct":"from slack_webhook import Slack"}],"quickstart":{"code":"from slack_webhook import Slack\n\nwebhook_url = os.environ.get('SLACK_WEBHOOK_URL', '')\nslack = Slack(url=webhook_url)\nslack.post(text=\"Hello, Slack!\")","lang":"python","description":"Sends a simple text message to a Slack channel via an Incoming Webhook URL."},"warnings":[{"fix":"Ensure the URL is copied exactly from the Slack App configuration.","message":"The webhook URL passed to Slack() must be the full URL, including 'https://hooks.slack.com/services/...'. Omitting the protocol or path will cause a connection error.","severity":"gotcha","affected_versions":"all"},{"fix":"Wrap calls in try/except blocks and check the response status.","message":"The Slack client does not verify the webhook URL or handle errors gracefully. Invalid URLs or network issues may raise unhandled exceptions.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to slack_sdk.webhook.WebhookClient from the slack-sdk package.","message":"The library is not actively maintained; last release was in 2020. Consider using the official slack-sdk library for webhooks.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from slack_webhook import Slack","cause":"Package installed but import path is wrong (e.g., 'import slackwebhook' without underscore).","error":"ModuleNotFoundError: No module named 'slack_webhook'"},{"fix":"Ensure the webhook URL starts with 'https://'.","cause":"Webhook URL provided without 'https://' prefix.","error":"requests.exceptions.MissingSchema: Invalid URL 'hooks.slack.com/services/...': No scheme supplied"},{"fix":"Use: from slack_webhook import Slack","cause":"Import statement uses 'import slack_webhook' but tries to access Slack class incorrectly.","error":"AttributeError: module 'slack_webhook' has no attribute 'Slack'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}