{ "info": { "author": "Alexander Bock", "author_email": "alexander.asp.bock@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Terminals", "Topic :: Utilities" ], "description": "colorise v0.1.4\n===============\n\n.. image:: https://travis-ci.org/MisanthropicBit/colorise.svg?branch=master\n :target: https://travis-ci.org/MisanthropicBit/colorise\n\n.. image:: https://pypip.in/license/colorise/badge.png\n :target: https://pypi.python.org/pypi/colorise/\n\nProvides cross-platform text coloring for consoles, useful functions and a nestable color format syntax.\n\n``colorise`` has been tested with Python 2.6, 2.7, 3.2 and 3.3.\n\nInstallation:\n-------------\nYou can install via `pip `_::\n\n pip install colorise\n\nAlternatively, if you downloaded the source files, just run the following command from the\ndownload directory::\n\n python setup.py install\n\nUsage:\n------\n\nThere are a number of ways to color the foreground- and background colors of the output to the console.\nYou can find additional examples in the ``/examples`` folder.\n\nYou can directly set the color:\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/set_color_usage_win.png\n :alt: Using the set_color function\n\nYou can print some text in a predefined color\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/cprint_usage_xubuntu.png\n :alt: Using the cprint function to color a string\n\n``colorise`` has a special color format syntax that allows for nested expressions as well:\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/fprint_usage_win.png\n :alt: Print color formatted text\n\nThere are a few useful tools as well:\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/formatcolor_usage_mac.png\n :alt: Format a string in colors\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/formatbyindex_usage_mac.png\n :alt: Format a string in colors using a list of indices\n\n``colorise.highlight`` behaves like ``colorise.formatbyindex``, but will write the output instead\nof returning a string:\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/highlight_usage_win.png\n :alt: Highlighting select characters in a string\n\nIf you have a ``<`` or ``>`` in your string, you can escape it with a backslash ``\\``. The backslash\nis automatically removed. Colons, escaped or not, ``:`` are ignored if they appear as text.\n\n.. image:: https://raw.githubusercontent.com/MisanthropicBit/colorise/master/screenshots/fprint_escapes_usage_mac.png\n :alt: Use of escapes in a color format string\n\nImplementation notes\n--------------------\nOn Linux and Unix there are no 'dark' themed backgrounds (perhaps \"bolded\" colors which do not truly represnt darkened colors),\nso calling\n\n ``>>> colorise.cprint(\"Isn't this wrong?\", bg='darkred')``\n\nwill just set the background color to red.\n\nDue to the many different termnial/console types, it is virtually impossible to correctly map color names to\ntheir actual colors. You may see variations (like 'yellow' showing up as brownish, e.g. on my Xubuntu box) or\nother discrepancies. ``colorise`` assumes the following available colors:\n\n- Black\n- Red\n- Green\n- Yellow\n- Blue\n- Magenta\n- Cyan\n- White\n\nIt is therefore best to stick to colors which are more likely to be present and correct, like 'red', 'blue' and 'green'.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MisanthropicBit/colorise", "keywords": "text,color,colorise,colorize", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "colorise", "package_url": "https://pypi.org/project/colorise/", "platform": "Platform independent", "project_url": "https://pypi.org/project/colorise/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/MisanthropicBit/colorise" }, "release_url": "https://pypi.org/project/colorise/0.1.4/", "requires_dist": null, "requires_python": null, "summary": "Easily print colored text to the console", "version": "0.1.4" }, "last_serial": 1121420, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "e4bdc76740b2125dcbee7337bbca8804", "sha256": "f50b34a95163ff03aa07abf7fd8bfc1d8e35c2696d35ffde6d98fac0599bd228" }, "downloads": -1, "filename": "colorise-0.0.0.zip", "has_sig": false, "md5_digest": "e4bdc76740b2125dcbee7337bbca8804", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 892, "upload_time": "2014-04-16T21:09:44", "url": "https://files.pythonhosted.org/packages/91/90/f3f062816204d3dd91259ba624471f69a3dc78dcce7b0642d0d526b5ee51/colorise-0.0.0.zip" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "3fb31ba67d7ca62042d8728a2eff3f54", "sha256": "a29f8c391895fbd00da08d881334117178c85d2a24a935871251094e574b5acb" }, "downloads": -1, "filename": "colorise-0.1.0.zip", "has_sig": false, "md5_digest": "3fb31ba67d7ca62042d8728a2eff3f54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18716, "upload_time": "2014-05-17T10:00:07", "url": "https://files.pythonhosted.org/packages/49/d0/3ec8090a62f2f0088402729d58b8a47e3b7fe0f6abea9aa52499b2761e9b/colorise-0.1.0.zip" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f0f2664536455c1fd8d0e33273092e0e", "sha256": "edf365f65ac8b8f3454632ba6d6192fa4f6dd1c78ed0430b067eed7a5ecc9011" }, "downloads": -1, "filename": "colorise-0.1.3.zip", "has_sig": false, "md5_digest": "f0f2664536455c1fd8d0e33273092e0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19473, "upload_time": "2014-06-02T08:09:55", "url": "https://files.pythonhosted.org/packages/61/eb/7d382859bbc33d76e7f4bf151ccfcf5767d8f93e8ecf157c9cb5e678333d/colorise-0.1.3.zip" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "980e159b22492c4f3743caca3663b141", "sha256": "f30835ef0afcdb049f43eebdeb3b22fed991567fd94d4a0301872ed4527004c1" }, "downloads": -1, "filename": "colorise-0.1.4.zip", "has_sig": false, "md5_digest": "980e159b22492c4f3743caca3663b141", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19053, "upload_time": "2014-06-11T11:12:11", "url": "https://files.pythonhosted.org/packages/7e/d0/1e309d164a27d6641910a73c645a4fec01e45eb38a2684920a9b81cfd0c8/colorise-0.1.4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "980e159b22492c4f3743caca3663b141", "sha256": "f30835ef0afcdb049f43eebdeb3b22fed991567fd94d4a0301872ed4527004c1" }, "downloads": -1, "filename": "colorise-0.1.4.zip", "has_sig": false, "md5_digest": "980e159b22492c4f3743caca3663b141", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19053, "upload_time": "2014-06-11T11:12:11", "url": "https://files.pythonhosted.org/packages/7e/d0/1e309d164a27d6641910a73c645a4fec01e45eb38a2684920a9b81cfd0c8/colorise-0.1.4.zip" } ] }