islack
Tools package for slack.
install
pip install islack
demo
from islack import slack_incoming
slack_incoming_url = "your_slack_incoming_url"
slack_incoming(
slack_incoming_url,
channel="#temp",
username="iSlackRobot",
icon_url="https://s3-us-west-2.amazonaws.com/slack-files2/bot_icons/2019-08-12/723294116148_48.png",
pretext="This pretest content is a [<https://slack.com|slack>] incoming test!",
color="#cd0000",
title="This is *title*!",
value="This is _first_ line.\n This is _second_ line."
)
# or
payload = {
"channel": "#everyone",
"username": "iSlackIncoming",
"icon_url": "https://ca.slack-edge.com/TJ2D8P5T8-USLACKBOT-sv41d8cd98f0-72",
"attachments": [
{
"fallback": "[<https://slack.com|slack>] slack incoming!",
"pretext": "[<https://slack.com|slack>] slack incoming!",
"color": "#2db67c",
"fields": [
{
"title": "This is the title",
"value": "The content below is the value:\n cant be seprateed by \"\\n\"",
"short": "false"
}
]
}
]
}
slack_incoming(
slack_incoming_url,
payload=payload
)
Metadata
Release files for islack 0.1.1
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 |
|---|---|---|---|---|
| islack-0.1.1.tar.gz | 3.0 kB | Without provenance | Details for islack-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| islack-0.1.1-py2-none-any.whl | Python 2 | none | any | Details for islack-0.1.1-py2-none-any.whl |
Total release size: 7.5 kB
Release files / islack-0.1.1.tar.gz
| Download URL | islack-0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
365ae339cd6ed96a1511f86cfbb492fe855db91ff14f1f99260a8a7f7394c876
|
|
BLAKE2b-256 checksum How to use checksums |
22b5f170515406df4fa18ff1ab46b2c12b69bf74e822f0b7ad2b35886fd5d41d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12
|
Release files / islack-0.1.1-py2-none-any.whl
| Download URL | islack-0.1.1-py2-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
57b3e74b76efe94f49abe819216beffd4204596e2003e617fca8cb97f10625a4
|
|
BLAKE2b-256 checksum How to use checksums |
ed3021fab18dbc392029942fcaaad86658cbb023044a161610bc0fd6250397ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12
|
Security for islack 0.1.1
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.