{ "info": { "author": "10mohi6", "author_email": "10.mohi.6.y@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Chat", "Topic :: Office/Business", "Topic :: System :: Networking" ], "description": "# slack-webhook\n\n[![PyPI](https://img.shields.io/pypi/v/slack-webhook)](https://pypi.org/project/slack-webhook/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![codecov](https://codecov.io/gh/10mohi6/slack-webhook-python/branch/master/graph/badge.svg)](https://codecov.io/gh/10mohi6/slack-webhook-python)\n[![Build Status](https://travis-ci.com/10mohi6/slack-webhook-python.svg?branch=master)](https://travis-ci.com/10mohi6/slack-webhook-python)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/slack-webhook)](https://pypi.org/project/slack-webhook/)\n\nslack-webhook is a python client library for slack api Incoming Webhooks on Python 3.5 and above.\n\n\n## Installation\n\n $ pip install slack-webhook\n\n## Usage\n\n```python\n#\n# basic\n#\nfrom slack_webhook import Slack\n\nslack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')\nslack.post(text=\"Hello, world.\")\n\n#\n# advanced\n#\nfrom slack_webhook import Slack\n\nslack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')\nslack.post(text=\"Robert DeSoto added a new task\",\n attachments = [{\n \"fallback\": \"Plan a vacation\",\n \"author_name\": \"Owner: rdesoto\",\n \"title\": \"Plan a vacation\",\n \"text\": \"I've been working too hard, it's time for a break.\",\n \"actions\": [\n {\n \"name\": \"action\",\n \"type\": \"button\",\n \"text\": \"Complete this task\",\n \"style\": \"\",\n \"value\": \"complete\"\n },\n {\n \"name\": \"tags_list\",\n \"type\": \"select\",\n \"text\": \"Add a tag...\",\n \"data_source\": \"static\",\n \"options\": [\n {\n \"text\": \"Launch Blocking\",\n \"value\": \"launch-blocking\"\n },\n {\n \"text\": \"Enhancement\",\n \"value\": \"enhancement\"\n },\n {\n \"text\": \"Bug\",\n \"value\": \"bug\"\n }\n ]\n }\n ]\n }]\n)\n\n\n```\n## Getting started\n\nFor help getting started with Incoming Webhooks, view our online [documentation](https://api.slack.com/incoming-webhooks).\n\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/10mohi6/slack-webhook-python", "keywords": "slack webhook python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "slack-webhook", "package_url": "https://pypi.org/project/slack-webhook/", "platform": "", "project_url": "https://pypi.org/project/slack-webhook/", "project_urls": { "Homepage": "https://github.com/10mohi6/slack-webhook-python" }, "release_url": "https://pypi.org/project/slack-webhook/1.0.2/", "requires_dist": null, "requires_python": ">=3.5.0", "summary": "slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.5 and above.", "version": "1.0.2" }, "last_serial": 5860680, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "2cb260c0c087455a9bf2e1609c2253fb", "sha256": "4f7994fbbdf47a022356e302e1da61d9f4d356466ef81c5ff67390d3d1c2ae1e" }, "downloads": -1, "filename": "slack_webhook-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2cb260c0c087455a9bf2e1609c2253fb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 3603, "upload_time": "2019-09-19T15:57:34", "url": "https://files.pythonhosted.org/packages/3b/86/284ceeba8b4e7ffefca700ac653fdae3e0e49f7e3c0c37f94aaa4f606703/slack_webhook-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a08c36372a7378e44aeb915e6c77f035", "sha256": "19e4c90674cddaaba0e06d86b1ebc4a41d6e810865ac4f1e3d92f579dcce4093" }, "downloads": -1, "filename": "slack-webhook-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a08c36372a7378e44aeb915e6c77f035", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 2651, "upload_time": "2019-09-19T15:57:37", "url": "https://files.pythonhosted.org/packages/93/6b/b5a71b255ea0c9cdc52cb77d482ce04af96a2fdf9493c89f8e9ccff4d641/slack-webhook-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "54cd93533683d7f24698232debf622e4", "sha256": "880baae73dec0630d9db292b597553818ea6711d04099cecdef122919c0bfd9a" }, "downloads": -1, "filename": "slack_webhook-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "54cd93533683d7f24698232debf622e4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 3561, "upload_time": "2019-09-20T07:10:13", "url": "https://files.pythonhosted.org/packages/ab/2c/4df10f57a91cb091f01a3d318666f5e68d78c9e5991b36225bff62ceca7c/slack_webhook-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4eddca5fbdda67d4412e9a75f338ed30", "sha256": "ac27f97799171430b51541cd3706d88c41d4beb60511aac0a88f5ed253cc7e08" }, "downloads": -1, "filename": "slack-webhook-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4eddca5fbdda67d4412e9a75f338ed30", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 2697, "upload_time": "2019-09-20T07:10:16", "url": "https://files.pythonhosted.org/packages/f2/2a/bd1105eda09b229cbda8bd6947c4223d9a1108c048c5a115d6990994d850/slack-webhook-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "25be30b97c505fec65287f8fa9023772", "sha256": "883bf4de855f123d44b66e1531faaa552f31c3f464e473a2e2ce6df148490c0e" }, "downloads": -1, "filename": "slack_webhook-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "25be30b97c505fec65287f8fa9023772", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 4148, "upload_time": "2019-09-20T08:05:04", "url": "https://files.pythonhosted.org/packages/d9/27/41c0ac695fb1d2cea2275e96cdba599b4c521ef219c2db7b5d7953c4b83a/slack_webhook-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f7a6895083fd9c02c236952deda1f17", "sha256": "ad8acbc69946ea2e0233d867d9a3d718784a5c0b7c2e076b5d9b2d33b5bb1891" }, "downloads": -1, "filename": "slack-webhook-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1f7a6895083fd9c02c236952deda1f17", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 2713, "upload_time": "2019-09-20T08:05:06", "url": "https://files.pythonhosted.org/packages/4d/ed/9dda692faf56928d90312d0e76d9849f7c3a3f91f7bd6bba6885be3962e9/slack-webhook-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25be30b97c505fec65287f8fa9023772", "sha256": "883bf4de855f123d44b66e1531faaa552f31c3f464e473a2e2ce6df148490c0e" }, "downloads": -1, "filename": "slack_webhook-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "25be30b97c505fec65287f8fa9023772", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.0", "size": 4148, "upload_time": "2019-09-20T08:05:04", "url": "https://files.pythonhosted.org/packages/d9/27/41c0ac695fb1d2cea2275e96cdba599b4c521ef219c2db7b5d7953c4b83a/slack_webhook-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f7a6895083fd9c02c236952deda1f17", "sha256": "ad8acbc69946ea2e0233d867d9a3d718784a5c0b7c2e076b5d9b2d33b5bb1891" }, "downloads": -1, "filename": "slack-webhook-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1f7a6895083fd9c02c236952deda1f17", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.0", "size": 2713, "upload_time": "2019-09-20T08:05:06", "url": "https://files.pythonhosted.org/packages/4d/ed/9dda692faf56928d90312d0e76d9849f7c3a3f91f7bd6bba6885be3962e9/slack-webhook-1.0.2.tar.gz" } ] }