{ "info": { "author": "Chris George", "author_email": "chrisg1622@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# slackbot\nA simple python wrapper for the [Slack](https://slack.com) api\n\n## Requirements\n\n* [SlackClient](https://github.com/slackapi/python-slackclient)\n\n## Installation\n\n```\npip install simple-slackbot\n```\n\n## Usage\n\n### Generate a slack api token\n\nFirst you need to get the slack api token for your bot. You can create a bot on the [slack website](https://api.slack.com) and manage permissions.\n\n### Instantiate a SlackBot\n\n```\nfrom slackbot import SlackBot\n\nslackbot = SlackBot()\n```\n\nBy default, the SlackBot retrieved the slack token from environment variable `SLACK_API_TOKEN`.\nYou can overwrite the default behaviour by instantiating with the `token` argument. \n\nIf running it in a Jupyter notebook, instantiate with `run_async=True`.\n\n### Send a message\n\nYou can send messages to any channel (using the channel name or id), or any user (just set `channel=@`) \n`slackbot.send_message(channel='#general', message='Hello!')`\n\n### Send a file\n\nYou can also send files over slack, to any channel or user.\n\n`slackbot.send_file(channel='#general', file='', message='Check out this file!')`\n\n### More using the slack api directly\n\nYou can access methods from the raw slack client to use them directly.\n\n`slackbot.client.chat_postMessage(...)`\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/chrisg1622/slackbot", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "simple-slackbot", "package_url": "https://pypi.org/project/simple-slackbot/", "platform": "", "project_url": "https://pypi.org/project/simple-slackbot/", "project_urls": { "Homepage": "https://github.com/chrisg1622/slackbot" }, "release_url": "https://pypi.org/project/simple-slackbot/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A simple python wrapper for the slack API", "version": "0.1.0" }, "last_serial": 5321793, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c65b6f255f05994ca5ab42c0afa8d85d", "sha256": "94b9bb1debd1350a1d0572c8268e7df810b55b9796eb956d1197a63a7f079134" }, "downloads": -1, "filename": "simple_slackbot-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c65b6f255f05994ca5ab42c0afa8d85d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15083, "upload_time": "2019-05-27T10:38:09", "url": "https://files.pythonhosted.org/packages/57/bd/eb7ad11ae1108f6b37ba1c2d311f7ae04e079a8229d7b49a6b0295e66d7f/simple_slackbot-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e5b19bea4cdc200f9061fe07d38303e", "sha256": "ee2b8acb2577e6bdacf3ae2cca488063d6f504e0ceff7cf5d89da2656a1d5b2a" }, "downloads": -1, "filename": "simple-slackbot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7e5b19bea4cdc200f9061fe07d38303e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2282, "upload_time": "2019-05-27T10:38:11", "url": "https://files.pythonhosted.org/packages/e2/2c/9cc93185985c0faa6ceb690b987582a93f1fd4ccaa5e8528fb78f90cb1af/simple-slackbot-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c65b6f255f05994ca5ab42c0afa8d85d", "sha256": "94b9bb1debd1350a1d0572c8268e7df810b55b9796eb956d1197a63a7f079134" }, "downloads": -1, "filename": "simple_slackbot-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c65b6f255f05994ca5ab42c0afa8d85d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15083, "upload_time": "2019-05-27T10:38:09", "url": "https://files.pythonhosted.org/packages/57/bd/eb7ad11ae1108f6b37ba1c2d311f7ae04e079a8229d7b49a6b0295e66d7f/simple_slackbot-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e5b19bea4cdc200f9061fe07d38303e", "sha256": "ee2b8acb2577e6bdacf3ae2cca488063d6f504e0ceff7cf5d89da2656a1d5b2a" }, "downloads": -1, "filename": "simple-slackbot-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7e5b19bea4cdc200f9061fe07d38303e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2282, "upload_time": "2019-05-27T10:38:11", "url": "https://files.pythonhosted.org/packages/e2/2c/9cc93185985c0faa6ceb690b987582a93f1fd4ccaa5e8528fb78f90cb1af/simple-slackbot-0.1.0.tar.gz" } ] }