{ "info": { "author": "Lukas Bednar", "author_email": "lbenar@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Installation/Setup", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "|Build Status|\n|Code Coverage|\n|Code Health|\n\npython-otopi-mdp\n================\n\notopi Machine Dialog Parser for python\n\nThis module allows you automate installation process based on\n`otopi `__ installator.\n\nRequirements\n============\n\n.. code::\n\n six\n otopi\n\n**WARNING**: The otopi package is not hosted on PyPi site, so it couldn't\nbe included as dependency of this package. It is maintaned by oVirt community,\nthey ship this module for several package managements.\n\nUsage\n=====\n\n1. Set otopi environment to enable machine dialect\n\n.. code::\n\n DIALOG/dialect=str:machine\n\n2. Spawn desired installer and pass stdin and stdout to parser\n\n3. Process all otopi events in the loop\n\nExample for oVirt Hosted Engine\n-------------------------------\n\n.. code:: python\n\n import subprocess\n import otopimdp as mdp\n\n # 1. Set machine dialog option\n with open(\"/etc/ovirt-hosted-engine-setup.env.d/mycustom.env\") as fd:\n fd.write(\n 'export environment=\"${environment} DIALOG/dialect=str:machine\"\\n'\n )\n\n # 2. Spawn installer\n installer = subprocess.Popen([\"hosted-engine\", \"--deploy\"])\n parser = mdp.MachineDialogParser(\n input_=installer.stdout, output=installer.stdin\n )\n\n # 3. Process events\n while True:\n event = parser.next_event()\n if event is None:\n continue\n event_type = event[mdp.TYPE_KEY]\n if event_type == mdp.TERMINATE_EVENT:\n break\n\n event_name = event[mdp.ATTRIBUTES_KEY]['name']\n if event_name == \"OVEHOSTED_HOST_ID\":\n event[mdp.REPLY_KEY] = \"1\"\n ....\n parser.send_response(event)\n\nRun tests\n=========\n\n.. code:: sh\n\n tox\n\n**NOTE:** For testing purposes, the otopi package is being run from sources.\n\n.. |Build Status| image:: https://travis-ci.org/rhevm-qe-automation/python-otopi-mdp.svg?branch=master\n :target: https://travis-ci.org/rhevm-qe-automation/python-otopi-mdp\n.. |Code Coverage| image:: https://codecov.io/gh/rhevm-qe-automation/python-otopi-mdp/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/rhevm-qe-automation/python-otopi-mdp\n.. |Code Health| image:: https://landscape.io/github/rhevm-qe-automation/python-otopi-mdp/master/landscape.svg?style=flat\n :target: https://landscape.io/github/rhevm-qe-automation/python-otopi-mdp/master\n\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/rhevm-qe-automation/python-otopi-mdp", "keywords": "otopi\nmachine\ndialog\nparser", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "python-otopi-mdp", "package_url": "https://pypi.org/project/python-otopi-mdp/", "platform": "", "project_url": "https://pypi.org/project/python-otopi-mdp/", "project_urls": { "Homepage": "https://github.com/rhevm-qe-automation/python-otopi-mdp" }, "release_url": "https://pypi.org/project/python-otopi-mdp/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "Implements parser for otopi machine dialog.", "version": "0.2.2" }, "last_serial": 3218288, "releases": { "0.1.1": [ { "comment_text": "built for fedora 23", "digests": { "md5": "15024f574a900e051bee692f02f71724", "sha256": "12095846e6be1222646aa4013cb2e29b1419a01910f179eb7a68bc29777b3396" }, "downloads": -1, "filename": "python-otopi-mdp-0.1.1-1.src.rpm", "has_sig": true, "md5_digest": "15024f574a900e051bee692f02f71724", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 23347, "upload_time": "2016-04-22T10:31:41", "url": "https://files.pythonhosted.org/packages/e1/39/58823d49c4f337f7a55ede472e168e2d7a190e5eec9b6fd9a07f4f7447b5/python-otopi-mdp-0.1.1-1.src.rpm" }, { "comment_text": "", "digests": { "md5": "cd94494329e205e8520d36310196d8f0", "sha256": "0b3b5e0d3245a84a9fe0bacf0ea3ce8f8fec15bf26d65bd75de5fb8f7e5ab0c6" }, "downloads": -1, "filename": "python_otopi_mdp-0.1.1-py2.7.egg", "has_sig": true, "md5_digest": "cd94494329e205e8520d36310196d8f0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9874, "upload_time": "2016-04-22T10:32:50", "url": "https://files.pythonhosted.org/packages/fe/34/826827eb950528dd4b89073e5cefefbca7f211ba7fd043f6cbfbeffcb889/python_otopi_mdp-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a3ae5f9712ef1b385ae2b8a83bc6a226", "sha256": "a11d9b518256bcc16de3439bbac79f3f5b0b3c3edfb0812696b78bbaada2611f" }, "downloads": -1, "filename": "python-otopi-mdp-0.1.1.zip", "has_sig": true, "md5_digest": "a3ae5f9712ef1b385ae2b8a83bc6a226", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20390, "upload_time": "2016-04-22T10:30:31", "url": "https://files.pythonhosted.org/packages/0a/97/e90780f2899198420c3adedfd4200601b5d1dc5052294c12bf591e4c51fb/python-otopi-mdp-0.1.1.zip" } ], "0.2.0": [ { "comment_text": "built for fedora 23", "digests": { "md5": "898d13a72b6f4dab05f2dfcafa2a4534", "sha256": "e70e0cf2c566524df993ce94cde5061651e4b52cfd86d3aeb1c5c83c3076c7f4" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.0-1.noarch.rpm", "has_sig": true, "md5_digest": "898d13a72b6f4dab05f2dfcafa2a4534", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 21358, "upload_time": "2016-05-26T16:06:12", "url": "https://files.pythonhosted.org/packages/55/05/f111e5343e72975ad51b3246cfea6a8df21275618c42d39738c8cc68bb39/python-otopi-mdp-0.2.0-1.noarch.rpm" }, { "comment_text": "built for fedora 23", "digests": { "md5": "84ff4d8d41a31472d3eff1540f80d7ab", "sha256": "2d1c33a56b5a51a358c66c4d1eb843f392c5382f659de73d711929aad00e500f" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.0-1.src.rpm", "has_sig": true, "md5_digest": "84ff4d8d41a31472d3eff1540f80d7ab", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 26163, "upload_time": "2016-05-26T16:06:00", "url": "https://files.pythonhosted.org/packages/59/97/7e52e5d7d32f0c63a6b07b127320f0559a5b31859a4dcff749ffc94bfb5d/python-otopi-mdp-0.2.0-1.src.rpm" }, { "comment_text": "", "digests": { "md5": "7615461aa5c6fe6377d817fda37a3305", "sha256": "aaec1d2bb337344fdcd519097352bc8639819bcd70f74aac2dfe227f0fbe2bdf" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.0.tar.gz", "has_sig": true, "md5_digest": "7615461aa5c6fe6377d817fda37a3305", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17014, "upload_time": "2016-05-26T16:05:52", "url": "https://files.pythonhosted.org/packages/93/d3/7e4fc055aec3a5676b8bef42601660481c271ec257cfd942c042d770aedb/python-otopi-mdp-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "282a32cd79b3c1f26c27185f8be617be", "sha256": "db7b6e5c456ea4dd540eb1e9e18960b626c3d964b90832c0f379169181d4b22b" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.0.zip", "has_sig": true, "md5_digest": "282a32cd79b3c1f26c27185f8be617be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25163, "upload_time": "2016-05-26T16:05:43", "url": "https://files.pythonhosted.org/packages/d5/6e/7f3defcaa93419e2e7739aecc3ac68af2784f6706aac1ece1be83809e4a2/python-otopi-mdp-0.2.0.zip" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "21d71d1430743b587ba9a5a1df551fb4", "sha256": "79c50f36b51fe2d36920fdea3a9b1f0c429066570c398f32c8071b99ad80f20f" }, "downloads": -1, "filename": "python_otopi_mdp-0.2.1-py2.7.egg", "has_sig": true, "md5_digest": "21d71d1430743b587ba9a5a1df551fb4", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 16007, "upload_time": "2016-11-01T10:02:09", "url": "https://files.pythonhosted.org/packages/58/51/3908035a25cf76fd3c3821f8479bd275e5518fd496dc982c2ad6d68df250/python_otopi_mdp-0.2.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "5681c4605f00fcdf463a44029bb59126", "sha256": "389c79bad851b6c70cd32a3cbd9ff99c4edac2605b05e3407da8fa008dde3afe" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.1.tar.gz", "has_sig": true, "md5_digest": "5681c4605f00fcdf463a44029bb59126", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16936, "upload_time": "2016-11-01T10:02:00", "url": "https://files.pythonhosted.org/packages/0c/9e/44f99e0160c55df9076ef8df0c089d25c30948eefb7a328985194c385dd0/python-otopi-mdp-0.2.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "ff146fcb9b1abfac9f615ea9b3e2ba01", "sha256": "7210c5236af6da792b06a3e74199153fda847b7bebfdd4a8fd2f7b5758404a4d" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.1.zip", "has_sig": true, "md5_digest": "ff146fcb9b1abfac9f615ea9b3e2ba01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25866, "upload_time": "2016-11-01T10:01:54", "url": "https://files.pythonhosted.org/packages/06/5b/a533937677154d0d4147af290c196c12c21a8e451e99008e05387f154792/python-otopi-mdp-0.2.1.zip" } ], "0.2.2": [ { "comment_text": "built for fedora 25", "digests": { "md5": "03c752861a802a396aba9d9c990f2d93", "sha256": "c715c885e2552967369cd84437cba9b0de089ff66939755d88091b6801a8f2f9" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2-1.noarch.rpm", "has_sig": true, "md5_digest": "03c752861a802a396aba9d9c990f2d93", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 22042, "upload_time": "2017-10-02T10:23:32", "url": "https://files.pythonhosted.org/packages/22/16/4e9e4adff80facca2742c5ce7c3d96bc386ad7663bd4e42a8474407ba046/python-otopi-mdp-0.2.2-1.noarch.rpm" }, { "comment_text": "built for fedora 25", "digests": { "md5": "bcb8a9a81d8604687c3bdeb0ab04fc69", "sha256": "08fb13bc27722d62457e0b6f624d167c1dcc9d0103a0b31aec05aafd3ddb18ce" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2-1.src.rpm", "has_sig": true, "md5_digest": "bcb8a9a81d8604687c3bdeb0ab04fc69", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 26818, "upload_time": "2017-10-02T10:23:23", "url": "https://files.pythonhosted.org/packages/24/13/9a964e6a92b3ba4fec8b362df8a5919ebb3d604fe834931d8be4feac6286/python-otopi-mdp-0.2.2-1.src.rpm" }, { "comment_text": "", "digests": { "md5": "59008b7cb13120030747f9ae0a44f541", "sha256": "922a7476e489c58f91efa81b2d13b55c0b972780ac7874e2042003e59ccd20c4" }, "downloads": -1, "filename": "python_otopi_mdp-0.2.2-py2.7.egg", "has_sig": true, "md5_digest": "59008b7cb13120030747f9ae0a44f541", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 16000, "upload_time": "2017-10-02T10:23:17", "url": "https://files.pythonhosted.org/packages/7b/25/2339c0cc9aa8b072780a9019fb880f7140bb8b1e2b636e24b51546ed82bc/python_otopi_mdp-0.2.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "71671dedd7e9cd6fd5c8dc5cee1fb819", "sha256": "91d785fd8a69e2841fc7d2b13fd9fd63ad6bd41717ed6d8f039450eb36c5755e" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2.zip", "has_sig": true, "md5_digest": "71671dedd7e9cd6fd5c8dc5cee1fb819", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25894, "upload_time": "2017-10-02T10:23:08", "url": "https://files.pythonhosted.org/packages/fc/d8/b22474ba35f26a9b6847f3ea90959d20c9b42dc8bf1caf8592689befdb43/python-otopi-mdp-0.2.2.zip" } ] }, "urls": [ { "comment_text": "built for fedora 25", "digests": { "md5": "03c752861a802a396aba9d9c990f2d93", "sha256": "c715c885e2552967369cd84437cba9b0de089ff66939755d88091b6801a8f2f9" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2-1.noarch.rpm", "has_sig": true, "md5_digest": "03c752861a802a396aba9d9c990f2d93", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 22042, "upload_time": "2017-10-02T10:23:32", "url": "https://files.pythonhosted.org/packages/22/16/4e9e4adff80facca2742c5ce7c3d96bc386ad7663bd4e42a8474407ba046/python-otopi-mdp-0.2.2-1.noarch.rpm" }, { "comment_text": "built for fedora 25", "digests": { "md5": "bcb8a9a81d8604687c3bdeb0ab04fc69", "sha256": "08fb13bc27722d62457e0b6f624d167c1dcc9d0103a0b31aec05aafd3ddb18ce" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2-1.src.rpm", "has_sig": true, "md5_digest": "bcb8a9a81d8604687c3bdeb0ab04fc69", "packagetype": "bdist_rpm", "python_version": "any", "requires_python": null, "size": 26818, "upload_time": "2017-10-02T10:23:23", "url": "https://files.pythonhosted.org/packages/24/13/9a964e6a92b3ba4fec8b362df8a5919ebb3d604fe834931d8be4feac6286/python-otopi-mdp-0.2.2-1.src.rpm" }, { "comment_text": "", "digests": { "md5": "59008b7cb13120030747f9ae0a44f541", "sha256": "922a7476e489c58f91efa81b2d13b55c0b972780ac7874e2042003e59ccd20c4" }, "downloads": -1, "filename": "python_otopi_mdp-0.2.2-py2.7.egg", "has_sig": true, "md5_digest": "59008b7cb13120030747f9ae0a44f541", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 16000, "upload_time": "2017-10-02T10:23:17", "url": "https://files.pythonhosted.org/packages/7b/25/2339c0cc9aa8b072780a9019fb880f7140bb8b1e2b636e24b51546ed82bc/python_otopi_mdp-0.2.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "71671dedd7e9cd6fd5c8dc5cee1fb819", "sha256": "91d785fd8a69e2841fc7d2b13fd9fd63ad6bd41717ed6d8f039450eb36c5755e" }, "downloads": -1, "filename": "python-otopi-mdp-0.2.2.zip", "has_sig": true, "md5_digest": "71671dedd7e9cd6fd5c8dc5cee1fb819", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25894, "upload_time": "2017-10-02T10:23:08", "url": "https://files.pythonhosted.org/packages/fc/d8/b22474ba35f26a9b6847f3ea90959d20c9b42dc8bf1caf8592689befdb43/python-otopi-mdp-0.2.2.zip" } ] }