{
"info": {
"author": "R\u00e9gis Behmo",
"author_email": "nospam@behmo.com",
"bugtrack_url": null,
"classifiers": [
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
"description": "=========\nslack-cli\n=========\n\nEffectively interact with `Slack `_ from the command line: send\nmessages, upload files, send command output, pipe content... all from the confort\nof your terminal.\n\nMember of dozens of Slack teams? No worries, with ``slack-cli`` you can easily switch\nfrom one team to another.\n\n.. image:: https://raw.githubusercontent.com/regisb/slack-cli/master/demo.png\n\nQuickstart\n==========\n\n::\n\n $ pip install slack-cli\n $ slack-cli -d general \"Hello everyone!\"\n\n\nYou will be asked to provide a Slack API token. It's easy, just get one from the\n`API token generator `_.\n\nUsage\n=====\n\n::\n\n $ slack-cli -h\n usage: slack-cli [-h] [-t TOKEN] [-T TEAM] [-d DST] [-f FILE] [--pre] [--run]\n [-u USER] [-s SRC] [-l LAST]\n [messages [messages ...]]\n\n Send, pipe, upload and receive Slack messages from the CLI\n\n optional arguments:\n -h, --help show this help message and exit\n -t TOKEN, --token TOKEN\n Explicitely specify Slack API token which will be\n saved to /home/user/.config/slack-cli/slack_token.\n -T TEAM, --team TEAM Team domain to interact with. This is the name that\n appears in the Slack url: https://xxx.slack.com. Use\n this option to interact with different teams. If\n unspecified, default to the team that was last used.\n\n Send messages:\n -d DST, --dst DST Send message to a Slack channel, group or username\n -f FILE, --file FILE Upload file\n --pre Send as verbatim `message`\n --run Run the message as a shell command and send both the\n message and the command output\n -u USER, --user USER Send message not as the current user, but as a bot\n with the specified user name\n messages Messages to send (messages can also be sent from\n standard input)\n\n Receive messages:\n -s SRC, --src SRC Receive messages from a Slack channel, group or\n username. This option can be specified multiple times.\n When streaming, use 'all' to stream from all sources.\n -l LAST, --last LAST Print the last N messages. If this option is not\n specified, messages will be streamed from the\n requested sources.\n\nSending messages\n----------------\n\nThe destination argument may be any user, group or channel::\n\n $ slack-cli -d general \"Hello everyone!\"\n $ slack-cli -d slackbot \"Hello!\"\n\nSend message with a different username::\n\n $ slack-cli -d general -u terminator \"I'll be back\"\n\nPipe content from stdin\n~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n $ cat /etc/hosts | slack-cli -d devteam\n\nUsually you will want to format piped content as verbatim content with triple\nbackticks (\"\\`\\`\\`\"). This is achieved with the ``--pre`` option::\n\n $ tail -f /var/log/nginx/access.log | slack-cli -d devteam --pre\n\nUpload file\n~~~~~~~~~~~\n\n::\n\n $ slack-cli -f /etc/nginx/sites-available/default.conf -d alice\n\nRun command and send output\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis is really convenient for showing both the result of a command and the\ncommand itself::\n\n $ slack-cli -d john --run \"git log -1\"\n\nwill send to user ``john``::\n\n $ git log -1\n commit 013798f5c85043d31f0221a9a32b39298e97fb08\n Author: R\u00e9gis Behmo \n Date: Thu Jun 22 15:20:36 2017 +0200\n\n Replace all commands by a single command\n \n Our first 1.0 release!\n \nReceiving messages\n------------------\n\nStream to stdout\n~~~~~~~~~~~~~~~~\n\nStream the content of a channel::\n\n $ slack-cli -s general\n\nMonitor all conversations::\n\n $ slack-cli -s all\n\nDump (backup) the content of a channel\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n $ slack-cli -s general --last 10000 > general.log\n $ slack-cli -s myboss --last 10000 > covermyass.log\n\nAuthentication\n--------------\n\nSwitch to a different team\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSwitch to a different team anytime with the ``-T`` flag::\n\n $ slack-cli -T family -d general \"I'll be home in an hour\"\n\nThe new team will become the new default team.\n\nToken management\n~~~~~~~~~~~~~~~~\n\nNote that the Slack token may optionally be stored in an environment variable (although it\nis not recommended `for security reasons `_)::\n\n $ export SLACK_TOKEN=\"slack_token_string\"\n\nBells and Whistles \u1555(\u2310\u25a0_\u25a0)\u1557 \u266a\u266c\n------------------------------\n\nAutocomplete\n~~~~~~~~~~~~\n\nChannel, group and user names can be autocompleted from the command line for `bash` users. Add the following line to `~/.bashrc`::\n\n eval \"$(register-python-argcomplete slack-cli)\"\n\nThen, try autocompletion with::\n\n $ slack -s gene\n\nor::\n \n $ slack -d \n\nUnfortunately, I did not manage to get autocompletion to work with ``zsh`` \u00af\\\\_( \u0361\u00b0 \u035c\u0296 \u0361\u00b0)_/\u00af Please let me know if you have more success.\n\nColors\n~~~~~~\n\nColor output is activated by default in compatible terminals. To deactivate colors, define the ``SLACK_CLI_NO_COLOR`` environment variable::\n\n export SLACK_CLI_NO_COLORS=1\n\nEmojis\n~~~~~~\n\nEmoji short codes will be automatically replaced by their corresponding unicode value. For instance, ``:smile:`` will become \ud83d\ude04. However, **these characters will display properly only if your terminal supports them!** I stronly encourage you to download patched fonts from `Nerd Fonts `_ and to configure your terminal to use them. For instance, in Ubuntu this is how I downloaded the DejaVuSansMono fonts::\n\n wget -O ~/.fonts/DejaVuSansMono.zip https://github.com/ryanoasis/nerd-fonts/releases/download/v2.0.0/DejaVuSansMono.zip\n cd ~/.fonts\n unzip DejaVuSansMono.zip\n fc-cache -vf ~/.fonts\n\nIf emojis are not your thing, you can disable them globally with the ``SLACK_CLI_NO_EMOJI`` environment variable::\n\n export SLACK_CLI_NO_EMOJI=1\n\nDevelopment\n-----------\n\nContributions\n~~~~~~~~~~~~~\n\nI am very much open to comments! Please don't be afraid to `raise issues\n`_ or `open pull requests\n`_.\n\nThis work is licensed under the terms of the `MIT License\n`_\n\nNote that this project was initially a fork of `slacker-cli `_\nbut the two projects have now considerably diverged.\n\nTests\n~~~~~\n\nRun unit tests::\n\n python -m unittest discover tests\n\nUpdate emojis\n~~~~~~~~~~~~~\n\n::\n\n python -c \"from slackcli.emoji import Emojis; Emojis.download()\"\n\nChangelog\n=========\n\nv2.2.4 (2019-02-17)\n\n- Fix crash on receiving private group message\n\nv2.2.3 (2019-01-16)\n\n- Properly identify bots\n- Properly print bot messages\n\nv2.2.1 (2018-12-22)\n\n- Colorized output\n- Emojis!\n\nv2.1.2 (2018-12-21)\n\n- CLI bash autocompletion\n- Fix default token saving on team change\n\nv2.1.1 (2018-12-20)\n\n- Correctly print user and channel names\n\nv2.1.0 (2018-12-07)\n\n- Faster search/stream\n- Stream from all channels (``-s all``)\n- Send messages as a different user (``-u terminator``)\n\nv2.0.2 (2017-09-13)\n\n- Better error management\n\nv2.0.1 (2017-09-09)\n\n- Simplify reading from stdin\n\nv2.0.0 (2017-09-09)\n\n- Add support for multiple teams\n- Fix streaming issues\n- Improve printed message format\n- Simplify sending messages from stdin\n\nv1.0.3 (2017-09-04):\n\n- Add \"--last\" flag to print an entire conversation\n\nv1.0.2 (2017-08-31):\n\n- Fix token verification issue for users that don't have a \"general\" channel\n\nv1.0 (2017-07-06):\n\n- Refactor command line by reducing all commands to a single \"slack-cli\" command.\n- Interactive API token input.\n- Automatic token creation check.",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/regisb/slack-cli",
"keywords": "",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "slack-cli",
"package_url": "https://pypi.org/project/slack-cli/",
"platform": "",
"project_url": "https://pypi.org/project/slack-cli/",
"project_urls": {
"Homepage": "https://github.com/regisb/slack-cli"
},
"release_url": "https://pypi.org/project/slack-cli/2.2.5/",
"requires_dist": null,
"requires_python": "",
"summary": "Slack CLI for productive developers",
"version": "2.2.5"
},
"last_serial": 5003654,
"releases": {
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "207f17e7a850a6d2e09c94aab8143332",
"sha256": "c332ef80c676a982682ee9a7ae7b2740b9f6a776580bb669b992eb9b5ef43921"
},
"downloads": -1,
"filename": "slack-cli-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "207f17e7a850a6d2e09c94aab8143332",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4088,
"upload_time": "2016-03-24T17:37:58",
"url": "https://files.pythonhosted.org/packages/b3/36/e1e80b4a756d814b136f15c889b380540ea5e927d73b76c08b5777d95b82/slack-cli-0.2.0.tar.gz"
}
],
"0.2.1": [
{
"comment_text": "",
"digests": {
"md5": "3a0e36d8f223e6c6d8a5d658e3f77c70",
"sha256": "137dcec94f9057ad4b8998e58c9f49502f076f6254639369530646a84acd9ac0"
},
"downloads": -1,
"filename": "slack-cli-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "3a0e36d8f223e6c6d8a5d658e3f77c70",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4674,
"upload_time": "2017-06-22T12:29:52",
"url": "https://files.pythonhosted.org/packages/d0/4c/8d4c70068c0f90e9a5fcd2cf8b8800d1a073bc0878a4ece8816044b89898/slack-cli-0.2.1.tar.gz"
}
],
"1.0.1": [
{
"comment_text": "",
"digests": {
"md5": "b0d5675b89b1967dc31585d8120102bd",
"sha256": "994f7420990ad2d731bebe13dc1efd076b2627b0617d9f31721f252bdb8f1b47"
},
"downloads": -1,
"filename": "slack-cli-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "b0d5675b89b1967dc31585d8120102bd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5574,
"upload_time": "2017-07-06T11:12:01",
"url": "https://files.pythonhosted.org/packages/21/d9/9e0c1c26d0c20de464e6502d093490082f9149a29ff16b684d30a1518cc5/slack-cli-1.0.1.tar.gz"
}
],
"1.0.2": [
{
"comment_text": "",
"digests": {
"md5": "fb41015d8a9f5c19fe8ad19a768745b1",
"sha256": "a5d5b80ca8461b9144b0dae6b0a4e95ed2908aa0a2194d5cbe6268b29b56fb8e"
},
"downloads": -1,
"filename": "slack-cli-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "fb41015d8a9f5c19fe8ad19a768745b1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5651,
"upload_time": "2017-08-31T13:48:27",
"url": "https://files.pythonhosted.org/packages/14/a6/2e618009ebbc51eecffc03ed365c9cae59a20a74e1daf52f05a3ff9950d5/slack-cli-1.0.2.tar.gz"
}
],
"1.0.3": [
{
"comment_text": "",
"digests": {
"md5": "326763ae4a9baa79441e61b22ceb13b0",
"sha256": "25971379ed6a47fc3a1c8cf46fb3bd896b7c727f43dd449bb3d114a0283e3892"
},
"downloads": -1,
"filename": "slack-cli-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "326763ae4a9baa79441e61b22ceb13b0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6642,
"upload_time": "2017-09-04T18:48:45",
"url": "https://files.pythonhosted.org/packages/7a/32/3905aec85ac1b12c8cd1b49a961812ff2a5841205ef8854dd6f92a57f148/slack-cli-1.0.3.tar.gz"
}
],
"2.0.0": [
{
"comment_text": "",
"digests": {
"md5": "7cbf1025d1573d66cd6db3e13204bf2b",
"sha256": "49c9ec0bf79a2881557557541f24450eb5366d095953a456471a2e550815c5a9"
},
"downloads": -1,
"filename": "slack-cli-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7cbf1025d1573d66cd6db3e13204bf2b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8247,
"upload_time": "2017-09-09T12:49:26",
"url": "https://files.pythonhosted.org/packages/4d/af/cb3de61aefd958104d0664370172d41ea78b46b0c2e67c1c76a2ab407e45/slack-cli-2.0.0.tar.gz"
}
],
"2.0.1": [
{
"comment_text": "",
"digests": {
"md5": "626f4128ae4187e6105a2b469c276394",
"sha256": "e87bdb57e4cb0ef5b0d0d4991c2335ea8329485c1796b5cf2300cff88f6ec739"
},
"downloads": -1,
"filename": "slack-cli-2.0.1.tar.gz",
"has_sig": false,
"md5_digest": "626f4128ae4187e6105a2b469c276394",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8269,
"upload_time": "2017-09-09T12:54:09",
"url": "https://files.pythonhosted.org/packages/65/3d/447a01628ff067dc1a4fe95583543beca522e8d7ed86cc28f45b97527c85/slack-cli-2.0.1.tar.gz"
}
],
"2.0.2": [
{
"comment_text": "",
"digests": {
"md5": "6b48c086bfbfa7800dde23ceba1de6e8",
"sha256": "3ef46799ebccc2d398293277e40956ebe3167ca1ef233f4c35a6a266e8d2cab6"
},
"downloads": -1,
"filename": "slack-cli-2.0.2.tar.gz",
"has_sig": false,
"md5_digest": "6b48c086bfbfa7800dde23ceba1de6e8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8338,
"upload_time": "2017-09-13T17:05:22",
"url": "https://files.pythonhosted.org/packages/ce/90/247e7e5d1bff03f815582743c05fd32e0f724f5a84ca4f812bd35f579bde/slack-cli-2.0.2.tar.gz"
}
],
"2.0.3": [
{
"comment_text": "",
"digests": {
"md5": "ba28eeb85908ff2b457a0d91611e23de",
"sha256": "1569947775202fa564e3b048aa416b190a115108c18b6a790ae6d250cd98c9c6"
},
"downloads": -1,
"filename": "slack-cli-2.0.3.tar.gz",
"has_sig": false,
"md5_digest": "ba28eeb85908ff2b457a0d91611e23de",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8432,
"upload_time": "2018-01-20T14:03:04",
"url": "https://files.pythonhosted.org/packages/10/00/8a4b5dda9710e1a1e82b9c5b31fe14161710a563add0ec003240dcd38f45/slack-cli-2.0.3.tar.gz"
}
],
"2.1.0": [
{
"comment_text": "",
"digests": {
"md5": "66168a2666424de90b744c86627f7058",
"sha256": "39fbf1c21acb410a0908096a0f6580b0528dde68b2bc20b4e763139858602ebd"
},
"downloads": -1,
"filename": "slack-cli-2.1.0.tar.gz",
"has_sig": false,
"md5_digest": "66168a2666424de90b744c86627f7058",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9366,
"upload_time": "2018-12-07T15:26:23",
"url": "https://files.pythonhosted.org/packages/ce/94/17fe655df54249633c616e166ea0025c488a054772f3f40ff5f728c60a47/slack-cli-2.1.0.tar.gz"
}
],
"2.1.1": [
{
"comment_text": "",
"digests": {
"md5": "ca98a4149ee513fa1d13b8cf1dc7d3a2",
"sha256": "5c935d87b31fd4b581781c95c61f99022807eefd5ec105cb226e431bd7d83347"
},
"downloads": -1,
"filename": "slack-cli-2.1.1.tar.gz",
"has_sig": false,
"md5_digest": "ca98a4149ee513fa1d13b8cf1dc7d3a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9693,
"upload_time": "2018-12-20T08:03:41",
"url": "https://files.pythonhosted.org/packages/e5/48/49b139b7274ad23dd069918b07bb8e2db7b5d1bdc1d4b32be5b7c1c65e7b/slack-cli-2.1.1.tar.gz"
}
],
"2.1.2": [
{
"comment_text": "",
"digests": {
"md5": "b8b28e48381010448e9407d5703799a4",
"sha256": "4d918277a1292f23d44f69035d1b581a41016fa33b6c12fc11149a7aa000af27"
},
"downloads": -1,
"filename": "slack-cli-2.1.2.tar.gz",
"has_sig": false,
"md5_digest": "b8b28e48381010448e9407d5703799a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10359,
"upload_time": "2018-12-21T19:18:38",
"url": "https://files.pythonhosted.org/packages/ea/2b/00cefd2535e7eeb723d6cabe57a8a0ae90b985817d940b7d295e1e7db399/slack-cli-2.1.2.tar.gz"
}
],
"2.2.0": [
{
"comment_text": "",
"digests": {
"md5": "b283fb9c8de1a49970e3eee793f3f430",
"sha256": "1a3d87b59a809cdd02fa3b01204461e221c616c42422fd913081fc33119d8241"
},
"downloads": -1,
"filename": "slack-cli-2.2.0.tar.gz",
"has_sig": false,
"md5_digest": "b283fb9c8de1a49970e3eee793f3f430",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14816,
"upload_time": "2018-12-22T15:24:35",
"url": "https://files.pythonhosted.org/packages/a6/54/0aa3be24655d26af6b7d59ee8fb30dbb1185236bd123acc27f013dcfbf35/slack-cli-2.2.0.tar.gz"
}
],
"2.2.1": [
{
"comment_text": "",
"digests": {
"md5": "f612f5f535d538f495347f6c2556e049",
"sha256": "66d02423015ace8e5f0b694b0b6dd47e204677bef2a2e21fa0df5af7a1c6200f"
},
"downloads": -1,
"filename": "slack-cli-2.2.1.tar.gz",
"has_sig": false,
"md5_digest": "f612f5f535d538f495347f6c2556e049",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14829,
"upload_time": "2018-12-22T15:30:53",
"url": "https://files.pythonhosted.org/packages/ec/94/34454784f997053272fea02619fe25d29e06677a8cf89196a85006679cf1/slack-cli-2.2.1.tar.gz"
}
],
"2.2.2": [
{
"comment_text": "",
"digests": {
"md5": "16944f9c627c9b6304d26635fb9a2e8e",
"sha256": "596ff8c2c8131a787bbff3e66f7ea2b9cb0c25c2eeddbdf00f93bd8e8af7a0fd"
},
"downloads": -1,
"filename": "slack-cli-2.2.2.tar.gz",
"has_sig": false,
"md5_digest": "16944f9c627c9b6304d26635fb9a2e8e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29129,
"upload_time": "2018-12-27T22:25:30",
"url": "https://files.pythonhosted.org/packages/f6/f0/28413e7afe6c7e583e444a699010973bbdfb74c61fbe20ddfdada8f433e2/slack-cli-2.2.2.tar.gz"
}
],
"2.2.3": [
{
"comment_text": "",
"digests": {
"md5": "a28bd302998adcb50f44c11f3c89071d",
"sha256": "46ba812c012925e8d756a5e03326ce3819ac3c289d80568eccd80d6e6b9f23fd"
},
"downloads": -1,
"filename": "slack-cli-2.2.3.tar.gz",
"has_sig": false,
"md5_digest": "a28bd302998adcb50f44c11f3c89071d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29537,
"upload_time": "2019-01-16T16:05:11",
"url": "https://files.pythonhosted.org/packages/b0/89/98ad99d8fa678c309778758a48c3a47053098cbf78083c6d82b574fc7e64/slack-cli-2.2.3.tar.gz"
}
],
"2.2.4": [
{
"comment_text": "",
"digests": {
"md5": "9d801a13866ef8323b82ac1b704e9b78",
"sha256": "cf598c4ab49694ed9740744dedaa82490cdd2189b9c0cad5c94b5d9a75c1b7c7"
},
"downloads": -1,
"filename": "slack-cli-2.2.4.tar.gz",
"has_sig": false,
"md5_digest": "9d801a13866ef8323b82ac1b704e9b78",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29875,
"upload_time": "2019-02-17T09:09:10",
"url": "https://files.pythonhosted.org/packages/fe/76/4d2500060ee50297f776eec354b1f2925fb42e454991dec004650f677dff/slack-cli-2.2.4.tar.gz"
}
],
"2.2.5": [
{
"comment_text": "",
"digests": {
"md5": "dc43b3dbf713daa48ae4d08322aa97d7",
"sha256": "efd6bb90a6cd55c0f05308a34b61f7f2e1f21188198a702d466f4dd90be309e9"
},
"downloads": -1,
"filename": "slack-cli-2.2.5.tar.gz",
"has_sig": false,
"md5_digest": "dc43b3dbf713daa48ae4d08322aa97d7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29897,
"upload_time": "2019-03-29T14:59:18",
"url": "https://files.pythonhosted.org/packages/d7/32/d0d9f296ec1b5d80884fdb36dc3fdfe49e4615e9b525c1797fcd4d0bf2b1/slack-cli-2.2.5.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "dc43b3dbf713daa48ae4d08322aa97d7",
"sha256": "efd6bb90a6cd55c0f05308a34b61f7f2e1f21188198a702d466f4dd90be309e9"
},
"downloads": -1,
"filename": "slack-cli-2.2.5.tar.gz",
"has_sig": false,
"md5_digest": "dc43b3dbf713daa48ae4d08322aa97d7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29897,
"upload_time": "2019-03-29T14:59:18",
"url": "https://files.pythonhosted.org/packages/d7/32/d0d9f296ec1b5d80884fdb36dc3fdfe49e4615e9b525c1797fcd4d0bf2b1/slack-cli-2.2.5.tar.gz"
}
]
}