{ "info": { "author": "John Glasgow", "author_email": "jglasgow@northampton.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "=====================\n Terminal Reporter\n=====================\n-----\nAbout\n-----\nTerminal Reporter is a lightweight console report formatting tool for tabular data. It can either write to a file or to the terminal (via stdout).\n\n-----\nGetting Started\n-----\nImporting the module:\n>>> import TerminalWriter\nCreating a title:\n\n>>> import TerminalWriter\nCreating a title:\n\n>>> import writer\nCreating a title:\n>>> print(writer.title_generator(\"Sample Title\", 10))\n======================\n Sample Title\n======================\nCreating the layout for the columns, in this case both columns have a width of 10:\n>>> writer.column_generator([10, 10])\n'{: <10}{: <10}\\n'\nAlso use the column_generator with format to create a column header:\n>>> writer.column_generator([10, 10]).format(\"column1\", \"column2\")\n'column1 column2 \\n'\nGenerating a report is using a combination of the functions mentioned about and a list of lists:\n>>> data = [[\"hello\", \"world\"],\n... [\"goodbye\", \"world\"]]\n>>> report = writer.generate_report(writer.title_generator(\"hello world\", 20),\n... writer.column_generator([10, 10]).format(\"col1\", \"col2\"),\n... writer.column_generator([10, 10]),\n... data)\n>>> print(report)\n===============================\n hello world\n===============================\ncol1 col2\n=====================\n\nhello world\ngoodbye world\n\nIf you want to save a report to disk, specify file_name for the display_report or leave it set to None (the default) to write it out to the console:\n>>> writer.display_report(report, file_name=None)\n===============================\n hello world\n===============================\ncol1 col2\n=====================\n\nhello world\ngoodbye world", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/N-C-C/TerminalWriter", "keywords": null, "license": null, "maintainer": null, "maintainer_email": null, "name": "TerminalWriter", "package_url": "https://pypi.org/project/TerminalWriter/", "platform": null, "project_url": "https://pypi.org/project/TerminalWriter/", "project_urls": { "Homepage": "https://github.com/N-C-C/TerminalWriter" }, "release_url": "https://pypi.org/project/TerminalWriter/1.0.1/", "requires_dist": null, "requires_python": ">=3", "summary": "This module has functions to generate simple tabular reports.", "version": "1.0.1" }, "last_serial": 2536723, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b3e9b55959aefd34ad778203b3add448", "sha256": "7e7a451570a32ddfa5b75065e2423b1b0d465ed2f70bcff9e2bcb26f9b7a5c70" }, "downloads": -1, "filename": "TerminalWriter-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b3e9b55959aefd34ad778203b3add448", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5339, "upload_time": "2016-12-22T22:01:57", "url": "https://files.pythonhosted.org/packages/36/14/3b8977084150c67256b1d378634f08b977ef75fbde8b65f82839cb8bae71/TerminalWriter-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4052b4476db5361fc4d0d1cb0d42a734", "sha256": "ee2d0cbff9d86c36dcddd41d2d24960bae506d2774391432b7bf6514efd783d5" }, "downloads": -1, "filename": "TerminalWriter-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4052b4476db5361fc4d0d1cb0d42a734", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5921, "upload_time": "2016-12-23T14:50:43", "url": "https://files.pythonhosted.org/packages/38/1e/78fe199bcaf9bb47b5b6ce57f2b1a55e2bff0dad8bcb7af5c0e862a27f13/TerminalWriter-1.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4052b4476db5361fc4d0d1cb0d42a734", "sha256": "ee2d0cbff9d86c36dcddd41d2d24960bae506d2774391432b7bf6514efd783d5" }, "downloads": -1, "filename": "TerminalWriter-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4052b4476db5361fc4d0d1cb0d42a734", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 5921, "upload_time": "2016-12-23T14:50:43", "url": "https://files.pythonhosted.org/packages/38/1e/78fe199bcaf9bb47b5b6ce57f2b1a55e2bff0dad8bcb7af5c0e862a27f13/TerminalWriter-1.0.1-py3-none-any.whl" } ] }