{"id":16704347,"url":"https://github.com/lmittmann/style","last_synced_at":"2025-03-21T20:32:19.687Z","repository":{"id":57472033,"uuid":"79461133","full_name":"lmittmann/style","owner":"lmittmann","description":"🌈 Terminal string styling","archived":false,"fork":false,"pushed_at":"2022-05-03T14:22:01.000Z","size":22,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T04:51:20.250Z","etag":null,"topics":["ansi","chalk","color","pypi","python","string-styling","style","terminal"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/style","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/lmittmann.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-19T14:27:09.000Z","updated_at":"2023-06-10T15:31:12.000Z","dependencies_parsed_at":"2022-08-30T13:52:25.709Z","dependency_job_id":null,"html_url":"https://github.com/lmittmann/style","commit_stats":null,"previous_names":["lmittmann/clr"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmittmann%2Fstyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmittmann%2Fstyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmittmann%2Fstyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmittmann%2Fstyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmittmann","download_url":"https://codeload.github.com/lmittmann/style/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244865909,"owners_count":20523425,"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":["ansi","chalk","color","pypi","python","string-styling","style","terminal"],"created_at":"2024-10-12T19:12:27.628Z","updated_at":"2025-03-21T20:32:19.409Z","avatar_url":"https://github.com/lmittmann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"style\n=====\n\n|Build Status| |PyPI version|\n\n**style** is a simple terminal string styling package. Its API is a port of the popular\n`chalk \u003chttps://github.com/chalk/chalk\u003e`__ package for javascript.\n\n\nInstall\n-------\n\n::\n\n    $ pip install style\n\n\nUsage\n-----\n\n.. code:: py\n\n    import style\n\n    print(style.red('Hello', style.bold('world') + '!'))\n\n\nAPI\n---\n\nstyle.\\ ``style*[.style](*objects, sep=' ')``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nChain `styles \u003c#styles\u003e`__ 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. ``style.red.yellow.green`` is equivalent to ``style.green``. Styles can\nbe nested.\n\nMultiple arguments will be separated by ``sep``, a space by default.\n\nstyle.\\ ``enabled``\n~~~~~~~~~~~~~~~~~~~\n\nColor support is automatically detected, but can also be changed manually.\n\n- set ``style.enabled`` to ``True`` or ``False``\n- use the command line parameter ``--color`` or ``--no-color``\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.com/lmittmann/style.svg?branch=master\n    :target: https://travis-ci.com/lmittmann/style\n.. |PyPI version| image:: https://img.shields.io/pypi/v/style.svg\n    :target: https://pypi.org/project/style\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmittmann%2Fstyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmittmann%2Fstyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmittmann%2Fstyle/lists"}