{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: http://gfxmonk.net/dist/status/project/termstyle.png\r\n\r\n=========\r\ntermstyle\r\n=========\r\n\r\ntermstyle is a simple python library for adding coloured output to\r\nterminal (console) programs. The definitions come from ECMA-048_, the\r\n\"Control Functions for Coded Character Sets\" standard.\r\n\r\n\r\nExample Usage:\r\n--------------\r\n::\r\n\r\n\tfrom termstyle import *\r\n\tprint \"%s:%s\" % (red('Hey'), green('how are you?'))\r\n\tprint blue('How ', bold('you'), ' doin?')\r\n\r\nor, you can use a colour just as a string::\r\n\r\n\tprint \"%sBlue!%s\" % (blue, reset)\r\n\r\nStyles:\r\n-------\r\n::\r\n\r\n\treset or default (no colour / style)\r\n\r\ncolour::\r\n\r\n\tblack\r\n\tred\r\n\tgreen\r\n\tyellow\r\n\tblue\r\n\tmagenta\r\n\tcyan\r\n\twhite\r\n\r\nbackground colour::\r\n\r\n\tbg_black\r\n\tbg_red\r\n\tbg_green\r\n\tbg_yellow\r\n\tbg_blue\r\n\tbg_magenta\r\n\tbg_cyan\r\n\tbg_white\r\n\tbg_default\r\n\r\nIn terminals supporting transparency ``bg_default`` is often used to set\r\nthe background to transparent [#]_.\r\n\r\nweight::\r\n\r\n\tbold\r\n\tinverted\r\n\r\nstyle::\r\n\r\n\titalic\r\n\tunderscore\r\n\r\nControls:\r\n---------\r\n::\r\n\r\n\tauto() - sets colouring on only if sys.stdout is a terminal\r\n\tdisabe() - disable colours\r\n\tenable() - enable colours\r\n\r\n.. [#] Supporting terminals include rxvt-unicode_, and Eterm_.\r\n\r\n.. _ECMA-048: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf\r\n.. _rxvt-unicode: http://software.schmorp.de/\r\n.. _Eterm: http://www.eterm.org/\r\n.. _zero-install: http://0install.net/", "description_content_type": null, "docs_url": null, "download_url": "http://gfxmonk.net/dist/0install/impl/python-termstyle/python-termstyle-0.1.10.tgz#md5=1ffe4a4fa86448f2a5fec0036ae21802", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://gfxmonk.net/dist/0install/python-termstyle.xml", "keywords": "output colour console ansi", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "python-termstyle", "package_url": "https://pypi.org/project/python-termstyle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-termstyle/", "project_urls": { "Download": "http://gfxmonk.net/dist/0install/impl/python-termstyle/python-termstyle-0.1.10.tgz#md5=1ffe4a4fa86448f2a5fec0036ae21802", "Homepage": "http://gfxmonk.net/dist/0install/python-termstyle.xml" }, "release_url": "https://pypi.org/project/python-termstyle/0.1.10/", "requires_dist": null, "requires_python": null, "summary": "console colouring for python", "version": "0.1.10" }, "last_serial": 2067069, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "1b227cebbeda209029252420af72e5c7", "sha256": "f42a6bb16fbfc5e2c66d553e7ad46524ea833872f75ee5d827c15115fafc94e2" }, "downloads": -1, "filename": "python-termstyle-0.1.10.tar.gz", "has_sig": false, "md5_digest": "1b227cebbeda209029252420af72e5c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2013-07-18T22:21:06", "url": "https://files.pythonhosted.org/packages/b3/b0/97086bb087d660cbdb9c0b0dbaa0548ebd9ba9d5e4701bc09b862228110d/python-termstyle-0.1.10.tar.gz" }, { "comment_text": "", "digests": { "md5": "1ffe4a4fa86448f2a5fec0036ae21802", "sha256": "6faf42ba42f2826c38cf70dacb3ac51f248a418e48afc0e36593df11cf3ab1d2" }, "downloads": -1, "filename": "python-termstyle-0.1.10.tgz", "has_sig": false, "md5_digest": "1ffe4a4fa86448f2a5fec0036ae21802", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2903, "upload_time": "2013-07-18T22:13:46", "url": "https://files.pythonhosted.org/packages/d3/ec/47c1b7b91e948cc67e23bd496225f80ff8896d4fa82800cadb3674068dd8/python-termstyle-0.1.10.tgz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1b227cebbeda209029252420af72e5c7", "sha256": "f42a6bb16fbfc5e2c66d553e7ad46524ea833872f75ee5d827c15115fafc94e2" }, "downloads": -1, "filename": "python-termstyle-0.1.10.tar.gz", "has_sig": false, "md5_digest": "1b227cebbeda209029252420af72e5c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2013-07-18T22:21:06", "url": "https://files.pythonhosted.org/packages/b3/b0/97086bb087d660cbdb9c0b0dbaa0548ebd9ba9d5e4701bc09b862228110d/python-termstyle-0.1.10.tar.gz" }, { "comment_text": "", "digests": { "md5": "1ffe4a4fa86448f2a5fec0036ae21802", "sha256": "6faf42ba42f2826c38cf70dacb3ac51f248a418e48afc0e36593df11cf3ab1d2" }, "downloads": -1, "filename": "python-termstyle-0.1.10.tgz", "has_sig": false, "md5_digest": "1ffe4a4fa86448f2a5fec0036ae21802", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2903, "upload_time": "2013-07-18T22:13:46", "url": "https://files.pythonhosted.org/packages/d3/ec/47c1b7b91e948cc67e23bd496225f80ff8896d4fa82800cadb3674068dd8/python-termstyle-0.1.10.tgz" } ] }