{ "info": { "author": "Tigran Grigoryan", "author_email": "dqunbp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===============\npythonSmartBots\n===============\n\n\n.. image:: https://img.shields.io/pypi/v/smartbotsol.svg\n :target: https://pypi.python.org/pypi/smartbotsol\n\n.. image:: https://img.shields.io/travis/dqunbp/smartbotsol.svg\n :target: https://travis-ci.org/dqunbp/smartbotsol\n\n.. image:: https://readthedocs.org/projects/smartbotsol/badge/?version=latest\n :target: https://smartbotsol.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/dqunbp/smartbotsol/shield.svg\n :target: https://pyup.io/repos/github/dqunbp/smartbotsol/\n :alt: Updates\n\n\nsmart conversation bots package\n\n\n* Free software: MIT license\n* Documentation: https://smartbotsol.readthedocs.io.\n\n\nGetting started\n----------------\n1. Describe yor states\n2. Create `server.py`:\n\n .. code-block:: python\n\n from telegram.ext import Updater\n from smartbotsol import StateMachine\n from smartbotsol.telegram import FsmTelegramHandler\n\n import logging\n logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG)\n log = logging.getLogger(__name__)\n\n from states import BootStrapState\n\n handler = FsmTelegramHandler(\n StateMachine(\n BootStrapState(),\n filters=[]\n )\n )\n\n def create_bot():\n token = os.environ.get('TELEGRAM_TOKEN')\n port = int(os.environ.get('PORT', '5000'))\n updater = Updater(token)\n updater.dispatcher.add_handler(handler) \n return updater\n\n def start_polling_bot():\n bot = create_bot()\n bot.start_polling(read_latency=50.0)\n return bot\n\n if __name__ == '__main__':\n start_polling_bot()\n\nFor async runs pass `async=True`: \n\n .. code-block:: python\n\n handler = FsmTelegramHandler(\n StateMachine(\n BootStrapState(),\n filters=[]\n ),\n async=True\n )\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n1.0.0 (2017-11-02)\n------------------\n\n* First release on PyPI.\n\n1.0.1 (2017-11-05)\n------------------\n\n* Bugfix with reply_markup\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dqunbp/smartbotsol", "keywords": "smartbotsol", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "smartbotsol", "package_url": "https://pypi.org/project/smartbotsol/", "platform": "", "project_url": "https://pypi.org/project/smartbotsol/", "project_urls": { "Homepage": "https://github.com/dqunbp/smartbotsol" }, "release_url": "https://pypi.org/project/smartbotsol/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "smart conversation bots package", "version": "1.0.1" }, "last_serial": 3312453, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "addb45a8d9df10efbf9d185ae3e1be03", "sha256": "7eaba22824ae0bd59b588fc4e31199cdd099829e8d09f7117146185368303522" }, "downloads": -1, "filename": "smartbotsol-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "addb45a8d9df10efbf9d185ae3e1be03", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14414, "upload_time": "2017-11-02T17:08:20", "url": "https://files.pythonhosted.org/packages/bd/eb/04101e089f51e51b26bf371e5dfdcb55d54d1b1046ce94cce95dbd8d3e5b/smartbotsol-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ddfe8aeb12b6a064ff4468eea6c79a2", "sha256": "166d97a0b3fd1b98a97fb265beebbc4d9f1e5ad9e1f37d321700b4533b3a783d" }, "downloads": -1, "filename": "smartbotsol-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4ddfe8aeb12b6a064ff4468eea6c79a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18268, "upload_time": "2017-11-02T17:07:56", "url": "https://files.pythonhosted.org/packages/0a/c7/0d31643327c9934aa5318353815bd787d28a8aa96107260de0c159ac12e4/smartbotsol-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e8a48878ccfef92d834175c934c1efda", "sha256": "10f9a0f388fe88e0e6457e25975ef91f9643ac05b6c2cadac5b171e24e99d5c6" }, "downloads": -1, "filename": "smartbotsol-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8a48878ccfef92d834175c934c1efda", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14490, "upload_time": "2017-11-07T11:28:01", "url": "https://files.pythonhosted.org/packages/15/45/d0044a8735304ade220070715e96d8cd08550342b70b860c59c9f232dabd/smartbotsol-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3641dfc40e0bdf6e01d3dd64b73abd5f", "sha256": "7b0607623b0f9ca93fa030fb99b60fbe6641cbf2db0fe11390508d40306cd46f" }, "downloads": -1, "filename": "smartbotsol-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3641dfc40e0bdf6e01d3dd64b73abd5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18487, "upload_time": "2017-11-07T11:27:59", "url": "https://files.pythonhosted.org/packages/e8/a6/3a5dfab89c56eda3555acb041df06086305ab695cb0c65fdad02ca90af25/smartbotsol-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8a48878ccfef92d834175c934c1efda", "sha256": "10f9a0f388fe88e0e6457e25975ef91f9643ac05b6c2cadac5b171e24e99d5c6" }, "downloads": -1, "filename": "smartbotsol-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e8a48878ccfef92d834175c934c1efda", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 14490, "upload_time": "2017-11-07T11:28:01", "url": "https://files.pythonhosted.org/packages/15/45/d0044a8735304ade220070715e96d8cd08550342b70b860c59c9f232dabd/smartbotsol-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3641dfc40e0bdf6e01d3dd64b73abd5f", "sha256": "7b0607623b0f9ca93fa030fb99b60fbe6641cbf2db0fe11390508d40306cd46f" }, "downloads": -1, "filename": "smartbotsol-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3641dfc40e0bdf6e01d3dd64b73abd5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18487, "upload_time": "2017-11-07T11:27:59", "url": "https://files.pythonhosted.org/packages/e8/a6/3a5dfab89c56eda3555acb041df06086305ab695cb0c65fdad02ca90af25/smartbotsol-1.0.1.tar.gz" } ] }