{ "info": { "author": "Maxime Haineault", "author_email": "haineault@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "python-kolors\n=============\n\nSimple and lightweight shell color output function.\n\nIt also checks if terminal supports color before vomitting ANSI codes.\n\nUsage\n-----\n\n.. code-block:: python\n\n from kolors import c\n\n print c('Some Red and blue text')\n print c('Some green background')\n print c('Some {}').format('interpolation')\n\n\n.. note:: The keyword in the closing tag isn't really relevant, but I like to use \"\" everywhere for shortness and consistency. Simple shell color output function.\n\n\nColors\n------\n\n* grey (alias: gray)\n* red\n* green\n* yellow\n* blue\n* magenta (alias: purple)\n* cyan\n* white\n\n\nStyles\n------\n\n* bold\n* bg\n\n\nRoadmap\n-------\n\nNot sure where this project will go, but suggestions and pull requests are welcome.\n\nThe features bellow were suggested, I'm seriously considering them for the next iterations.\n\n\nUse curses\n**********\n\n.. code-block:: python\n\n import curses\n\n curses.setupterm()\n\n if curses.tigetstr('setf') is not None:\n # Red foreground, if supported.\n print (curses.tparm(curses.tigetstr('setf'), curses.COLOR_RED).decode('utf-8'))\n\n>From man 5 terminfo:\n\n To change the current foreground or background color on a Tek\u2010\n tronix-type terminal, use setaf (set ANSI foreground) and setab\n (set ANSI background) or setf (set foreground) and setb (set back\u2010\n ground). These take one parameter, the color number. The SVr4\n documentation describes only setaf/setab; the XPG4 draft says that\n \"If the terminal supports ANSI escape sequences to set background\n and foreground, they should be coded as setaf and setab, respec\u2010\n tively.\n\nNote: thanks u/awegge!\n\n\nCleaner, nestable syntax\n************************\n\n.. code-block:: xml\n\n Red textRed bold text Red bold tect on Blue backgroundred bold againJust red again \n\n\nWrapping around other libraries\n*******************************\n\nLike colorama & click.style\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/h3/python-kolors", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "kolors", "package_url": "https://pypi.org/project/kolors/", "platform": "", "project_url": "https://pypi.org/project/kolors/", "project_urls": { "Homepage": "https://github.com/h3/python-kolors" }, "release_url": "https://pypi.org/project/kolors/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Simple and lightweight shell color output function.", "version": "0.0.4" }, "last_serial": 3053824, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1cd7883f2f8c42ff31fbc7d90e0e2508", "sha256": "2cfed0fca332818e1db900b8f91a5ddbc933f0b4d306507402a3b5391379586c" }, "downloads": -1, "filename": "kolors-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1cd7883f2f8c42ff31fbc7d90e0e2508", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3779, "upload_time": "2017-07-27T09:19:00", "url": "https://files.pythonhosted.org/packages/bf/cd/8c25ed588cc6e67a59c19f0773c18f8e6bd8a73925a53a9a968b546d684d/kolors-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "64c3949d8a4534b200594697169e1e0c", "sha256": "fe70535b509cc0ddcdb29064f6935417095bbf1d137033c39504b10769e7582e" }, "downloads": -1, "filename": "kolors-0.0.1.tar.gz", "has_sig": false, "md5_digest": "64c3949d8a4534b200594697169e1e0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1982, "upload_time": "2017-07-27T09:19:02", "url": "https://files.pythonhosted.org/packages/43/cd/f6df3495c2757bd0f3ecf5cf8f8ca09755a9512b97914a90866974d3c4f8/kolors-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2f49031843b1210ae547bcb8e89f0efa", "sha256": "2da4351562d8e7e0422a492ba9c6cd19636f5b828e9e62cec1a82909a24c2c00" }, "downloads": -1, "filename": "kolors-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2f49031843b1210ae547bcb8e89f0efa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3764, "upload_time": "2017-07-27T17:44:00", "url": "https://files.pythonhosted.org/packages/48/65/f82a994ce263ed46bac2680f761c21949d91e4b3f704a7dfa647e0c76c29/kolors-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c36ed534a9d2d8fc8488f367754aa95", "sha256": "bccca805594d60b35fa2a9a3cc1f9f73a73c591f4c62c5fcb8153c03645dc4be" }, "downloads": -1, "filename": "kolors-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1c36ed534a9d2d8fc8488f367754aa95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1977, "upload_time": "2017-07-27T17:44:02", "url": "https://files.pythonhosted.org/packages/3c/f3/8e8bb593d397ddb51cfc425e50438d3ddd6d18b15327c023f83040285972/kolors-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a9e1cc6f13f3caacda247f59f2d4b7f5", "sha256": "29cb1a27fe2c302ff416ac32fd4d86a4955bc83e65425ed49dfca9fd3ae1bea6" }, "downloads": -1, "filename": "kolors-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a9e1cc6f13f3caacda247f59f2d4b7f5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3778, "upload_time": "2017-07-27T18:20:38", "url": "https://files.pythonhosted.org/packages/6b/aa/7b84b7ceddde692d2d1ce2c8979f66f68b50ff1157f3286cf86e583cbbfe/kolors-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c719c6ff308ca24b4b4088b3df94726", "sha256": "3321e2e88cb8b548c42633872ceda8d6fe4c652b8d35e88d21a9b0fb8590f6fb" }, "downloads": -1, "filename": "kolors-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8c719c6ff308ca24b4b4088b3df94726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2097, "upload_time": "2017-07-27T18:20:41", "url": "https://files.pythonhosted.org/packages/7d/b0/8d74a08703d7c975dad35917237847fa28c743c79d9c42e81ffc1e34592b/kolors-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e4df2eeeffd29c348fdda6e4228cd04e", "sha256": "e861b1a96a459c7d3c244efc6741dd0c764a8f88290a80d08039ca9ebfef23c8" }, "downloads": -1, "filename": "kolors-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e4df2eeeffd29c348fdda6e4228cd04e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5034, "upload_time": "2017-07-27T20:16:50", "url": "https://files.pythonhosted.org/packages/cf/bb/1d277d65d0ba9b27305edb3c71789c92cbad4a5075394c4cb7e508c0f751/kolors-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f5a801570ff928253c34498f852bcf5", "sha256": "02c3307f16735688fc919d3c6dc1bab660e0468e6d7cad89f5c36ffce0296b45" }, "downloads": -1, "filename": "kolors-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1f5a801570ff928253c34498f852bcf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3560, "upload_time": "2017-07-27T20:16:52", "url": "https://files.pythonhosted.org/packages/92/d3/9cd4c765ef85fc9cd5c1ff63b6be79430002aea59d457845602f7a59f9fa/kolors-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e4df2eeeffd29c348fdda6e4228cd04e", "sha256": "e861b1a96a459c7d3c244efc6741dd0c764a8f88290a80d08039ca9ebfef23c8" }, "downloads": -1, "filename": "kolors-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e4df2eeeffd29c348fdda6e4228cd04e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5034, "upload_time": "2017-07-27T20:16:50", "url": "https://files.pythonhosted.org/packages/cf/bb/1d277d65d0ba9b27305edb3c71789c92cbad4a5075394c4cb7e508c0f751/kolors-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f5a801570ff928253c34498f852bcf5", "sha256": "02c3307f16735688fc919d3c6dc1bab660e0468e6d7cad89f5c36ffce0296b45" }, "downloads": -1, "filename": "kolors-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1f5a801570ff928253c34498f852bcf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3560, "upload_time": "2017-07-27T20:16:52", "url": "https://files.pythonhosted.org/packages/92/d3/9cd4c765ef85fc9cd5c1ff63b6be79430002aea59d457845602f7a59f9fa/kolors-0.0.4.tar.gz" } ] }