{ "info": { "author": "lmittmann", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "clr\n===\n\n|Build Status| |PyPI version|\n\n**clr** is a simple terminal string styling library. Its API is a port of the popular\n`chalk `__ module for javascript.\n\n\nInstall\n-------\n\n::\n\n $ pip install clr\n\n\nUsage\n-----\n\n.. code:: py\n\n import clr\n\n print(clr.red.bold('Hello world!'))\n\n\nAPI\n---\n\nclr.\\ ``style*[.style](*objects, sep=' ')``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nChain `styles <#styles>`__ and call the last one as a method with an argument. Order doesn't matter, and later styles\ntake precedence in case of a conflict, e.g. ``clr.red.yellow.green`` is equivalent to ``clr.green``.\n\nMultiple arguments will be separated by ``sep``, a space by default.\n\n\nStyles\n------\n\n+---------------------+-------------------------------------+-------------------------------------------+\n| Modifiers | Colors | Background colors |\n+=====================+===============+=====================+==================+========================+\n| - ``bold`` | - ``black`` | - ``light_black`` | - ``on_black`` | - ``on_light_black`` |\n| - ``dim`` | - ``red`` | - ``light_red`` | - ``on_red`` | - ``on_light_red`` |\n| - ``italic`` | - ``green`` | - ``light_green`` | - ``on_green`` | - ``on_light_green`` |\n| - ``underline`` | - ``yellow`` | - ``light_yellow`` | - ``on_yellow`` | - ``on_light_yellow`` |\n| - ``inverse`` | - ``blue`` | - ``light_blue`` | - ``on_blue`` | - ``on_light_blue`` |\n| - ``hidden`` | - ``magenta`` | - ``light_magenta`` | - ``on_magenta`` | - ``on_light_magenta`` |\n| - ``strikethrough`` | - ``cyan`` | - ``light_cyan`` | - ``on_cyan`` | - ``on_light_cyan`` |\n| | - ``white`` | - ``light_white`` | - ``on_white`` | - ``on_light_white`` |\n+---------------------+---------------+---------------------+------------------+------------------------+\n\n\n.. |Build Status| image:: https://travis-ci.org/lmittmann/clr.svg?branch=master\n :target: https://travis-ci.org/lmittmann/clr\n.. |PyPI version| image:: https://img.shields.io/pypi/v/clr.svg\n :target: https://pypi.python.org/pypi/clr\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/lmittmann/clr", "keywords": "clr,color,ansi,terminal styling,chalk", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "clr", "package_url": "https://pypi.org/project/clr/", "platform": "", "project_url": "https://pypi.org/project/clr/", "project_urls": { "Homepage": "https://github.com/lmittmann/clr" }, "release_url": "https://pypi.org/project/clr/1.0.3/", "requires_dist": null, "requires_python": "", "summary": "\ud83c\udf08 Terminal string styling", "version": "1.0.3" }, "last_serial": 4728085, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "008d74bf1e4ddc400fe91b9bc67de0ba", "sha256": "7553f81f7ddc5579e45616ced5fcbdae3941ec817dacf5972d39a156c7cdba1a" }, "downloads": -1, "filename": "clr-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "008d74bf1e4ddc400fe91b9bc67de0ba", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 4419, "upload_time": "2017-01-26T17:06:45", "url": "https://files.pythonhosted.org/packages/a4/71/fb95dfed94ce26310b54216f868d113cb0202691ae56ee4bca2e931f50b0/clr-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ae49eba791b458a4d7b5ba2ab7cc754", "sha256": "26505b51f73518d531a52b1f7855488f8c764de94f248ebb7cbe0549acc9d333" }, "downloads": -1, "filename": "clr-1.0.3.tar.gz", "has_sig": false, "md5_digest": "3ae49eba791b458a4d7b5ba2ab7cc754", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2610, "upload_time": "2017-01-26T17:06:43", "url": "https://files.pythonhosted.org/packages/75/8f/22b6b4813e45da30d2411d7c807364e806188beb4a0a41cb8c5f739cb39c/clr-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "008d74bf1e4ddc400fe91b9bc67de0ba", "sha256": "7553f81f7ddc5579e45616ced5fcbdae3941ec817dacf5972d39a156c7cdba1a" }, "downloads": -1, "filename": "clr-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "008d74bf1e4ddc400fe91b9bc67de0ba", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 4419, "upload_time": "2017-01-26T17:06:45", "url": "https://files.pythonhosted.org/packages/a4/71/fb95dfed94ce26310b54216f868d113cb0202691ae56ee4bca2e931f50b0/clr-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ae49eba791b458a4d7b5ba2ab7cc754", "sha256": "26505b51f73518d531a52b1f7855488f8c764de94f248ebb7cbe0549acc9d333" }, "downloads": -1, "filename": "clr-1.0.3.tar.gz", "has_sig": false, "md5_digest": "3ae49eba791b458a4d7b5ba2ab7cc754", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2610, "upload_time": "2017-01-26T17:06:43", "url": "https://files.pythonhosted.org/packages/75/8f/22b6b4813e45da30d2411d7c807364e806188beb4a0a41cb8c5f739cb39c/clr-1.0.3.tar.gz" } ] }