{ "info": { "author": "John Thorvald Wodder II", "author_email": "binheat@varonathe.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Multimedia :: Graphics" ], "description": ".. image:: http://www.repostatus.org/badges/latest/active.svg\n :target: http://www.repostatus.org/#active\n :alt: Project Status: Active \u2014 The project has reached a stable, usable\n state and is being actively developed.\n\n.. image:: https://img.shields.io/pypi/pyversions/binheat.svg\n :target: https://pypi.org/project/binheat/\n\n.. image:: https://img.shields.io/github/license/jwodder/binheat.svg\n :target: https://opensource.org/licenses/MIT\n :alt: MIT License\n\n.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg\n :target: https://saythanks.io/to/jwodder\n\n`GitHub `_\n| `PyPI `_\n| `Issues `_\n\n``binheat`` converts a description of a binary relation into a PDF image of the\nrelation as a binary heat map (a.k.a. matrix display, adjacency matrix,\ncomparison chart, and probably a bunch of other names as well; see below for an\nexample).\n\nEach line of the input (except for blank lines and comments, which are ignored)\nmust be of the form ``xy``, denoting a pair ``(x, y)`` in the binary\nrelation. If the ``--multiline`` option is given, an input line may instead\ncontain multiple tab-separated fields; ``xabc`` is then short\nfor ``xa``, ``xb``, and ``xc``.\n\nIn the output table, the values from the first column of each input line become\nthe labels of the table's rows, and the values from the second input column\nonwards become the labels of the table's columns. This can be reversed with\nthe ``--transpose`` option.\n\n\nInstallation\n============\n``binheat`` requires Python 3.4 or higher. Just use `pip\n`_ for Python 3 (You have pip, right?) to install\n``binheat`` and its dependencies::\n\n python3 -m pip install binheat\n\n\nUsage\n=====\n\n::\n\n binheat [] [ []]\n\nInput is read from ```` (or standard input if no file is specified),\nand the resulting PDF is written to ```` (or standard output if no\nfile is specified).\n\n\nOptions\n-------\n\n- ``-C ``, ``--column-labels `` \u2014 Use the lines in ````\n (after discarding blank lines & comments) in the order they appear as column\n labels (or row labels if ``--transpose`` is in effect). Any pairs in the\n input whose second column does not appear in ```` are discarded.\n\n- ``-F ``, ``--font `` \u2014 Use the given ``.ttf`` file for\n the text font. By default, all text is typeset in Times-Roman.\n\n- ``-f ``, ``--font-size `` \u2014 Set the text size to ````\n (default 12).\n\n- ``-m``, ``--multiline`` \u2014 ``foobarbaz`` (or any number of\n tab-separated fields) will be allowed as an abbreviation for ``foobar``\n followed by ``foobaz`` etc.\n\n- ``-R ``, ``--row-labels `` \u2014 Use the lines in ```` (after\n discarding blank lines & comments) in the order they appear as row labels (or\n column labels if ``--transpose`` is in effect). Any pairs in the input whose\n first column does not appear in ```` are discarded.\n\n- ``-S``, ``--no-sort`` \u2014 Labels in the output will be listed in the order in\n which they appear in the input file rather than in lexical order\n\n- ``-T``, ``--transpose`` \u2014 The output will be transposed \u2014 i.e., the first\n column of the input will be used for the output table's column labels, and\n the second input column onwards will be used for the table's row labels.\n\n\nExample\n=======\n\nThe following input file::\n\n NUL (\\0, 0x00)iscntrl\n 0x01..0x06iscntrl\n BEL (\\a, 0x07)iscntrl\n BS (\\b, 0x08)iscntrl\n TAB (\\t, 0x09)iscntrlisspaceisblank\n LF (\\n, 0x0A)iscntrlisspace\n VT (\\v, 0x0B)iscntrlisspace\n FF (\\f, 0x0C)iscntrlisspace\n CR (\\r, 0x0D)iscntrlisspace\n 0x0E..0x1Fiscntrl\n SPACE (0x20)isprintisspaceisblank\n !\"#$%&'()*+,-./isprintisgraphispunct\n 0123456789isprintisgraphisalnumisdigitisxdigit\n :;<=>?@isprintisgraphispunct\n ABCDEFisprintisgraphisalnumisalphaisupperisxdigit\n GHIJKLMNOPQRSTUVWXYZisprintisgraphisalnumisalphaisupper\n [\\]^_`isprintisgraphispunct\n abcdefisprintisgraphisalnumisalphaislowerisxdigit\n ghijklmnopqrstuvwxyzisprintisgraphisalnumisalphaislower\n {|}~isprintisgraphispunct\n DEL (0x7F)iscntrl\n\nproduces (using the ``--multiline`` and ``--no-sort`` options) an output file\nthat looks like this:\n\n.. image:: https://github.com/jwodder/binheat/raw/v0.1.0/examples/ctype.png\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jwodder/binheat", "keywords": "binary heat map,heat map,pdf", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "binheat", "package_url": "https://pypi.org/project/binheat/", "platform": "", "project_url": "https://pypi.org/project/binheat/", "project_urls": { "Bug Tracker": "https://github.com/jwodder/binheat/issues", "Homepage": "https://github.com/jwodder/binheat", "Say Thanks!": "https://saythanks.io/to/jwodder", "Source Code": "https://github.com/jwodder/binheat" }, "release_url": "https://pypi.org/project/binheat/0.1.0/", "requires_dist": [ "click (~=7.0)", "reportlab (~=3.4)" ], "requires_python": "~=3.4", "summary": "Binary heat map generator", "version": "0.1.0" }, "last_serial": 5146449, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "91ad70aa3442177049364725b5e00de6", "sha256": "092e2a0326ec000a4f22255ecb56cb2f5e8e16ee9e749ef8428455b1faa8e14e" }, "downloads": -1, "filename": "binheat-0.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "91ad70aa3442177049364725b5e00de6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 7912, "upload_time": "2019-04-15T19:35:28", "url": "https://files.pythonhosted.org/packages/a4/79/da36593082aef8e6180ec0fb3904b88d7ef5c7eed51b890c4242b52516f7/binheat-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57ff9d360e7da7984c72aa588f81ad4d", "sha256": "0e92dc9a14f43a11d75729a4e8ba06921921d7b074b068399ae1f6ec8dadd6e0" }, "downloads": -1, "filename": "binheat-0.1.0.tar.gz", "has_sig": true, "md5_digest": "57ff9d360e7da7984c72aa588f81ad4d", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 7585, "upload_time": "2019-04-15T19:35:30", "url": "https://files.pythonhosted.org/packages/9d/f6/fb1a8b20404b594fc8041745f5b51ba5ac990249a5c0158ed4561c768301/binheat-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "91ad70aa3442177049364725b5e00de6", "sha256": "092e2a0326ec000a4f22255ecb56cb2f5e8e16ee9e749ef8428455b1faa8e14e" }, "downloads": -1, "filename": "binheat-0.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "91ad70aa3442177049364725b5e00de6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.4", "size": 7912, "upload_time": "2019-04-15T19:35:28", "url": "https://files.pythonhosted.org/packages/a4/79/da36593082aef8e6180ec0fb3904b88d7ef5c7eed51b890c4242b52516f7/binheat-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57ff9d360e7da7984c72aa588f81ad4d", "sha256": "0e92dc9a14f43a11d75729a4e8ba06921921d7b074b068399ae1f6ec8dadd6e0" }, "downloads": -1, "filename": "binheat-0.1.0.tar.gz", "has_sig": true, "md5_digest": "57ff9d360e7da7984c72aa588f81ad4d", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.4", "size": 7585, "upload_time": "2019-04-15T19:35:30", "url": "https://files.pythonhosted.org/packages/9d/f6/fb1a8b20404b594fc8041745f5b51ba5ac990249a5c0158ed4561c768301/binheat-0.1.0.tar.gz" } ] }