{ "info": { "author": "Noah Green", "author_email": "noahc.green@icloud.com", "bugtrack_url": null, "classifiers": [], "description": "Scripting is a boilerplate library for one-off Python scripts when you don't have an IDE or the like to work with. It\nwas primarily designed for Windows where scripts can be run via double-click, but it (probably) works just as well in\na variety of situations.\n\n\nHere's an example what a script might look like pre-Scripting:\n\n.. code-block:: python\n\n import traceback\n\n\n def do_something():\n ...\n return 200\n\n if __name__ == '__main__': # Run as script\n try: # Exceptions will close the terminal window\n print(do_something())\n except Exception:\n traceback.print_exc() # Debug\n finally:\n input() # Keep the window open\n\nIf all you're writing is a simple script and don't want to deal with extensive error handling, chances are you'll end\nup with something like the above. If you write such scripts often, however, the amount of boilerplate adds up and\nquickly becomes tedious to maintain.\n\nPost-Scripting:\n\n.. code-block:: python\n\n import scripting\n\n\n @scripting.main\n def do_something():\n ...\n return 200\n\nScripting takes care of exception handling, output formatting, and maintaining the terminal window for you so that you\ncan focus on getting your script done in the shortest amount of time possible.\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install python-scripting", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/noahcgreen/python-scripting", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-scripting", "package_url": "https://pypi.org/project/python-scripting/", "platform": "", "project_url": "https://pypi.org/project/python-scripting/", "project_urls": { "Homepage": "https://github.com/noahcgreen/python-scripting" }, "release_url": "https://pypi.org/project/python-scripting/0.1.0/", "requires_dist": null, "requires_python": "~=3.6", "summary": "Boilerplate for Python scripting", "version": "0.1.0" }, "last_serial": 3065810, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b2247fada742b9cc11705e7bafab8eb8", "sha256": "ff125e90f2ce0aace342aa9447be013db07eb195959b750b6466e377725b937a" }, "downloads": -1, "filename": "python-scripting-0.1.0.zip", "has_sig": false, "md5_digest": "b2247fada742b9cc11705e7bafab8eb8", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 9147, "upload_time": "2017-08-01T23:36:42", "url": "https://files.pythonhosted.org/packages/a8/5a/fb4a07d851a33695c3158a00e4aa8d902e087df1cc5f94a900c994938cb5/python-scripting-0.1.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b2247fada742b9cc11705e7bafab8eb8", "sha256": "ff125e90f2ce0aace342aa9447be013db07eb195959b750b6466e377725b937a" }, "downloads": -1, "filename": "python-scripting-0.1.0.zip", "has_sig": false, "md5_digest": "b2247fada742b9cc11705e7bafab8eb8", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 9147, "upload_time": "2017-08-01T23:36:42", "url": "https://files.pythonhosted.org/packages/a8/5a/fb4a07d851a33695c3158a00e4aa8d902e087df1cc5f94a900c994938cb5/python-scripting-0.1.0.zip" } ] }