{ "info": { "author": "Miguel \u00c1ngel Garc\u00eda", "author_email": "miguelangel.garcia@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: User Interfaces" ], "description": "Colorize\n========\n\nGive some color to your (remote) TTY!!\n\n============== =============== ========= ============ =======\nVERSION DOWNLOADS TESTS COVERAGE WHEEL\n============== =============== ========= ============ =======\n|pip version| |pip downloads| |travis| |coveralls| |wheel|\n============== =============== ========= ============ =======\n\nAnd it is free. Checkout the `Source code`_.\n\n\nInstallation and Usage\n----------------------\n\nTwo options: to install it in your system/project::\n\n pip install colorize\n\nAnd you can use it with::\n\n python -m colorize -h\n\n\nNow, you have two ways to use it:\n\nRendering the output\n~~~~~~~~~~~~~~~~~~~~\n\nJust execute::\n\n $ command to execute | python -m colorize\n\nIf you need to render both the stdout and the stderr::\n\n $ command to execute |& python -m colorize\n\nThis method works well with too long outputs\n\nAs runner\n~~~~~~~~~\n\nOther way to use it:\n\n $ python -m colorize command to execute\n\nThis method can do disgusting things with too long outputs.\n\nOptions\n-------\n\nYou can change the output format with the argument :code:`-f` or :code:`--format`. It uses the same format that ``logging``, so you can use any of its special variables, like:\n\n- :code:`%(asctime)s`, to show the time.\n- :code:`%(message)s`, to show the message itself.\n- :code:`%(msecs)d`, to show the relative time.\n- `Any other output format allowed by logging`_.\n\nYou can combine them as you wish. Example::\n\n $ python -m colorize -- echo foo\n foo\n $ python -m colorize -f \"%(asctime)s - %(levelname).2s: %(message)s\" -- echo foo\n 05-29 08:43:09 - IN: foo\n $ python -m colorize -f \"%(levelname).2s %(asctime)s - %(message)s\" -- echo foo\n IN 05-29 08:44:17 - foo\n\nDefault date format is :code:`%m-%d %H:%M:%S`, but you can change it with :code:`--date-format`::\n\n $ python -m colorize -f \"%(asctime)s\" --date-format=\"%H:%M:%S\" -- echo foo\n 08:44:17\n $ python -m colorize -f \"%(asctime)s\" --date-format=\"%H %M %S\" -- echo foo\n 08 44 17\n\n\nConfiguration File\n------------------\n\nIt will find a configuration file in the current directory, in the home directory or in the default path directory. The first one found will be used. So, it will search for:\n\n- ``./.colorize.conf``\n- ``$HOME/.configuration/colorize/colorize.conf``\n- ``/etc/colorize/colorize.conf``\n\nThe format for this file is very easy: it is a CSV file with next fields::\n\n # regular expression to highlight (quoted) , bold output , foreground color , background color\n \"^=+$\" , 1 , white ,\n \"^=+$\" , true , white , black\n \"^=+$\" , 0 , red , white\n \"^=+$\" , false , brown , magenta\n\nFor example, you can configure it to colorize the `go test` output::\n\n \"^PASS\", 1, white, green\n \"^ok\", 1, white, green\n \"^FAIL\", 1, white, red\n \"^--- FAIL:\", 1, white, red\n\n\nAvailable colors:\n\n- :code:`black`\n- :code:`white`\n- :code:`red`\n- :code:`green`\n- :code:`blue`\n- :code:`brown`\n- :code:`gray`\n- :code:`magenta`\n- :code:`cyan`\n\nAnd that's all.\n\nExample to simulate colordiff\n-----------------------------\n\nTo emulate colordiff, just use this configuration file::\n\n \"^>.*\", 0, blue\n \"^<.*\", 0, red\n \"^\\d+,?\\d*c\\d+,?\\d*$\", 0, magenta\n\nThat's enough :D\n\n\n.. |travis| image:: https://travis-ci.org/magmax/colorize.png\n :target: `Travis`_\n :alt: Travis results\n\n.. |coveralls| image:: https://coveralls.io/repos/magmax/colorize/badge.png\n :target: `Coveralls`_\n :alt: Coveralls results_\n\n.. |pip version| image:: https://pypip.in/v/colorize/badge.png\n :target: `project`_\n :alt: Latest PyPI version\n\n.. |pip downloads| image:: https://pypip.in/d/colorize/badge.png\n :target: `project`_\n :alt: Number of PyPI downloads\n\n.. |wheel| image:: https://pypip.in/wheel/colorize/badge.png\n :target: `project`_\n :alt: Wheel Status\n\n.. _Travis: https://travis-ci.org/magmax/colorize\n.. _Coveralls: https://coveralls.io/r/magmax/colorize\n.. _project: https://pypi.python.org/pypi/colorize\n.. _download the lastest egg: https://pypi.python.org/pypi/colorize#downloads\n.. _Source code: https://github.com/magmax/colorize\n.. _Any other output format allowed by logging: https://docs.python.org/3.5/library/logging.html#logrecord-attributes\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/magmax/colorize", "keywords": "interface", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "colorize", "package_url": "https://pypi.org/project/colorize/", "platform": "", "project_url": "https://pypi.org/project/colorize/", "project_urls": { "Homepage": "https://github.com/magmax/colorize" }, "release_url": "https://pypi.org/project/colorize/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Command line utility to colorize other commands output", "version": "1.1.0" }, "last_serial": 5153397, "releases": { "0.1.0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f2e9be37b44bbe48e7bfcecd76dbca88", "sha256": "26b676aae729e9316593c48eaeb2554ae4e3aa814f92c4351b050b914a1dc18d" }, "downloads": -1, "filename": "colorize-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f2e9be37b44bbe48e7bfcecd76dbca88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5070, "upload_time": "2014-05-27T05:42:01", "url": "https://files.pythonhosted.org/packages/c1/ec/b59b2609df0d135ebe6a07be255da98bafe464498756f9c26455e63a08e9/colorize-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "62168b31fc5653d07e6986c979ecb9c1", "sha256": "362f70d9473561cd6e459895fcc4d0124755a7df502eb8bf2e70df76eafde0bc" }, "downloads": -1, "filename": "colorize-0.2.0.zip", "has_sig": false, "md5_digest": "62168b31fc5653d07e6986c979ecb9c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9577, "upload_time": "2014-05-27T05:41:58", "url": "https://files.pythonhosted.org/packages/57/e8/11bc3bd42bb6b87dc94e559be8900030ffb2c15299a41c65b81755c99bca/colorize-0.2.0.zip" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2667c15d4fc2ace745d03325d326f2a7", "sha256": "b6a46990298a22de1e1c2c7f21353aee4e24dec863418e68b23f5bde7f004103" }, "downloads": -1, "filename": "colorize-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2667c15d4fc2ace745d03325d326f2a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5085, "upload_time": "2014-05-27T05:44:41", "url": "https://files.pythonhosted.org/packages/d8/72/e2c72cf96298fd5c0a558dd55ae0e1e2e88521fc9f357fd14dfe2418675d/colorize-0.2.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "55f39867a4fe620fcc0f7ece7835d9af", "sha256": "31e645ed73da9def0414e5859232536075edd0c91a008595b18294a598d4029b" }, "downloads": -1, "filename": "colorize-0.2.1.zip", "has_sig": false, "md5_digest": "55f39867a4fe620fcc0f7ece7835d9af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9588, "upload_time": "2014-05-27T05:44:39", "url": "https://files.pythonhosted.org/packages/bd/5f/ec13cff0a6febdffdd26d2743b62760fd0fd719c5cc3109f37d6ee865818/colorize-0.2.1.zip" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "31b9754f09658434df0892dc2d14dac1", "sha256": "5293f8ce4ba89245a656f48f48f09d0a4e80a48045ab017ad06db1369e375740" }, "downloads": -1, "filename": "colorize-1.0.0.tar.gz", "has_sig": false, "md5_digest": "31b9754f09658434df0892dc2d14dac1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7026, "upload_time": "2014-05-30T06:12:30", "url": "https://files.pythonhosted.org/packages/b2/89/6dbd470c985f8f9ca2a3403c9c67c1136f5ca33b914a0b3e1a0a06381f34/colorize-1.0.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "312e35c79c4a42448802a8b5cb0e1d0a", "sha256": "cbcb40abb3047547913aa8726605ccf8f8ba9700e3ec9ba72d7f46d30ca0c2df" }, "downloads": -1, "filename": "colorize-1.0.0.zip", "has_sig": false, "md5_digest": "312e35c79c4a42448802a8b5cb0e1d0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11882, "upload_time": "2014-05-30T06:12:17", "url": "https://files.pythonhosted.org/packages/4e/11/a1f7569dd116564ece48b71ca93880cfe9760f48796cfb3d21a577a7e9d2/colorize-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "aa3aea66793bf1a09fe6843fedcdd953", "sha256": "0ea4094146799b30c8913797865ea04f00a11553e5ca3f27dceb1a4d587d94cb" }, "downloads": -1, "filename": "colorize-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "aa3aea66793bf1a09fe6843fedcdd953", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 22003, "upload_time": "2014-09-13T07:46:49", "url": "https://files.pythonhosted.org/packages/3f/96/0047b5bf52eefdfee0d54b717dd0561eac818c86a4ac7440f9f210aad38c/colorize-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba41245605cb6c290297a15bb6cd9134", "sha256": "ed2223044fd087d04838f45f51878ca0d50d22411253163ffc2b96d8ff1c710f" }, "downloads": -1, "filename": "colorize-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ba41245605cb6c290297a15bb6cd9134", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12255, "upload_time": "2014-09-13T07:46:46", "url": "https://files.pythonhosted.org/packages/2b/17/3faf55cdb1ce81dc23c385a477eeebc389677634e7e4e0551d833a1239d0/colorize-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "2582e02cb28447154f515505cb41c324", "sha256": "716967cfcbba11d2e9f8447de1179781289b3bfd87d182950dcc0c7b72a9a167" }, "downloads": -1, "filename": "colorize-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2582e02cb28447154f515505cb41c324", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9736, "upload_time": "2014-07-11T04:58:22", "url": "https://files.pythonhosted.org/packages/06/b6/fbd414c8fe202dcb51e7e54da5658a8ee9148cc0d1d994c1d816cdc24fa0/colorize-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24597c06d7307320016b32ee0e82684f", "sha256": "5ed98e8b374e20ad3ce0502528a510361306833a6aeb48905a7fea553657bcab" }, "downloads": -1, "filename": "colorize-1.0.2.tar.gz", "has_sig": false, "md5_digest": "24597c06d7307320016b32ee0e82684f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7113, "upload_time": "2014-07-11T04:58:20", "url": "https://files.pythonhosted.org/packages/77/93/910e459a66ead8bc9432ec2b12e3405bf36bc1ce3667ea9c338064e9ba1e/colorize-1.0.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "f70d8035b3d15129d3157fbfeaadfa74", "sha256": "b77d11af217bf95f8f0b9a062588cd847b9d077360db3514434c13034dceac9e" }, "downloads": -1, "filename": "colorize-1.0.2.zip", "has_sig": false, "md5_digest": "f70d8035b3d15129d3157fbfeaadfa74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12003, "upload_time": "2014-07-11T04:58:16", "url": "https://files.pythonhosted.org/packages/44/93/b0313783ddd236e8a77b1dcb89ab9c480f8ad6cfd9d43380fc22162e1d10/colorize-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6d5976406b97e77d49397b08a9051555", "sha256": "95a6c76522c16be0a54410939ac387b62e1f7fddbf8c298f95085667f232d005" }, "downloads": -1, "filename": "colorize-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6d5976406b97e77d49397b08a9051555", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9757, "upload_time": "2014-09-13T08:18:52", "url": "https://files.pythonhosted.org/packages/64/a6/71a2e4d8a380a8afad506f2a04813f3cd8637346c77c87c55c2580a11fd6/colorize-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87417701f15a34231fcb394b655e3b26", "sha256": "a7eec7485675be67f9323af7f53fd5b59cc06e5aa717d66ba2c18340c73b0d1e" }, "downloads": -1, "filename": "colorize-1.0.3.tar.gz", "has_sig": false, "md5_digest": "87417701f15a34231fcb394b655e3b26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7134, "upload_time": "2014-09-13T08:18:49", "url": "https://files.pythonhosted.org/packages/a7/41/793339aba88de22d691c271b2241871b9358b213802a71fc386de17ec699/colorize-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "f1c9953f7e16a2214a362aca225ca45e", "sha256": "30129f3c47d53c7467ed1ade76674fe6fc1994dce525e1b5d4d099901695950c" }, "downloads": -1, "filename": "colorize-1.0.4-py2.7.egg", "has_sig": false, "md5_digest": "f1c9953f7e16a2214a362aca225ca45e", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 14647, "upload_time": "2014-09-13T09:17:43", "url": "https://files.pythonhosted.org/packages/c8/f8/3cafff014176bbfb719c00a944b44c52cba8dd42040c83b5f6d0665f4558/colorize-1.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ef7c46370c5042974218c47ec3a9dfda", "sha256": "a880667d62c9dee053032c8f8ff2e96b10f52a51119327612e9b80918270e107" }, "downloads": -1, "filename": "colorize-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ef7c46370c5042974218c47ec3a9dfda", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10347, "upload_time": "2014-09-13T09:17:47", "url": "https://files.pythonhosted.org/packages/e5/c7/f1c41492464bd0626fadd9fd67ac00ac6c5338649ec697296c4fc46edbb5/colorize-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6dc3e34406832a66fc236a6be905666f", "sha256": "54530e2d2492c112e7623dfa8b6cef52951992230a5a45eb8b7f284a2fbf303b" }, "downloads": -1, "filename": "colorize-1.0.4.tar.gz", "has_sig": false, "md5_digest": "6dc3e34406832a66fc236a6be905666f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7258, "upload_time": "2014-09-13T09:17:41", "url": "https://files.pythonhosted.org/packages/31/fa/728ad86a097846fb8a8bd97ba6c99a940fa9b7c250cc83eece2b1d649411/colorize-1.0.4.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f2da64eff1e90a32c7e2f88b80d0451e", "sha256": "8ded772e7e08a09ef11d14f007669bc0b5adacd0aef84689f5daa81403508bf5" }, "downloads": -1, "filename": "colorize-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2da64eff1e90a32c7e2f88b80d0451e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7569, "upload_time": "2019-04-17T05:43:25", "url": "https://files.pythonhosted.org/packages/d7/36/1de7e2ef3b2a70b0ef58f17f5f9c25dddc1092560934d60086836286a5ec/colorize-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c0e93c097ead9b28e8a9bd89f893549", "sha256": "7c2695611e76b5a772a07b462be60d1c129bb5e84c86236c813fc0cd77799fd2" }, "downloads": -1, "filename": "colorize-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "9c0e93c097ead9b28e8a9bd89f893549", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 14451, "upload_time": "2019-04-17T05:43:23", "url": "https://files.pythonhosted.org/packages/1d/0c/ab4224d76706cf335661b1319110326f89e4c4ea60dc1ee9dbea06133995/colorize-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "f123cd6b140776e1481f0acb4cf6b485", "sha256": "650cf4d28d0442ed5409a1b769f80814da4b7c447fab6b630e81bee15ee990db" }, "downloads": -1, "filename": "colorize-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f123cd6b140776e1481f0acb4cf6b485", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6411, "upload_time": "2019-04-17T05:43:21", "url": "https://files.pythonhosted.org/packages/37/b7/53533b7467d2d261429e927a467041ed81d41dd608268295460a41876e80/colorize-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2da64eff1e90a32c7e2f88b80d0451e", "sha256": "8ded772e7e08a09ef11d14f007669bc0b5adacd0aef84689f5daa81403508bf5" }, "downloads": -1, "filename": "colorize-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2da64eff1e90a32c7e2f88b80d0451e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7569, "upload_time": "2019-04-17T05:43:25", "url": "https://files.pythonhosted.org/packages/d7/36/1de7e2ef3b2a70b0ef58f17f5f9c25dddc1092560934d60086836286a5ec/colorize-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c0e93c097ead9b28e8a9bd89f893549", "sha256": "7c2695611e76b5a772a07b462be60d1c129bb5e84c86236c813fc0cd77799fd2" }, "downloads": -1, "filename": "colorize-1.1.0-py3.6.egg", "has_sig": false, "md5_digest": "9c0e93c097ead9b28e8a9bd89f893549", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 14451, "upload_time": "2019-04-17T05:43:23", "url": "https://files.pythonhosted.org/packages/1d/0c/ab4224d76706cf335661b1319110326f89e4c4ea60dc1ee9dbea06133995/colorize-1.1.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "f123cd6b140776e1481f0acb4cf6b485", "sha256": "650cf4d28d0442ed5409a1b769f80814da4b7c447fab6b630e81bee15ee990db" }, "downloads": -1, "filename": "colorize-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f123cd6b140776e1481f0acb4cf6b485", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6411, "upload_time": "2019-04-17T05:43:21", "url": "https://files.pythonhosted.org/packages/37/b7/53533b7467d2d261429e927a467041ed81d41dd608268295460a41876e80/colorize-1.1.0.tar.gz" } ] }