slack-webhook
slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above.
Installation
$ pip install slack-webhook
Usage
basic
from slack_webhook import Slack
slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')
slack.post(text="Hello, world.")
advanced
from slack_webhook import Slack
slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')
slack.post(text="Robert DeSoto added a new task",
attachments = [{
"fallback": "Plan a vacation",
"author_name": "Owner: rdesoto",
"title": "Plan a vacation",
"text": "I've been working too hard, it's time for a break.",
"actions": [
{
"name": "action",
"type": "button",
"text": "Complete this task",
"style": "",
"value": "complete"
},
{
"name": "tags_list",
"type": "select",
"text": "Add a tag...",
"data_source": "static",
"options": [
{
"text": "Launch Blocking",
"value": "launch-blocking"
},
{
"text": "Enhancement",
"value": "enhancement"
},
{
"text": "Bug",
"value": "bug"
}
]
}
]
}]
)
Getting started
For help getting started with Incoming Webhooks, view our online documentation.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Metadata
Release files for slack-webhook 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slack-webhook-1.0.7.tar.gz | 3.3 kB | Without provenance | Details for slack-webhook-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slack_webhook-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for slack_webhook-1.0.7-py3-none-any.whl |
Total release size: 7.0 kB
Release files / slack-webhook-1.0.7.tar.gz
| Download URL | slack-webhook-1.0.7.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78f3cae5f7a5669ba7cfd15f5c98454c539eeb5d5498b22e23fd9e803a8b6215
|
|
BLAKE2b-256 checksum How to use checksums |
d8b8e66a00f989b580865c0aa16c320267d4e8be17a32930faaf868ebcdcd293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / slack_webhook-1.0.7-py3-none-any.whl
| Download URL | slack_webhook-1.0.7-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56ce0dd5d2cf48758201670c95384e2d132c0e9eb68e1a5d7348ea99adcc201a
|
|
BLAKE2b-256 checksum How to use checksums |
c0e16514f89cf7aa66c3ba7736e766a45e93141eaf520fdc50983ad5cd5eed77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for slack-webhook 1.0.7
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.