{ "info": { "author": "Krukov Michael", "author_email": "krukov.michael@ya.ru", "bugtrack_url": null, "classifiers": [], "description": "Textyplot\n=========\nSimple, light project for drawing your diagrams with only text.\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b61f81c2d568445fb297b1ff6caff8d6)](https://www.codacy.com/app/michaelkrukov/textyplot?utm_source=github.com&utm_medium=referral&utm_content=michaelkrukov/textyplot&utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.org/michaelkrukov/textyplot.svg?branch=master)](https://travis-ci.org/michaelkrukov/textyplot) [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b61f81c2d568445fb297b1ff6caff8d6)](https://www.codacy.com/app/michaelkrukov/textyplot?utm_source=github.com&utm_medium=referral&utm_content=michaelkrukov/textyplot&utm_campaign=Badge_Coverage)\n\nFeatures\n========\n * Fast\n * Simple\n * Working with Python 3\n * Supports zooming and adjusting the view.\n * Text graphics with UTF-8 (\u28e7\u2847\u28b8 )\n * Supports python3+\n\nInstallation\n============\nIt's recommended to use pip to install/update.\n\nTo install:\n```\nsudo pip install textyplot\n```\n\nTo update:\n```\nsudo pip install -U textyplot\n```\n\nTo install from github:\n```\nsudo pip install git+https://github.com/michaelkrukov/textyplot.git\n```\n\nCode\n===========\n```\nimport textyplot\n\nplotter = textyplot.Plotter(points, width=80, height=8)\n\nplotter.show(\n zoom=True, data=True, border=True,\n color=False, fill=True, zero=True,\n html=False, stretch=True\n)\n\nplotter.save(\"file.txt\", border=True)\n\nwith open(\"file.txt\", \"w\") as o:\n plotter.write(o, color=True, html=True)\n```\n\nCode examples\n=============\n```\nimport textyplot\n\nplotter = textyplot.Plotter([1, 2, 3, 4, 5, 3, 2, 1], width=80)\nplotter.show()\n\nplotter = textyplot.Plotter(i for i in range(100))\nplotter.show()\n```\n![Result](/docs/code0.png)\n\n```\nimport textyplot\n\nplotter = textyplot.Plotter((i for i in range(100)), width=50)\nplotter.show(color=True, fill=False)\n```\n![Result](/docs/code1.png)\n\n```\nimport textyplot, math\n\nplotter = textyplot.Plotter((math.sin(i / 5) * 5 for i in range(100)), width=50)\nplotter.show(color=True, fill=False)\n```\n![Result](/docs/code2.png)\n\n```\nimport textyplot, math\n\nplotter = textyplot.Plotter((math.log(i) for i in range(1, 500)), width=80)\nplotter.show(color=True, fill=False)\n```\n![Result](/docs/code3.png)\n\n```\nimport textyplot, random\n\nmaximum = 48\nplotter = textyplot.Plotter(\n random.random() * (maximum / 2 - abs(maximum / 2 - i)) for i in range(maximum)\n)\nplotter.show(color=True)\n```\n![Result](/docs/code4.png)\n\nCommand-line usage\n============\n```\nusage: textyplot [-h] [-Z] [-B] [-D] [-C] [-F] [-G] [-H] [-S] [-R]\n [-X characters] [-Y characters]\n\nText mode diagrams with possible colors usin UTF-8 colors.\n\n\noptional arguments:\n -h, --help show this help message and exit\n -Z, --no-zoom zoom diagram (default: yes)\n -B, --no-border draw border (default: yes)\n -D, --no-data draw values (default: yes)\n -C, --no-color use colors (default: yes)\n -F, --no-fill fill diagram (default: yes)\n -G, --no-groud draw zero line (default: yes)\n -H, --html render to html (default: no)\n -S, --stretch stretch points to width\n -R, --reverse reverse points\n -X characters, --width characters\n drawing max width (default: 80)\n -Y characters, --height characters\n drawing height (default: 8)\n```\n\nCommand-line examples\n=======\n```./bin/random 100 | python textyplot```\n![Example #1](/docs/cmd1.png)\n\n```./bin/random 100 | python textyplot -C```\n![Example #2](/docs/cmd2.png)\n\n```./bin/random 10 | python textyplot -X 80```\n![Example #3](/docs/cmd3.png)\n\n```./bin/random 10 | python textyplot -X 80 -S```\n![Example #4](/docs/cmd4.png)\n\n```./bin/random 400 | python textyplot```\n![Example #5](/docs/cmd5.png)\n\n```python ./bin/bitcoin.py | python textyplot -f 50```\n![Example #6](/docs/cmd6.png)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/michaelkrukov/textyplot", "keywords": "diagram,graph,plotting,text", "license": "", "maintainer": "", "maintainer_email": "", "name": "Textyplot", "package_url": "https://pypi.org/project/Textyplot/", "platform": "", "project_url": "https://pypi.org/project/Textyplot/", "project_urls": { "Homepage": "https://github.com/michaelkrukov/textyplot" }, "release_url": "https://pypi.org/project/Textyplot/1.1/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.1" }, "last_serial": 3536323, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d7117388011ae4464fe383505ead2e90", "sha256": "89140fb3830fee4ae490b04358efc7a93914a7cc6dd0cdcf4c951624567dd83b" }, "downloads": -1, "filename": "Textyplot-1.0.tar.gz", "has_sig": false, "md5_digest": "d7117388011ae4464fe383505ead2e90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5860, "upload_time": "2018-01-30T09:32:55", "url": "https://files.pythonhosted.org/packages/62/21/daab979fadc8de6cf0599ab1ba75a911f89d75efffd27ca02c45defcddff/Textyplot-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1c6cad515ff471c6163b3077b33ca04a", "sha256": "bc042d1370f3b1d0940ec2de0f4563abb6b3f73dbede90c8d48dbf0516d0605f" }, "downloads": -1, "filename": "Textyplot-1.1.tar.gz", "has_sig": false, "md5_digest": "1c6cad515ff471c6163b3077b33ca04a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6260, "upload_time": "2018-01-30T20:56:03", "url": "https://files.pythonhosted.org/packages/6d/35/5a83525d4a7ec90af84de7b713d8c08ab96b1c8a9c8977620071a59fad87/Textyplot-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c6cad515ff471c6163b3077b33ca04a", "sha256": "bc042d1370f3b1d0940ec2de0f4563abb6b3f73dbede90c8d48dbf0516d0605f" }, "downloads": -1, "filename": "Textyplot-1.1.tar.gz", "has_sig": false, "md5_digest": "1c6cad515ff471c6163b3077b33ca04a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6260, "upload_time": "2018-01-30T20:56:03", "url": "https://files.pythonhosted.org/packages/6d/35/5a83525d4a7ec90af84de7b713d8c08ab96b1c8a9c8977620071a59fad87/Textyplot-1.1.tar.gz" } ] }