{ "info": { "author": "Jeongsoo Park", "author_email": "jeongsoo.park@bothub.studio", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Utilities" ], "description": "==========\nbothub-cli\n==========\n---------------------------\nCLI tool for deploy chatbot\n---------------------------\n\nThis package provides command line interface to `Bothub.studio`_ service.\n\nInstallation\n============\n\nTo install bothub-cli::\n\n $ pip install bothub-cli\n\nor, if you are not installing in a ``virtualenv``::\n\n $ sudo pip install bothub-cli\n\nThe bothub-cli package works on python2 and 3 both.\n\n\nGetting Started\n===============\n\nBefore using bothub-cli, you need to tell it about your `Bothub.studio`_ credentials.\n\n.. code:: bash\n\n $ bothub configure\n Username: myuser\n Password: mysecret\n\nThen it stores access token on ``~/.bothub`` directory.\n\nTo start build a new bot:\n\n.. code:: bash\n\n $ mkdir mybot\n $ cd mybot\n $ bothub init\n Project name: mybot\n\nNow you have a starter echo bot::\n\n .\n |-- bothub\n |\u00a0\u00a0 |-- bot.py\n |\u00a0\u00a0 `-- __init__.py\n |-- bothub.yml\n |-- requirements.txt\n `-- tests\n\nEdit bot.py below for your purpose.\n\n.. code:: python\n\n # -*- coding: utf-8 -*-\n\n from __future__ import (absolute_import, division, print_function, unicode_literals)\n\n from bothub_client.bot import BaseBot\n from bothub_client.decorators import channel\n\n class Bot(BaseBot):\n \"\"\"Represent a Bot logic which interacts with a user.\n\n BaseBot superclass have methods belows:\n\n * Send message\n * self.send_message(message, chat_id=None, channel=None)\n * Data Storage\n * self.set_project_data(data)\n * self.get_project_data()\n * self.set_user_data(data, user_id=None, channel=None)\n * self.get_user_data(user_id=None, channel=None)\n * Channel Handler\n from bothub_client.decorators import channel\n @channel('')\n def channel_handler(self, event, context):\n # Handle a specific channel message\n * Command Handler\n from bothub_client.decorators import command\n @command('')\n def command_handler(self, event, context, args):\n # Handle a command('/')\n * Intent Handler\n from bothub_client.decorators import intent\n @intent('')\n def intent_result_handler(self, event, context, answers):\n # Handle a intent result\n # answers is a dict and contains intent's input data\n {\n \"\" : \n ...\n }\n \"\"\"\n @channel()\n def default_handler(self, event, context):\n\nand deploy it.\n\n.. code:: bash\n\n $ bothub deploy\n\nYou also need to configure channel to use.\n\n.. code:: bash\n\n $ bothub channel add telegram --api-key=\n\nUsage\n=====\n\n::\n\n Usage: bothub [OPTIONS] COMMAND [ARGS]...\n\n Bothub is a command line tool that configure, init, and deploy bot codes\n to BotHub.Studio service\n\n Options:\n --help Show this message and exit.\n\n Commands:\n channel Setup channels of current project\n clone Clone existing project\n configure Setup credentials\n deploy Deploy project\n init Initialize project\n logs Show error logs\n ls List projects\n nlu Manage project NLU integrations\n property Manage project properties\n rm Delete a project\n test Run test chat session\n\n\nSetup\n-----\n\nAuthorize a user and get access token.\n\n.. code:: bash\n\n $ bothub configure\n\n\nProject management\n------------------\n\nInitialize project on current directory. Create a echo chatbot code.\n\n.. code:: bash\n\n $ bothub init\n\nDeploy current project.\n\n.. code:: bash\n\n $ bothub clone \n\nClone an existing project.\n\n.. code:: bash\n\n $ bothub deploy\n\nList of projects.\n\n.. code:: bash\n\n $ bothub ls\n\nDelete a project.\n\n.. code:: bash\n\n $ bothub rm \n\nShow error logs.\n\n.. code:: bash\n\n $ bothub logs\n\nRun current project on local machine for test.\n\n.. code:: bash\n\n $ bothub test\n\n\nChannel management\n------------------\n\nList of channels for current project.\n\n.. code:: bash\n\n $ bothub channel ls\n\nAdd a channel for current project.\n\n.. code:: bash\n\n $ bothub channel add telegram --api-key=\n $ bothub channel add facebook --app-id= --app-secret= --page-access-token=\n\nRemove a channel from current project.\n\n.. code:: bash\n\n $ bothub channel rm \n\n\nNLU integration managemt\n------------------------\n\nList of NLU(Natural Language Understanding) integration for current project.\n\n.. code:: bash\n\n $ bothub nlu ls\n\nAdd a NLU integration for current project.\n\n.. code:: bash\n\n $ bothub nlu add apiai --api-key=\n\nRemove a NLU integration from current project.\n\n.. code:: bash\n\n $ bothub nlu rm \n\n\nLicense\n=======\n\nApache License 2.0\n\n.. _Bothub.studio: https://bothub.studio?utm_source=pypi&utm_medium=display&utm_campaign=bothub_cli\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bothub-studio/bothub-cli", "keywords": "bothub serverless chatbot framework cli", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "bothub-cli", "package_url": "https://pypi.org/project/bothub-cli/", "platform": "", "project_url": "https://pypi.org/project/bothub-cli/", "project_urls": { "Homepage": "https://github.com/bothub-studio/bothub-cli" }, "release_url": "https://pypi.org/project/bothub-cli/0.1.20/", "requires_dist": [ "six", "click", "requests", "pyyaml", "pyjwt", "terminaltables", "prompt-toolkit (>=2.0)", "bothub (>=0.1.18)", "pathspec", "dialogflow", "ruamel.yaml" ], "requires_python": "", "summary": "A CLI tool for bothub.studio service", "version": "0.1.20" }, "last_serial": 4515216, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "44dacb2fd7613c67b9a87dd2b9d66ae3", "sha256": "a5d388e7ec017b98890ff6a22798a8e9dcbb302ff9a9c11c50bda5b05e241af2" }, "downloads": -1, "filename": "bothub_cli-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44dacb2fd7613c67b9a87dd2b9d66ae3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13799, "upload_time": "2017-03-07T10:37:40", "url": "https://files.pythonhosted.org/packages/8f/d8/16af96125b0b0f6e8fffa3c463c7f65c96c1051dfd265e0176d0c917c116/bothub_cli-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51e4e897651aa998732ecccd9e980e00", "sha256": "feaa6bb67d1ce1ac9f15a3a0fe648413d6ec89283975b444fed3f7028724483b" }, "downloads": -1, "filename": "bothub-cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "51e4e897651aa998732ecccd9e980e00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7949, "upload_time": "2017-03-07T10:37:41", "url": "https://files.pythonhosted.org/packages/7f/c0/4f7db83880ef80b462a677e57094f5b365b64656fa0f03e3b77f338e8819/bothub-cli-0.1.0.tar.gz" } ], "0.1.1": [], "0.1.10": [ { "comment_text": "", "digests": { "md5": "66ca78847555bd5101c4d38a95b3ff5b", "sha256": "92f071bd6df87841843312399f290112343f2b1bc1e13a543b77b72f9f4b3f1d" }, "downloads": -1, "filename": "bothub_cli-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66ca78847555bd5101c4d38a95b3ff5b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15055, "upload_time": "2017-06-19T07:54:24", "url": "https://files.pythonhosted.org/packages/48/69/4bea263a125232fd45bd9f988624c39cc2b909f35964b8eb0e2768d96904/bothub_cli-0.1.10-py2.py3-none-any.whl" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "4522649c394599e55f67659a5be7f33d", "sha256": "b770f204572b96c5ea284523f35d6516e1e617aeccb3a87fb17b594328958000" }, "downloads": -1, "filename": "bothub_cli-0.1.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4522649c394599e55f67659a5be7f33d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15210, "upload_time": "2017-06-22T07:33:16", "url": "https://files.pythonhosted.org/packages/36/b7/b115284bf44f68b294b601443b7b9300e68604ab6530eb28cd1f323daff3/bothub_cli-0.1.11-py2.py3-none-any.whl" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "eb1a192b754e4f16b7e2e68bd1c554a2", "sha256": "3a72323be91b97811d97a1c8c979766a4c651b3c4e1852ff9d75dd5faf6691fe" }, "downloads": -1, "filename": "bothub_cli-0.1.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb1a192b754e4f16b7e2e68bd1c554a2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16983, "upload_time": "2017-07-03T08:32:22", "url": "https://files.pythonhosted.org/packages/04/3e/354df223afe5a1feef329bee43daed729e7e037e1e4eab0110372735810b/bothub_cli-0.1.12-py2.py3-none-any.whl" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "0060a327d72d54af2a1304d33e73f81b", "sha256": "e6ec01f3eecb8bff4797c3a50d64dc2420ae51acfeb3cb2452fd8bad88caa5ad" }, "downloads": -1, "filename": "bothub_cli-0.1.13-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0060a327d72d54af2a1304d33e73f81b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17090, "upload_time": "2017-07-07T14:11:18", "url": "https://files.pythonhosted.org/packages/53/3d/be5557005ecba276b1438b708a78a91b23b3e6af963bff6a344da9667901/bothub_cli-0.1.13-py2.py3-none-any.whl" } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "bd7733e505268c8e0d3e44fa61bffc84", "sha256": "c3cfadedea8915177059973f1d3300ef7e9bee6c6b2c1327f7a992b34b3ce63c" }, "downloads": -1, "filename": "bothub_cli-0.1.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd7733e505268c8e0d3e44fa61bffc84", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17096, "upload_time": "2017-07-08T13:08:58", "url": "https://files.pythonhosted.org/packages/2f/86/6054ede6b4b8dd9f187d53808572b9b499b708ef16b2f02d8879f308dc50/bothub_cli-0.1.14-py2.py3-none-any.whl" } ], "0.1.15": [ { "comment_text": "", "digests": { "md5": "c8c3035614b9833fb77da1ec712b3b6f", "sha256": "2e657679492a00ffaf2c7b8901a02ef9c370759f002dba0a979f5971dc51ec84" }, "downloads": -1, "filename": "bothub_cli-0.1.15-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8c3035614b9833fb77da1ec712b3b6f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18487, "upload_time": "2017-08-19T05:10:36", "url": "https://files.pythonhosted.org/packages/f4/4f/25294e4ee9d3a18c43dbb921f5e8b3605e462cf3a4e42062627a0d443b2f/bothub_cli-0.1.15-py2.py3-none-any.whl" } ], "0.1.16": [ { "comment_text": "", "digests": { "md5": "56211b6d21bef605be9c1407d194f85d", "sha256": "d0ea60b1b056e86e1d2ae0548c85656ceb04c1b957257df768868e11cd372ef1" }, "downloads": -1, "filename": "bothub_cli-0.1.16-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "56211b6d21bef605be9c1407d194f85d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18569, "upload_time": "2017-11-15T08:41:37", "url": "https://files.pythonhosted.org/packages/ad/9d/b723ee566a89b4961351d0d1a048d226bd5f2fd173a05b6ca09ec2d9e86b/bothub_cli-0.1.16-py2.py3-none-any.whl" } ], "0.1.17": [ { "comment_text": "", "digests": { "md5": "dfa9c2a3ace8c5c0284e3400751cca82", "sha256": "6f36b0a0f74d804959aad81c54654cc898745d21bd99e42c27942155f5442577" }, "downloads": -1, "filename": "bothub_cli-0.1.17-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "dfa9c2a3ace8c5c0284e3400751cca82", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18604, "upload_time": "2017-12-07T09:03:09", "url": "https://files.pythonhosted.org/packages/54/94/c6219b18bd36856039146014b2d7734bf9ba8c2da29aedb7fdc17341d47f/bothub_cli-0.1.17-py2.py3-none-any.whl" } ], "0.1.18": [ { "comment_text": "", "digests": { "md5": "5689cfd2acdaaa1c2edbd9e378faee7e", "sha256": "5953e3e03c8c10f4d27802ad23f7244745f56ce82bc2d3f05562e2a4e8c3384c" }, "downloads": -1, "filename": "bothub_cli-0.1.18-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5689cfd2acdaaa1c2edbd9e378faee7e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17493, "upload_time": "2018-09-06T07:02:45", "url": "https://files.pythonhosted.org/packages/d0/ce/7eeae8e0c69dfb5ae842f4da158cb7390271142c284219fc728baa600eb1/bothub_cli-0.1.18-py2.py3-none-any.whl" } ], "0.1.19": [ { "comment_text": "", "digests": { "md5": "f5e0dc60dd682808555a381298470134", "sha256": "b07832e169164c928f90ba95836354b58cf107d781ef85307a97d1915f18c2ee" }, "downloads": -1, "filename": "bothub_cli-0.1.19-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f5e0dc60dd682808555a381298470134", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 17774, "upload_time": "2018-10-29T02:34:06", "url": "https://files.pythonhosted.org/packages/de/f0/94fcd21adb97258482c47a1c8a944f0f8e78ca4512158e8d5d67030149b2/bothub_cli-0.1.19-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f7cf67917a6afcf6574e40152c58d7d6", "sha256": "08c783ef848b17e92c7e93f00d28b2b8af8ed6516671bc10f60b87b9b7ca4a80" }, "downloads": -1, "filename": "bothub_cli-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f7cf67917a6afcf6574e40152c58d7d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14410, "upload_time": "2017-04-07T02:38:16", "url": "https://files.pythonhosted.org/packages/1b/76/36b896a9d614373794ad1d3357ba8efc69595e72a5c445c70d7bf3aa053a/bothub_cli-0.1.2-py2.py3-none-any.whl" } ], "0.1.20": [ { "comment_text": "", "digests": { "md5": "2431fad7b9bc7900e192239b1d72fd68", "sha256": "c3f77a649b87324ac665ba010d3b95eba047e65f8da12e01f618332f5a2aaa03" }, "downloads": -1, "filename": "bothub_cli-0.1.20-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2431fad7b9bc7900e192239b1d72fd68", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 22207, "upload_time": "2018-11-22T04:42:04", "url": "https://files.pythonhosted.org/packages/40/f4/50938ae5d96a7c7ca3e3855e2c8ef9f2cb0fff226c02288c95c4351683ab/bothub_cli-0.1.20-py2.py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d11a4cd888481360398cd7b5e09d92d1", "sha256": "8c22ce326a934c24122e0849078fa0299b8d64393a792c78174f2d57a90d2ae0" }, "downloads": -1, "filename": "bothub_cli-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d11a4cd888481360398cd7b5e09d92d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14659, "upload_time": "2017-04-11T09:51:12", "url": "https://files.pythonhosted.org/packages/0a/9d/a09ed6e9c8ffc8dc0e886df320bdebc0f6d957a44e506f9473bb39c419d7/bothub_cli-0.1.3-py2.py3-none-any.whl" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "47ae99f678533487011edc2ea6ee54a7", "sha256": "fe3222d75f70b3e052ee9df940553664e05f77f308fd3ec8c9792df935edb3d9" }, "downloads": -1, "filename": "bothub_cli-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "47ae99f678533487011edc2ea6ee54a7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12616, "upload_time": "2017-05-08T03:44:49", "url": "https://files.pythonhosted.org/packages/f4/f3/baff4f1b423f0c95b06717b194bd4f23bde838525d4975c6fdfc2c9398a2/bothub_cli-0.1.4-py2.py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "c8510964c2b78a4363876aceafa71ea1", "sha256": "7218dea87259b48bb32f2ac1dab2437103149039d5f330cc371e1b7ad2848c20" }, "downloads": -1, "filename": "bothub_cli-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c8510964c2b78a4363876aceafa71ea1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13135, "upload_time": "2017-05-19T15:30:05", "url": "https://files.pythonhosted.org/packages/72/45/1bce2c79a3806735b036983c3d373203984ef2d20bb2d6a4f90bf4887211/bothub_cli-0.1.5-py2.py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5b0db7003d5a21f92fc7bdf9656a4d87", "sha256": "e0ae988a3ae3232553bae59a0ddc05d00703959b3512d4e95c6abc8b14c380cf" }, "downloads": -1, "filename": "bothub_cli-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5b0db7003d5a21f92fc7bdf9656a4d87", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13140, "upload_time": "2017-05-31T05:59:53", "url": "https://files.pythonhosted.org/packages/e0/08/0895d067a3a8eb6e503cbd22b23e529757e1985bb60641417348b78da0f0/bothub_cli-0.1.6-py2.py3-none-any.whl" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "6ed0c5ea77be1169f1fb815fd666469a", "sha256": "ae4324f44b57833df32c4e4416ce9600f923939891811bb15b133c8dfe922025" }, "downloads": -1, "filename": "bothub_cli-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6ed0c5ea77be1169f1fb815fd666469a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13908, "upload_time": "2017-06-14T15:19:50", "url": "https://files.pythonhosted.org/packages/dd/f8/95cb391d801be50d6f37b02e43ad0e0baebdc379653509c801bc38ccfe5e/bothub_cli-0.1.7-py2.py3-none-any.whl" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "f0b2da3128823267e889439f074bbc00", "sha256": "b46b4ddd03150a57ef15d5c583afec2ae314f76409a34fcd2d289c08827a677e" }, "downloads": -1, "filename": "bothub_cli-0.1.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0b2da3128823267e889439f074bbc00", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14716, "upload_time": "2017-06-16T16:16:39", "url": "https://files.pythonhosted.org/packages/bb/a5/b01856da6c78ddeb2a2f8070dfaf1010b6df657724e5281d0ad3984d852b/bothub_cli-0.1.8-py2.py3-none-any.whl" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "ed32a1fadaf852deadf592b8c2231d7b", "sha256": "da7fb4e318b6a07b845440cc7c37246c81bed5d4254bf91714545b5a8aea7e61" }, "downloads": -1, "filename": "bothub_cli-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ed32a1fadaf852deadf592b8c2231d7b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14704, "upload_time": "2017-06-16T16:52:45", "url": "https://files.pythonhosted.org/packages/12/10/aec70bc8a3d6288b7433c49e022341969ab0631746a2256a1982ad97261e/bothub_cli-0.1.9-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2431fad7b9bc7900e192239b1d72fd68", "sha256": "c3f77a649b87324ac665ba010d3b95eba047e65f8da12e01f618332f5a2aaa03" }, "downloads": -1, "filename": "bothub_cli-0.1.20-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2431fad7b9bc7900e192239b1d72fd68", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 22207, "upload_time": "2018-11-22T04:42:04", "url": "https://files.pythonhosted.org/packages/40/f4/50938ae5d96a7c7ca3e3855e2c8ef9f2cb0fff226c02288c95c4351683ab/bothub_cli-0.1.20-py2.py3-none-any.whl" } ] }