{ "info": { "author": "Konstantin Tretyakov", "author_email": "kt@ut.ee", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: IPython", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "=================================================\nIPython Magic for sending notifications to Slack\n=================================================\n\nInstallation\n------------\n::\n\n $ pip install ipyslack\n \nUsage\n-----\n1. Load the extension::\n\n %load_ext ipyslack\n\n2. Configure Slack API::\n\n %slack_setup -t -c \n\n To obtain the API token visit `this page `_.\n The ```` parameter may either denote a channel (e.g. ``#general``) or a user (e.g. ``@me``).\n \n Adding the option ``-u true`` to ``%slack_setup`` will make yourself the sender of all messages. Otherwise (default) the messages originate from ``slackbot``.\n\n In order to avoid having to write the API token in every notebook, you can create a file containing the same configuration line::\n \n -t -c -u false\n \n You can then load this configuration in the notebook by invoking::\n \n %slack_setup \n \n Even simpler, if you don't call ``%slack_setup`` at all, the extension will try to auto-configure itself on first use\n by searching for the files ``~/.ipyslack.cfg`` and ``.ipyslack.cfg`` (in this order) and\n trying to load configuration from these.\n \n Later files in this search order override the settings of the previous ones. That is, you can specify ``-t -c #default_group`` \n in the global ``~/.ipyslack.cfg``, and only override ``-c #project_group`` in the local ``.ipyslack.cfg``.\n \n3. Now adding::\n\n %%slack_notify \n\n at the top of any cell will send ```` to ```` whenever cell execution is completed. \n\n The patterns ``{out}`` and ``{err}`` within ```` will be substituted with stdout or stderr from the cell's execution. The pattern ``{exc}`` denotes the exception (if any was thrown). The string ``\\n`` denotes a new line. Simiarly, any variable named ``x`` in your workspace can be referred to as ``{x}`` (in fact, you can use the standard format string notation).\n\n Example::\n\n %%slack_notify *Completed {len(results)} trials. Last result: {results[-1]}!* :heavy_plus_sign:\\nStdout: {out}\\nStderr: {err}\\nException: {exc}\n\n4. In addition, the line-magic ``%slack_send `` lets you send notifications about partial results. E.g.::\n\n %%slack_notify Completed. Final accuracy: {accuracy}. {exc}\n ... computation ...\n %slack_send Half-way! Current accuracy: {accuracy}\n ... computation ...\n\nSee also\n--------\n\n* IPyTelegram: https://github.com/kalaidin/ipytelegram/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/konstantint/ipyslack", "keywords": "matplotlib plotting charts venn-diagrams", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ipyslack", "package_url": "https://pypi.org/project/ipyslack/", "platform": "Platform Independent", "project_url": "https://pypi.org/project/ipyslack/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/konstantint/ipyslack" }, "release_url": "https://pypi.org/project/ipyslack/1.2.1/", "requires_dist": null, "requires_python": null, "summary": "IPython magic for sending slack notifications", "version": "1.2.1" }, "last_serial": 2932817, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "0af276571013c7fefce9b3f43b1770ae", "sha256": "826273cf038e2a09327990260db6c4db867be21aed23dfd2dc3604a26c95035a" }, "downloads": -1, "filename": "ipyslack-1.0.zip", "has_sig": false, "md5_digest": "0af276571013c7fefce9b3f43b1770ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6511, "upload_time": "2017-06-04T14:20:37", "url": "https://files.pythonhosted.org/packages/8d/3c/ede8add9d3c89dd402de442473fde8db3f3fe22c2152adf161257325ab04/ipyslack-1.0.zip" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "5fd69e2c5e4e44bbadc923b052867222", "sha256": "b54def3c988907412968ac75d88fe9744da7c060e668e29278ab78780e3f0a99" }, "downloads": -1, "filename": "ipyslack-1.1.zip", "has_sig": false, "md5_digest": "5fd69e2c5e4e44bbadc923b052867222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7783, "upload_time": "2017-06-07T13:57:14", "url": "https://files.pythonhosted.org/packages/11/ce/6eb05080ec27a162c87b4a6101387938264f7e8f542428b672870b4985ee/ipyslack-1.1.zip" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "a1aadc560767fe53b856e244e0634466", "sha256": "5f6a564bc7bed5e7028004e26bfff510dec5c8a358c0eae506d69ec65539042c" }, "downloads": -1, "filename": "ipyslack-1.2.zip", "has_sig": false, "md5_digest": "a1aadc560767fe53b856e244e0634466", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8403, "upload_time": "2017-06-07T17:07:10", "url": "https://files.pythonhosted.org/packages/c8/b2/6862f34fbe3aa6c8324d3bdf1ab2d84d5be2c6b26e82bc3cd922fee28b92/ipyslack-1.2.zip" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "76a7d1a261c35e89822985ffc575fcc9", "sha256": "0c95e8f2bb59d8aebb779d54786b9c5bee0e8ec20ff328689566c45e70ae0494" }, "downloads": -1, "filename": "ipyslack-1.2.1.zip", "has_sig": false, "md5_digest": "76a7d1a261c35e89822985ffc575fcc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8475, "upload_time": "2017-06-07T17:09:20", "url": "https://files.pythonhosted.org/packages/13/d7/3c6cd4a2655fe997254e6145475e2521c5752221f90435c095dfb15dc7e5/ipyslack-1.2.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "76a7d1a261c35e89822985ffc575fcc9", "sha256": "0c95e8f2bb59d8aebb779d54786b9c5bee0e8ec20ff328689566c45e70ae0494" }, "downloads": -1, "filename": "ipyslack-1.2.1.zip", "has_sig": false, "md5_digest": "76a7d1a261c35e89822985ffc575fcc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8475, "upload_time": "2017-06-07T17:09:20", "url": "https://files.pythonhosted.org/packages/13/d7/3c6cd4a2655fe997254e6145475e2521c5752221f90435c095dfb15dc7e5/ipyslack-1.2.1.zip" } ] }