{ "info": { "author": "James Coleman", "author_email": "jamescoleman@me.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# Slacktory\n\nA decorator which is called using:\n```python\n@slacktory.watch('the text to watch for')\n``` \n...that watches a specified Slack channel for **new** Slack message posts whose ['text'] value is equivalent to the provided string argument\n\nRequires **Python 3.7**\n## Installation\n\n\n\n```sh\npip install slacktory\n```\nFor this decorator to work, you must first create a [Slack App](https://api.slack.com/apps)\n\nThen create a **local_settings.py** file in your project's root directory with the following content:\n\n```python\nname = ''\nchannel = ''\ntoken = ''\nwebhook = ''\n\n```\n\n---------------------------------------------------\n\nAll of the above information can be obtained when setting up your [Slack App](https://api.slack.com/apps)\n\n## Usage example\n\n```python\n>>> import slacktory\n>>> @slacktory.watch('do the thing') # the decorator \n>>> def the_thing():\n\n # do something here...\n\n```\nIn the above example, the_thing() will be called once the @slacktory.watch decorator has detected the text '_do the thing_' in a new Slack message in the Slack channel (specified in **local_settings.py**).\n\n\n\n## Release History\n\n\n* 1.0.0\n * first release\n* 1.0.1\n * minor README changes\n* 1.0.2\n * minor README changes\n* 1.0.3\n * use nonlocal variables to remove the need for a recursive call on decorated function\n * remove polling, add while True\n* 1.0.4\n * Add try/except with error message for import local_settings\n * Add license copy\n* 1.0.5\n * add exception handling\n\n## Meta\n\nJames Coleman \u2013 jamescoleman@me.com\n\nDistributed under the MIT license. See ``LICENSE`` for more information.\n\n[gitlab.com/jamescoleman/slacktory](https://gitlab.com/j9mes/slacktory)\n\n## Contributing\n\n1. Fork it ()\n2. Create your feature branch (`git checkout -b feature/fooBar`)\n3. Commit your changes (`git commit -am 'Add some fooBar'`)\n4. Push to the branch (`git push origin feature/fooBar`)\n5. Create a new Pull Request\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "slacktory", "package_url": "https://pypi.org/project/slacktory/", "platform": "", "project_url": "https://pypi.org/project/slacktory/", "project_urls": null, "release_url": "https://pypi.org/project/slacktory/1.0.5/", "requires_dist": null, "requires_python": "", "summary": "Simple Slack interface", "version": "1.0.5" }, "last_serial": 5405912, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f6121e74e219bbe9b3437985d803a74a", "sha256": "fe16e362d39d0a518d0ae3bbc3bcfaf3357de8d1ab093f07a06a6e6365859ba5" }, "downloads": -1, "filename": "slacktory-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f6121e74e219bbe9b3437985d803a74a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3542, "upload_time": "2019-06-09T08:05:22", "url": "https://files.pythonhosted.org/packages/36/9c/9a1fc487063c2b7cfc1d79401d0dad4cba244acdbf46cc92275592733275/slacktory-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d07b9feb807c4e66cbbc582e15504a1", "sha256": "9cbebc3713c935141f917ee2f929bbffe52523352c5f3dba6d94cd4a03cbacea" }, "downloads": -1, "filename": "slacktory-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1d07b9feb807c4e66cbbc582e15504a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3363, "upload_time": "2019-06-09T08:05:24", "url": "https://files.pythonhosted.org/packages/a6/9d/8d0dbc4fee6a01d901263b54074f51d70ac104b971ed51f9bfbb9264e34e/slacktory-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c26911044f9ad0617d3fca56c8b13283", "sha256": "bd354e90a48dce162c80c4a9d8c990c387618e291ed2c9e6486a7a52196a90c3" }, "downloads": -1, "filename": "slacktory-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c26911044f9ad0617d3fca56c8b13283", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3564, "upload_time": "2019-06-09T21:48:42", "url": "https://files.pythonhosted.org/packages/23/31/e1ab5690afdd5ce49ba4fa37aefb1df99b12489229006a24daf90d488a99/slacktory-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "431740c4cad99285bbabc78e389f9f85", "sha256": "7c0934e64386f06564ea799c3eecb44b0122bd7d09e927188b1c94cfd9e1b100" }, "downloads": -1, "filename": "slacktory-1.0.1.tar.gz", "has_sig": false, "md5_digest": "431740c4cad99285bbabc78e389f9f85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418, "upload_time": "2019-06-09T21:48:45", "url": "https://files.pythonhosted.org/packages/ed/b4/0b53b4d31101ab49d499aaaf100b01f7684d955d38caea45297783265527/slacktory-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c802a43c12457dec88a5fbfbab7ab205", "sha256": "77fcbbddcf088a5a7f84a3bae7b3c457f8860253ee1c7fd6d45acab67ff11579" }, "downloads": -1, "filename": "slacktory-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c802a43c12457dec88a5fbfbab7ab205", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3585, "upload_time": "2019-06-09T22:00:15", "url": "https://files.pythonhosted.org/packages/2a/cc/3f0829c6d0f96442bd46666702ce5bd0760c2139c009352214b285e0a5bd/slacktory-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6ffb796b42555321fb3838089987eecc", "sha256": "d914f04a99e44e1a15c8a2f8598cd636ab0825d1093965666b5560e00fc2ec68" }, "downloads": -1, "filename": "slacktory-1.0.2.tar.gz", "has_sig": false, "md5_digest": "6ffb796b42555321fb3838089987eecc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3452, "upload_time": "2019-06-09T22:00:19", "url": "https://files.pythonhosted.org/packages/fb/fd/7ba36a72e55cd34a3d7b6a7ac40c5a6e58b3b122f571a0ead4a7d7390858/slacktory-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "3a7979d78617d75f5563931850c0ee0e", "sha256": "59a5af56e98585fb5aa0f92a0f675331a0dca93b3e4c3070fe18880edff939e9" }, "downloads": -1, "filename": "slacktory-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "3a7979d78617d75f5563931850c0ee0e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3250, "upload_time": "2019-06-10T02:19:39", "url": "https://files.pythonhosted.org/packages/0f/c5/387c6d77d33ba734e924fbab231489dee3e3352a611cb565c01ff32c55b6/slacktory-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b085bd3eefcc0568ad2fa866e913ad0a", "sha256": "b6842931b6f1efce59cd03a7f5dd97bbc821061f2f64d778baf10e7889d9dfb6" }, "downloads": -1, "filename": "slacktory-1.0.3.tar.gz", "has_sig": false, "md5_digest": "b085bd3eefcc0568ad2fa866e913ad0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3034, "upload_time": "2019-06-10T02:19:44", "url": "https://files.pythonhosted.org/packages/33/63/9fb8168806f070f7f0054bedb14f1b71d42a9bdcd09f589ca5e9e977aed6/slacktory-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "6c22f618dc8f61775c010ae69ccf52ef", "sha256": "7a059b9c4c7124f315e7eacb7944737c910e1c4dc34498e7a3e4de3614854cd2" }, "downloads": -1, "filename": "slacktory-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "6c22f618dc8f61775c010ae69ccf52ef", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4177, "upload_time": "2019-06-10T09:35:02", "url": "https://files.pythonhosted.org/packages/ac/ee/d6c8d5d9c615a7683357bffd9e107fabd51a1886009c3335b831020fbcb0/slacktory-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a86bfdfc779800cb0446df11caf3701b", "sha256": "7122b1214c43a8b061a61945e923f78c390ce2117200e7b8382ca42770e823cc" }, "downloads": -1, "filename": "slacktory-1.0.4.tar.gz", "has_sig": false, "md5_digest": "a86bfdfc779800cb0446df11caf3701b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3125, "upload_time": "2019-06-10T09:35:09", "url": "https://files.pythonhosted.org/packages/82/9d/c8dc428ea0be947d56a0ffbf65e6e44ef4afa7c265bdf2a10eac3df45376/slacktory-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "c86632df8a6faed8fcb86874ed61742b", "sha256": "bc8fa4860e3c8733f1a8ab4d6b84b4c7d80d5e284a11db4542a88e3e230865ea" }, "downloads": -1, "filename": "slacktory-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "c86632df8a6faed8fcb86874ed61742b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4247, "upload_time": "2019-06-16T08:14:21", "url": "https://files.pythonhosted.org/packages/ae/a7/e30b6ba3cafd0ff12c0f2e79f2d263a7284503303d62e3093ac1af05608b/slacktory-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc50fca046ee438e75ce3725de033d15", "sha256": "fa06c9ce6ea18c3421f8a4905acc9e90fc12816c0c20bb2d0517dc330d597918" }, "downloads": -1, "filename": "slacktory-1.0.5.tar.gz", "has_sig": false, "md5_digest": "dc50fca046ee438e75ce3725de033d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3199, "upload_time": "2019-06-16T08:14:27", "url": "https://files.pythonhosted.org/packages/8c/3e/278a89a3630819c7c58599b1582a007ca14399f4203bb7ba32cce65be421/slacktory-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c86632df8a6faed8fcb86874ed61742b", "sha256": "bc8fa4860e3c8733f1a8ab4d6b84b4c7d80d5e284a11db4542a88e3e230865ea" }, "downloads": -1, "filename": "slacktory-1.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "c86632df8a6faed8fcb86874ed61742b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4247, "upload_time": "2019-06-16T08:14:21", "url": "https://files.pythonhosted.org/packages/ae/a7/e30b6ba3cafd0ff12c0f2e79f2d263a7284503303d62e3093ac1af05608b/slacktory-1.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc50fca046ee438e75ce3725de033d15", "sha256": "fa06c9ce6ea18c3421f8a4905acc9e90fc12816c0c20bb2d0517dc330d597918" }, "downloads": -1, "filename": "slacktory-1.0.5.tar.gz", "has_sig": false, "md5_digest": "dc50fca046ee438e75ce3725de033d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3199, "upload_time": "2019-06-16T08:14:27", "url": "https://files.pythonhosted.org/packages/8c/3e/278a89a3630819c7c58599b1582a007ca14399f4203bb7ba32cce65be421/slacktory-1.0.5.tar.gz" } ] }