{ "info": { "author": "Chris Graffagnino", "author_email": "graffwebdev@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Slackelot\n=========\n\nSimple wrapper around the Slack Web API to post messages.\n\nDetails\n-------\n\n| Slackelot contains a single function:\n| ``send_message(message, webhook_url, pretext='', title='', author_name='', color=None)``\n\n**webhook\\_url** should be in the following format:\n``'https://hooks.slack.com/services/TEAM_ID/BOT_OR_CHANNEL_ID/AUTH_TOKEN'``\n\n*Example*\n\n::\n\n from slackelot import send_message\n\n\n webhook_url = 'https://hooks.slack.com/services/TXXXXXXXX/BXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX'\n message = 'Who wants to push the pram?\\n@lancelot @percival'\n pretext = 'Knights of the Round Table'\n title = 'Spamelot'\n author_name = 'Arthur'\n color = '#663399'\n\n send_message(message, webhook_url, pretext=pretext, title=title, author_name=author_name, color=color)\n\n.. figure:: https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot_example.png\n :alt: https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot\\_example.png\n\n https://github.com/Chris-Graffagnino/slackelot/blob/master/slackelot\\_example.png\n\nExtra Goodness\n~~~~~~~~~~~~~~\n\nPaid teams have the option to mention other subteams, (ie. channel). In\nthat case, you might append something like this to your message:\n\n``'\\n'`` (replace ``ID`` and ``HANDLE`` with your\nsubteam's id and name, respectively).\n\nFor more information on message formatting, see the `Slack API\ndocs `__\n\nFAQ\n---\n\n`Where do I find my Slack team\nid? `__\n\n`Where do I find my Slack channel\nids? `__\n\n`How do I create the url\n(webhook)? `__", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Chris-Graffagnino/slackelot", "keywords": "slack", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "slackelot", "package_url": "https://pypi.org/project/slackelot/", "platform": "", "project_url": "https://pypi.org/project/slackelot/", "project_urls": { "Homepage": "https://github.com/Chris-Graffagnino/slackelot" }, "release_url": "https://pypi.org/project/slackelot/0.0.4/", "requires_dist": null, "requires_python": ">=2.7", "summary": "A simple wrapper around the Slack web api to post messages", "version": "0.0.4" }, "last_serial": 3151608, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "ec82ed66a21ff537df61f8a86db7730a", "sha256": "b19a6e6d2a91b206b7e1e79111313ea0e03a1fd33b0386e660de0433617a944d" }, "downloads": -1, "filename": "slackelot-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ec82ed66a21ff537df61f8a86db7730a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 4187, "upload_time": "2017-09-05T20:18:46", "url": "https://files.pythonhosted.org/packages/bb/7d/b47a17ca42c8ecaa4a87f145cfca63cc0b92cdb81d48940abaa2b5a5b61f/slackelot-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "cda6396197ffcfe842894ea4c6530b8e", "sha256": "e53da06a9b64aa56b3fc3fb1f286bf16fd0c5b8cdf6c3e4ded4fdb4764f1de42" }, "downloads": -1, "filename": "slackelot-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cda6396197ffcfe842894ea4c6530b8e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 4177, "upload_time": "2017-09-05T21:35:15", "url": "https://files.pythonhosted.org/packages/3d/87/12e51b25b1cb37825dd52b85bb7560f09b67f898a89af43e9eadeb99054d/slackelot-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cda6396197ffcfe842894ea4c6530b8e", "sha256": "e53da06a9b64aa56b3fc3fb1f286bf16fd0c5b8cdf6c3e4ded4fdb4764f1de42" }, "downloads": -1, "filename": "slackelot-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cda6396197ffcfe842894ea4c6530b8e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 4177, "upload_time": "2017-09-05T21:35:15", "url": "https://files.pythonhosted.org/packages/3d/87/12e51b25b1cb37825dd52b85bb7560f09b67f898a89af43e9eadeb99054d/slackelot-0.0.4.tar.gz" } ] }