{"id":13813717,"url":"https://github.com/kennethreitz/crayons","last_synced_at":"2025-12-12T01:04:27.130Z","repository":{"id":45457806,"uuid":"79508859","full_name":"kennethreitz/crayons","owner":"kennethreitz","description":"Text UI colors for Python. ","archived":false,"fork":false,"pushed_at":"2020-08-26T21:33:30.000Z","size":39,"stargazers_count":422,"open_issues_count":3,"forks_count":31,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-05T03:27:22.717Z","etag":null,"topics":["colorama","colors","python","text","textui"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/crayons","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kennethreitz.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-20T00:22:07.000Z","updated_at":"2025-03-17T15:14:27.000Z","dependencies_parsed_at":"2022-07-14T13:20:44.724Z","dependency_job_id":null,"html_url":"https://github.com/kennethreitz/crayons","commit_stats":null,"previous_names":["kennethreitz/crayons"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fcrayons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fcrayons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fcrayons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fcrayons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kennethreitz","download_url":"https://codeload.github.com/kennethreitz/crayons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419861,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["colorama","colors","python","text","textui"],"created_at":"2024-08-04T04:01:27.149Z","updated_at":"2025-12-12T01:04:22.106Z","avatar_url":"https://github.com/kennethreitz.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Crayons: Text UI colors for Python.\n===================================\n\n.. image:: https://img.shields.io/pypi/v/crayons.svg\n    :target: https://pypi.org/project/crayons/\n\n.. image:: https://github.com/MasterOdin/crayons/workflows/Test/badge.svg\n    :target: https://github.com/MasterOdin/crayons/actions?query=workflow%3ATest+branch%3Amaster\n\n.. image:: https://img.shields.io/pypi/l/crayons.svg\n    :target: https://pypi.python.org/pypi/crayons\n\n.. image:: https://img.shields.io/pypi/wheel/crayons.svg\n    :target: https://pypi.python.org/pypi/crayons\n\n.. image:: https://img.shields.io/pypi/pyversions/crayons.svg\n    :target: https://pypi.python.org/pypi/crayons\n\n\nThis module is really simple, it gives you colored strings for terminal\nusage. Included colors are ``red``, ``green``, ``yellow``, ``blue``, ``black``, ``magenta``, ``cyan``, ``white``, and\n``normal`` (as well as ``clean`` and ``disable``).\n\n**Crayons** is nice because it automatically wraps a given string in both the foreground color, as well as returning to the\noriginal state after the string is complete. Most terminal color libraries make you manage this yourself.\n\n\n.. image:: https://d3vv6lp55qjaqc.cloudfront.net/items/3q0I293q1z293R3a3a3n/Screen%20Shot%202017-01-23%20at%206.00.02%20PM.png?X-CloudApp-Visitor-Id=2577\n\n\nArguments include ``always=True`` and ``bold=True``.\n\nFeatures\n--------\n\n- If you call ``disable()``, all future calls to colors will be ignored.\n- If you call ``normal()``, color is reset to default foreground color\n- If the current process is not in a TTY (e.g. being piped), no colors will be displayed.\n- Length of ColoredStrings can be properly calculated.\n- Powered by colorama.\n\nUsage is simple\n---------------\n\n::\n\n    # red is red, white is white.\n    \u003e\u003e\u003e print('{} white'.format(crayons.red('red')))\n    red white\n\nThat's it!\n\nInstallation\n------------\n\n::\n\n    $ pip install crayons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethreitz%2Fcrayons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennethreitz%2Fcrayons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethreitz%2Fcrayons/lists"}