{ "info": { "author": "Christoph Stahl", "author_email": "christoph.stahl@uni-dortmund.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Handhelds/PDA's", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Customer Service", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Topic :: Terminals :: Terminal Emulators/X Terminals", "Topic :: Utilities" ], "description": "WARPED - a Webbased frontend for ARgparser in Python\r\n====================================================\r\n\r\n``warped`` can be used to execute single Python file and Python modules.\r\nIt captures calls to the ``argparse`` module of Python and renders a web\r\nGUI based on the options and arguments defined. It also displays the\r\noutput of the program inside the web GUI and allows you to stop, pause\r\nand resume the program, as well as downloading the output.\r\n\r\nInstall\r\n-------\r\n\r\nEither get a stable version from PyPI, or install the current version\r\nfrom git\r\n\r\n::\r\n\r\n # Installation from PyPI\r\n pip install warped\r\n\r\n # Installation from git\r\n pip install git+https://git.k-fortytwo.de/christofsteel/warped/\r\n\r\nUsage\r\n-----\r\n\r\n::\r\n\r\n warped [-h] [--port PORT] [--host HOST] [--module] file\r\n\r\n a Webbased frontend for ARgparse in Python\r\n\r\n positional arguments:\r\n file File to run\r\n\r\n optional arguments:\r\n -h, --help show this help message and exit\r\n --port PORT, -p PORT The port to listen on (default 5000)\r\n --host HOST The host to bind to (default 0.0.0.0)\r\n --module, -m If set, loads a module instead of a file\r\n\r\nSample\r\n------\r\n\r\nTo test the capabilities of ``warped`` an example module was included.\r\nYou can run it like this:\r\n\r\n::\r\n\r\n warped -m warped.samples.hooked\r\n\r\nSince ``warped`` also makes use of the argparse module, ``warped``\r\nitself can be //warped//.\r\n\r\n::\r\n\r\n warped -m warped.hook\r\n\r\nHow does it work?\r\n-----------------\r\n\r\nWhen ``warped`` is executed, it starts a flask webserver. The javascript\r\nof the website reads the ``/arguments`` resource of the server, where\r\nthe configuration of the argparser returned. In a seperate process the\r\ngiven program is executed using the ``runpy`` library, redirecting\r\n``sys.stdin`` and ``sys.stdout`` to a ``multiprocessing.Queue``, which\r\ncan be read by the warp process to display it via the web GUI.\r\n\r\nAdditionally, ``warped`` adds an entry for ``argparse`` in the\r\n``sys.modules`` list. Python looks first looks at this list, everytime a\r\nmodule is imported, to avoid importing a module multiple times. This\r\ncustom ``argparse`` module behaves similar to the original ``argparse``\r\nmodule. In fact with the exception of the\r\n``ArgumentParser.parse_args()`` method, it works exactly like the\r\noriginal. Once the program calls the ``parse_args()`` method, it blocks\r\nand waits for user interaction via the web GUI. Once the user submits\r\nthe data, the process continues.", "description_content_type": null, "docs_url": null, "download_url": "https://git.k-fortytwo.de/christofsteel/warped/archive/0.1.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://git.k-fortytwo.de/christofsteel/warped", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "warped", "package_url": "https://pypi.org/project/warped/", "platform": "", "project_url": "https://pypi.org/project/warped/", "project_urls": { "Download": "https://git.k-fortytwo.de/christofsteel/warped/archive/0.1.3.tar.gz", "Homepage": "https://git.k-fortytwo.de/christofsteel/warped" }, "release_url": "https://pypi.org/project/warped/0.1.3/", "requires_dist": [ "Flask" ], "requires_python": "", "summary": "A webbased wrapper for the argument parser in Python", "version": "0.1.3" }, "last_serial": 2943434, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3eea825f5fd3cc0ca96a08a066c60add", "sha256": "4d39d7617a117a167d441f84768102b87824b9fd644518d20d34cadf0942fb1c" }, "downloads": -1, "filename": "warped-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3eea825f5fd3cc0ca96a08a066c60add", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 520444, "upload_time": "2017-05-29T10:16:52", "url": "https://files.pythonhosted.org/packages/ff/96/e5cf441b10014d7b4193510b22910cc67fb6944e85641aaf4535885bd570/warped-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e1d79f4c231bb6f91be4901435fce354", "sha256": "de1fe4fe334b0d3d4033c85bbda23eaa5480dafc07193e284b06e61c5e2b5fe7" }, "downloads": -1, "filename": "warped-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e1d79f4c231bb6f91be4901435fce354", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 521803, "upload_time": "2017-05-29T12:59:26", "url": "https://files.pythonhosted.org/packages/53/8e/dd1a1a6ba9fe42f0910958291ea1365781e76e4b2baae5345f3aef07ba4c/warped-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f27ec8cb552f6326402abe96aea1c088", "sha256": "856014be254d2ceea9ad9d49f38cb329a00e3eeec467e3cea755e76a76c33867" }, "downloads": -1, "filename": "warped-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "f27ec8cb552f6326402abe96aea1c088", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 683300, "upload_time": "2017-05-31T13:26:33", "url": "https://files.pythonhosted.org/packages/53/7b/e8bfdbcc29a38a3396a1f900e46ca054d03741570dd3d8e5aca5a3bc2000/warped-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12418691c4d63f6fc253dc5a2d0742e3", "sha256": "8375f800fb0e945d29026248507e5478b95896a75fa3e7e38c898941f96d745b" }, "downloads": -1, "filename": "warped-0.1.2.tar.gz", "has_sig": false, "md5_digest": "12418691c4d63f6fc253dc5a2d0742e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 524358, "upload_time": "2017-05-31T13:27:10", "url": "https://files.pythonhosted.org/packages/8a/22/8dbea74edc7abeb881176cd3593293cbdddac0c38826b9a0465a87b795a2/warped-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1ba765a62188efd3f9ccfc8264764f02", "sha256": "3971c22d20763786bae869b4b5c2a510adcfafc39b6217931d6081be5b4599e5" }, "downloads": -1, "filename": "warped-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1ba765a62188efd3f9ccfc8264764f02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 681756, "upload_time": "2017-05-31T13:32:11", "url": "https://files.pythonhosted.org/packages/55/62/3e437f5d271569d512928a67207ecec47f6bc13ff3f6241e06f1142c8539/warped-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "202a687928bbbc36c3358e4ff7dc3098", "sha256": "a845c47a4ce8ecb105f65c692bd83f4c0b47422e59cff80594a2904f0d0dc060" }, "downloads": -1, "filename": "warped-0.1.3.tar.gz", "has_sig": false, "md5_digest": "202a687928bbbc36c3358e4ff7dc3098", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 522068, "upload_time": "2017-05-31T13:32:38", "url": "https://files.pythonhosted.org/packages/6d/3d/e602233544f22dbd1e8447cd8ca0e52aefe43d642f42bf8b70383276b6ce/warped-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ba765a62188efd3f9ccfc8264764f02", "sha256": "3971c22d20763786bae869b4b5c2a510adcfafc39b6217931d6081be5b4599e5" }, "downloads": -1, "filename": "warped-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1ba765a62188efd3f9ccfc8264764f02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 681756, "upload_time": "2017-05-31T13:32:11", "url": "https://files.pythonhosted.org/packages/55/62/3e437f5d271569d512928a67207ecec47f6bc13ff3f6241e06f1142c8539/warped-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "202a687928bbbc36c3358e4ff7dc3098", "sha256": "a845c47a4ce8ecb105f65c692bd83f4c0b47422e59cff80594a2904f0d0dc060" }, "downloads": -1, "filename": "warped-0.1.3.tar.gz", "has_sig": false, "md5_digest": "202a687928bbbc36c3358e4ff7dc3098", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 522068, "upload_time": "2017-05-31T13:32:38", "url": "https://files.pythonhosted.org/packages/6d/3d/e602233544f22dbd1e8447cd8ca0e52aefe43d642f42bf8b70383276b6ce/warped-0.1.3.tar.gz" } ] }