Skip to main content

Slack tools.

Project description

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
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

islack-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

islack-0.1.1-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file islack-0.1.1.tar.gz.

File metadata

  • Download URL: islack-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for islack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 365ae339cd6ed96a1511f86cfbb492fe855db91ff14f1f99260a8a7f7394c876
MD5 2b00b2f79ac2ad547dd07389ef9b4896
BLAKE2b-256 22b5f170515406df4fa18ff1ab46b2c12b69bf74e822f0b7ad2b35886fd5d41d

See more details on using hashes here.

File details

Details for the file islack-0.1.1-py2-none-any.whl.

File metadata

  • Download URL: islack-0.1.1-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using 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

File hashes

Hashes for islack-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 57b3e74b76efe94f49abe819216beffd4204596e2003e617fca8cb97f10625a4
MD5 8a60d77cc3f5e6f4f9f482f9c49259f4
BLAKE2b-256 ed3021fab18dbc392029942fcaaad86658cbb023044a161610bc0fd6250397ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page