Skip to main content

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
)

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)

Source distribution for islack 0.1.1
File Size Uploaded
islack-0.1.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for islack 0.1.1
File Interpreter ABI Platform
islack-0.1.1-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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