{ "info": { "author": "St3veR0nix", "author_email": "st3ver0nix@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "This is the free version of the CleverBot API, that supports asyncio\n\n\nTo use this library, you will need the latest version of **pypeteer**, which you can find at this link https://github.com/miyakogi/pyppeteer\n\n**asyncio** and **bs4** are required too.\n\n\nOnce you have all the required packages, you're ready to use this simple library!\n\n## Example of making one request and getting the response string:\n\n```python\n\nfrom cleverbot_aio_free.cbaio import CleverBot\nimport asyncio\n\n#Instantiate the class\ncb = CleverBot()\n\nasync def main():\n\"\"\"\nThe first time you call init(), pypeteer will download the chromium browser, \nthat is necessary to use this library.\nThis is done only one time, i suggest you call this function in a test script,\nbefore using it in your programs\nSubsequent calls to init () will not download anything.\n\"\"\"\n await cb.init()\n\"\"\"\nAfter initialization you can send text to Cleverbot and recieve the text response in just one line...\n\"\"\"\n response = await cb.getResponse(\"Hello\")\n print(response)\n#When you want to reset the chat, you can close the browser session with...\n await cb.close()\n\n#If you're using python >= 3.7\nasyncio.run(main)\n\"\"\"\nwith python <= 3.6 < 3.7\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n\"\"\"\n```\n\n## Simple example of a continous chat\n\n```python\nfrom cleverbot_aio_free.cbaio import CleverBot\nimport asyncio\n\ncb = CleverBot()\n\nasync def main():\n await cb.init()\n while(True):\n text = input(\"Say something to CleverBot:\")\n if text.lower().find(\"end\") != -1:\n break\n response = await cb.getResponse(text)\n print(response)\n await cb.close()\n\nasyncio.run(main())\n\"\"\"or\nloop = asyncio.get_event_loop()\nloop.run_until_complete(main())\n\"\"\"\n```\n\nThat's it! I hope this library will help lots of people build their chatbots.\n\nIf you find any issues, feel free to post it on github: https://github.com/St3veR0nin/cleverbot_aio_free\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": "https://github.com/St3veR0nin/cleverbot_aio_free", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "cleverbot-aio-free", "package_url": "https://pypi.org/project/cleverbot-aio-free/", "platform": "", "project_url": "https://pypi.org/project/cleverbot-aio-free/", "project_urls": { "Homepage": "https://github.com/St3veR0nin/cleverbot_aio_free" }, "release_url": "https://pypi.org/project/cleverbot-aio-free/1.3.4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Free version of the Cleverbot API, that supports asyncio", "version": "1.3.4" }, "last_serial": 5796116, "releases": { "1.3.4": [ { "comment_text": "", "digests": { "md5": "58778958c5e4ae61178716fd96070419", "sha256": "3e65372003ad8a540a216c26c85e77d3379115d0ebccbfe697407f52b5475a8e" }, "downloads": -1, "filename": "cleverbot_aio_free-1.3.4-py3-none-any.whl", "has_sig": false, "md5_digest": "58778958c5e4ae61178716fd96070419", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 15558, "upload_time": "2019-09-07T13:14:14", "url": "https://files.pythonhosted.org/packages/07/ee/2c69df49b76309bfa3ebe1ed8fb975fc882a31900afa4da34a8efe20b65c/cleverbot_aio_free-1.3.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b5dee356851c79ce413454f14f9f0f7", "sha256": "c86d0011d176acc9984701417976c8633bda5a70e68b2161d555cc662f23b8e9" }, "downloads": -1, "filename": "cleverbot_aio_free-1.3.4.tar.gz", "has_sig": false, "md5_digest": "6b5dee356851c79ce413454f14f9f0f7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2656, "upload_time": "2019-09-07T13:14:16", "url": "https://files.pythonhosted.org/packages/b9/af/1989622f6256f86914b1d25ad22032fdc63b45a9357018daf8ffd19bf86d/cleverbot_aio_free-1.3.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58778958c5e4ae61178716fd96070419", "sha256": "3e65372003ad8a540a216c26c85e77d3379115d0ebccbfe697407f52b5475a8e" }, "downloads": -1, "filename": "cleverbot_aio_free-1.3.4-py3-none-any.whl", "has_sig": false, "md5_digest": "58778958c5e4ae61178716fd96070419", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 15558, "upload_time": "2019-09-07T13:14:14", "url": "https://files.pythonhosted.org/packages/07/ee/2c69df49b76309bfa3ebe1ed8fb975fc882a31900afa4da34a8efe20b65c/cleverbot_aio_free-1.3.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b5dee356851c79ce413454f14f9f0f7", "sha256": "c86d0011d176acc9984701417976c8633bda5a70e68b2161d555cc662f23b8e9" }, "downloads": -1, "filename": "cleverbot_aio_free-1.3.4.tar.gz", "has_sig": false, "md5_digest": "6b5dee356851c79ce413454f14f9f0f7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2656, "upload_time": "2019-09-07T13:14:16", "url": "https://files.pythonhosted.org/packages/b9/af/1989622f6256f86914b1d25ad22032fdc63b45a9357018daf8ffd19bf86d/cleverbot_aio_free-1.3.4.tar.gz" } ] }