{ "info": { "author": "mkaz", "author_email": "marcus@mkaz.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3.6" ], "description": "# Termgraph\n\nA python command-line tool which draws basic graphs in the terminal.\n\nGraph types supported:\n\n- Bar Graphs\n- Color charts\n- Multi-variable\n- Stacked charts\n- Horizontal or Vertical\n- Emoji!\n\n\n### Examples\n\n```\ntermgraph data/ex1.dat\n\n# Reading data from data/ex1.dat\n\n2007: \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 183.32\n2008: \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 231.23\n2009: \u2587 16.43\n2010: \u2587\u2587\u2587\u2587 50.21\n2011: \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 508.97\n2012: \u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587\u2587 212.05\n2014: \u258f 1.00\n```\n\nAn example using emoji as custom tick:\n\n```\ntermgraph data/ex1.dat --custom-tick \"\ud83c\udfc3\" --width 20 --title \"Running Data\"\n\n# Running Data\n\n2007: \ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3 183.32\n2008: \ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3 231.23\n2009: 16.43\n2010: \ud83c\udfc3 50.21\n2011: \ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3 508.97\n2012: \ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3\ud83c\udfc3 212.05\n2014: 1.00\n\n```\n\n\nAn example using stdin and emoji:\n\n```\necho \"Label,3,9,1\" | termgraph --custom-tick \"\ud83d\ude00\" --no-label\n\n\n\ud83d\ude00\ud83d\ude00\ud83d\ude00 3.00\n\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00\ud83d\ude00 9.00\n\ud83d\ude00 1.00\n\n```\n\nMost results can be copied and pasted wherever you like, since they use standard block characters. However the color charts will not show, since they use terminal escape codes for color. A couple images to show color examples:\n\n```\ntermgraph data/ex4.dat --color {blue,red}\n```\n\n\"Multi\n\n```\ntermgraph data/ex7.dat --color {yellow,magenta} --stacked --title \"Stacked Data\"\n```\n\n\"Multi\n\n\nCalendar Heatmap, expects first column to be date in yyyy-mm-dd\n\n```\ntermgraph --calendar --start-dt 2017-07-01 data/cal.dat\n```\n\n\"Calendar\n\n\n\n### Install\n\nWorks best with Python3, you can install from [PyPI project](https://pypi.org/project/termgraph/)\n\n```\npip3 install termgraph\n```\n\nNote: Be sure your PATH includes the pypi install directory, for me it is `~/.local/bin/`\n\n### Usage\n\n* Create data file with two columns either comma or space separated.\n The first column is your labels, the second column is a numeric data\n\n* termgraph [datafile]\n\n* Help: termgraph -h\n\n```\n\nusage: termgraph [-h] [--title TITLE] [--width WIDTH] [--format FORMAT]\n [--suffix SUFFIX] [--no-labels]\n [--color [{red,blue,green,magenta,yellow,black,cyan} [{red,blue,green,magenta,yellow,black,cyan} ...]]]\n [--vertical] [--stacked] [--different-scale] [--calendar]\n [--start-dt START_DT] [--custom-tick CUSTOM_TICK]\n [--delim DELIM] [--verbose]\n [filename]\n\ndraw basic graphs on terminal\n\npositional arguments:\n filename data file name (comma or space separated). Defaults to\n stdin.\n\noptional arguments:\n -h, --help show this help message and exit\n --title TITLE Title of graph\n --width WIDTH width of graph in characters default:50\n --format FORMAT format specifier to use.\n --suffix SUFFIX string to add as a suffix to all data points.\n --no-labels Do not print the label column\n --color [{red,blue,green,magenta,yellow,black,cyan} [{red,blue,green,magenta,yellow,black,cyan} ...]]\n Graph bar color( s )\n --vertical Vertical graph\n --stacked Stacked bar graph\n --different-scale Categories have different scales.\n --calendar Calendar Heatmap chart\n --start-dt START_DT Start date for Calendar chart\n --custom-tick CUSTOM_TICK\n Custom tick mark, emoji approved\n --delim DELIM Custom delimiter, default , or space\n --verbose Verbose output, helpful for debugging\n```\n\n\n### Background\n\nI wanted a quick way to visualize data stored in a simple text file. I initially created some scripts in R that generated graphs but this was a two step process of creating the graph and then opening the generated graph.\n\nAfter seeing [command-line sparklines](https://github.com/holman/spark) I figured I could do the same thing using block characters for bar charts.\n\n### Contribute\n\nFor feature requests or bug reports, use [Github Issues](https://github.com/mkaz/termgraph/issues).\n\nThanks to all the additional [Contributors](https://github.com/mkaz/termgraph/graphs/contributors).\n\n\n### License\n\nMIT License, see [LICENSE.txt](LICENSE.txt)\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://pypi.python.org/pypi/termgraph/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mkaz/termgraph", "keywords": "python CLI tool drawing graphs shell terminal", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "termgraph", "package_url": "https://pypi.org/project/termgraph/", "platform": "any", "project_url": "https://pypi.org/project/termgraph/", "project_urls": { "Download": "https://pypi.python.org/pypi/termgraph/", "Homepage": "https://github.com/mkaz/termgraph" }, "release_url": "https://pypi.org/project/termgraph/0.2.0/", "requires_dist": [ "colorama" ], "requires_python": ">=3.6", "summary": "a python command-line tool which draws basic graphs in the terminal", "version": "0.2.0" }, "last_serial": 4397232, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "13138a58a39b686ef11abdfdb506b276", "sha256": "829dfba18ad1f3228dcac420b40962443ed7463cc9184b64b435bd23cbfd7da5" }, "downloads": -1, "filename": "termgraph-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "13138a58a39b686ef11abdfdb506b276", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8854, "upload_time": "2018-07-30T13:40:00", "url": "https://files.pythonhosted.org/packages/78/00/9fb366684a1121765b5ca99a7794375907961c53bac043ad54aa8450abcb/termgraph-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f22cb9829346577753292a131f4ac7d", "sha256": "b996dad9428363d09f45016f4b17ecd67dfb0c91c880d03ad4aa037ef6681a06" }, "downloads": -1, "filename": "termgraph-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5f22cb9829346577753292a131f4ac7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8864, "upload_time": "2018-07-30T13:40:01", "url": "https://files.pythonhosted.org/packages/e3/18/f6cce4a8af9e319d8233fa40372b7c8fffdcb99315dc94d2eca182397c89/termgraph-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e2143e7be3c3a882cad60dba21a65a21", "sha256": "c7af4710232613ccecd00867ecec65b36f422624757552ae3f10c099889ec5e0" }, "downloads": -1, "filename": "termgraph-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e2143e7be3c3a882cad60dba21a65a21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8417, "upload_time": "2018-07-30T14:24:25", "url": "https://files.pythonhosted.org/packages/3a/f8/7f51ec31ce5c6ef59cb3dbe06c6f26f0225b4932c1da2324582afbb92a7c/termgraph-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c67bf99aeca7c2c5559513885223a46", "sha256": "4d20bfc8f7c7ea0d50cf73cc0a719e68b618c109e0adb2a5c71b2a66f89ead5d" }, "downloads": -1, "filename": "termgraph-0.1.1.tar.gz", "has_sig": false, "md5_digest": "1c67bf99aeca7c2c5559513885223a46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8896, "upload_time": "2018-07-30T14:24:26", "url": "https://files.pythonhosted.org/packages/f1/82/cd4dfc0925862c182145a609da2a7183b33056a271795c2a63b39f8035df/termgraph-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fd928327517e99b2be214edfd651d64c", "sha256": "2e942c27c41a5d6fe3c2aecc26b07afb1ae5c5001edab9dbb2ac1dd67efff1db" }, "downloads": -1, "filename": "termgraph-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "fd928327517e99b2be214edfd651d64c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8524, "upload_time": "2018-07-30T15:11:57", "url": "https://files.pythonhosted.org/packages/cf/a8/84eb0a974a2b5100e0b03d9037d06e73f67b43a0d8ca97ed5222ada5afe2/termgraph-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d05f268a6fbf9d70d418e75ff7ef93ea", "sha256": "66521f124a2d04a3c6cca0f095f8485d684c1563ac4e2a676d02d75d1ba62335" }, "downloads": -1, "filename": "termgraph-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d05f268a6fbf9d70d418e75ff7ef93ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9000, "upload_time": "2018-07-30T15:11:58", "url": "https://files.pythonhosted.org/packages/2e/5a/f6648c6fb1713836d8cf1a67fd4c8c26288d7f1efe1bd327141414a4e5a8/termgraph-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f322811ec6f929ff346c7abbaf646b2e", "sha256": "27b871f8b567f21be08254f90042b44f9a75e188c81cf747dce2a092c85181fe" }, "downloads": -1, "filename": "termgraph-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f322811ec6f929ff346c7abbaf646b2e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8518, "upload_time": "2018-07-31T11:36:16", "url": "https://files.pythonhosted.org/packages/c1/b1/4e78cd3ae76ea8d2f9a2edeef5f1ccd6e3efe58cdbc92ab9d20efeb0846b/termgraph-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5ad07c1dda7880a72f9f1952aa8ccfb5", "sha256": "1280ce23f9604552af150a5e0e6fb05912f0e3fab7f883daa74a6d71c1cb9b4d" }, "downloads": -1, "filename": "termgraph-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5ad07c1dda7880a72f9f1952aa8ccfb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9003, "upload_time": "2018-07-31T11:36:17", "url": "https://files.pythonhosted.org/packages/f3/7a/0760af98a9db2fef1180b360274e2a6af4c1a7ea15d0100fc2fd4fd2d9f0/termgraph-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "f5226a0b9565682a6f0e1c568a25f506", "sha256": "9f42947d1511122b4893aa91513e79b91999a311f29c4280185047865d251352" }, "downloads": -1, "filename": "termgraph-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "f5226a0b9565682a6f0e1c568a25f506", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8603, "upload_time": "2018-09-23T14:50:06", "url": "https://files.pythonhosted.org/packages/56/ae/144611b55cc82294210add6b486b9a221ee532b77f435c562bfd3874fa39/termgraph-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8605f273437235e48a3e8b2d1c3e0851", "sha256": "f5c1c86a812c2dd4f25d59e9bdbf6e7954f5b3ba654184c4d03a234b2f06e162" }, "downloads": -1, "filename": "termgraph-0.1.4.tar.gz", "has_sig": false, "md5_digest": "8605f273437235e48a3e8b2d1c3e0851", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9681, "upload_time": "2018-09-23T14:50:08", "url": "https://files.pythonhosted.org/packages/ff/a1/2c946e101aaa2cc85ed3fa8b9fc2391bdad74b37ca7b3b1be14fd44d6571/termgraph-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "bd4caad499b0ec2d4c7fbe16599941f1", "sha256": "b120bdfc0e239d3ac9aa1855f5519020a4afde714dce896f1a9ba34079a8e0eb" }, "downloads": -1, "filename": "termgraph-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bd4caad499b0ec2d4c7fbe16599941f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 9486, "upload_time": "2018-10-20T13:53:01", "url": "https://files.pythonhosted.org/packages/6e/45/955060f2957c31d448b926519ebedf12ff0f516b3f22312655f2b52b3894/termgraph-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d54b783a7572c24edc9c4eaa9553b0c3", "sha256": "7c3f0c44f19dda962f45e22c2929e7d2a1d3092f4a96c1773a69655da66ac26d" }, "downloads": -1, "filename": "termgraph-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d54b783a7572c24edc9c4eaa9553b0c3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9746, "upload_time": "2018-10-20T13:53:02", "url": "https://files.pythonhosted.org/packages/87/ac/9275face1ee48183612133d711a68c8447ddcc6d738a0515915b1993c29a/termgraph-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bd4caad499b0ec2d4c7fbe16599941f1", "sha256": "b120bdfc0e239d3ac9aa1855f5519020a4afde714dce896f1a9ba34079a8e0eb" }, "downloads": -1, "filename": "termgraph-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bd4caad499b0ec2d4c7fbe16599941f1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 9486, "upload_time": "2018-10-20T13:53:01", "url": "https://files.pythonhosted.org/packages/6e/45/955060f2957c31d448b926519ebedf12ff0f516b3f22312655f2b52b3894/termgraph-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d54b783a7572c24edc9c4eaa9553b0c3", "sha256": "7c3f0c44f19dda962f45e22c2929e7d2a1d3092f4a96c1773a69655da66ac26d" }, "downloads": -1, "filename": "termgraph-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d54b783a7572c24edc9c4eaa9553b0c3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 9746, "upload_time": "2018-10-20T13:53:02", "url": "https://files.pythonhosted.org/packages/87/ac/9275face1ee48183612133d711a68c8447ddcc6d738a0515915b1993c29a/termgraph-0.2.0.tar.gz" } ] }