{"id":26022351,"url":"https://github.com/click-contrib/click-help-colors","last_synced_at":"2025-12-12T01:04:50.488Z","repository":{"id":45499252,"uuid":"67166281","full_name":"click-contrib/click-help-colors","owner":"click-contrib","description":"Colorization of help messages in Click :art:","archived":false,"fork":false,"pushed_at":"2025-03-08T10:55:17.000Z","size":282,"stargazers_count":89,"open_issues_count":3,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-21T20:57:07.965Z","etag":null,"topics":["cli","click","python","python-click"],"latest_commit_sha":null,"homepage":"","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/click-contrib.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-01T21:05:34.000Z","updated_at":"2025-10-01T05:06:11.000Z","dependencies_parsed_at":"2024-01-28T13:01:56.741Z","dependency_job_id":"3235724f-69fa-434e-a314-f9e9597f31f1","html_url":"https://github.com/click-contrib/click-help-colors","commit_stats":{"total_commits":51,"total_committers":8,"mean_commits":6.375,"dds":0.4901960784313726,"last_synced_commit":"b098ca12e8a6130dd96fe849574323095d51167a"},"previous_names":["r-m-n/click-help-colors"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/click-contrib/click-help-colors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/click-contrib%2Fclick-help-colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/click-contrib%2Fclick-help-colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/click-contrib%2Fclick-help-colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/click-contrib%2Fclick-help-colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/click-contrib","download_url":"https://codeload.github.com/click-contrib/click-help-colors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/click-contrib%2Fclick-help-colors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280333501,"owners_count":26312845,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","click","python","python-click"],"created_at":"2025-03-06T09:55:01.727Z","updated_at":"2025-10-21T20:57:17.668Z","avatar_url":"https://github.com/click-contrib.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"=================\nclick-help-colors\n=================\n\n|tests| |pypi| |downloads|\n\nColorization of help messages in Click_.\n\nUsage\n-----\n\n.. code:: python\n\n  import click\n  from click_help_colors import HelpColorsGroup, HelpColorsCommand\n\n  @click.group(\n      cls=HelpColorsGroup,\n      help_headers_color='yellow',\n      help_options_color='green'\n  )\n  def cli():\n      pass\n\n  @cli.command()\n  @click.option('--count', default=1, help='Some number.')\n  def command1(count):\n      click.echo('command 1')\n\n  @cli.command(\n      cls=HelpColorsCommand,\n      help_options_color='blue'\n  )\n  @click.option('--name', help='Some string.')\n  def command2(name):\n      click.echo('command 2')\n\n.. code-block:: console\n\n    $ python example.py --help\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/1.png\n\n.. code-block:: console\n\n    $ python example.py command1 --help\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/2.png\n\n.. code-block:: console\n\n    $ python example.py command2 --help\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/3.png\n\n.. code:: python\n\n  import click\n  from click_help_colors import HelpColorsGroup, HelpColorsCommand\n\n  @click.group(\n      cls=HelpColorsGroup,\n      help_headers_color='yellow',\n      help_options_color='green',\n      help_options_custom_colors={'command3': 'red', 'command4': 'cyan'}\n  )\n  def cli():\n      pass\n\n\n  @cli.command(\n      cls=HelpColorsCommand,\n      help_headers_color=None,\n      help_options_color=None,\n      help_options_custom_colors={'--count': 'red', '--subtract': 'green'}\n  )\n  @click.option('--count', default=1, help='Count help text.')\n  @click.option('--add', default=1, help='Add help text.')\n  @click.option('--subtract', default=1, help='Subtract help text.')\n  def command1(count, add, subtract):\n      \"\"\"A command\"\"\"\n      click.echo('command 1')\n\n  ...\n\n.. code-block:: console\n\n    $ python example_with_custom_colors.py --help\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/4.png\n\n.. code-block:: console\n\n    $ python example_with_custom_colors.py command1 --help\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/5.png\n\n.. code:: python\n\n    from click_help_colors import version_option\n\n    @click.group()\n    def cli():\n        pass\n\n    @cli.command()\n    @version_option(\n        version='1.0',\n        prog_name='example',\n        message_color='green'\n    )\n    def cmd1():\n        pass\n\n    @cli.command()\n    @version_option(\n        version='1.0',\n        prog_name='example',\n        version_color='green',\n        prog_name_color='yellow'\n    )\n    def cmd2():\n        pass\n\n    @cli.command()\n    @version_option(\n        version='1.0',\n        prog_name='example',\n        version_color='green',\n        prog_name_color='white',\n        message='%(prog)s %(version)s\\n   python=3.7',\n        message_color='bright_black'\n    )\n    def cmd3():\n        pass\n\n.. image:: https://raw.githubusercontent.com/click-contrib/click-help-colors/master/examples/screenshots/6.png\n\nInstallation\n------------\n\nWith ``pip``:\n\n.. code-block:: console\n\n    $ pip install click-help-colors\n\nFrom source:\n\n.. code-block:: console\n\n    $ git clone https://github.com/click-contrib/click-help-colors.git\n    $ cd click-help-colors\n    $ python setup.py install\n\n.. _Click: http://click.pocoo.org/\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/click-help-colors\n    :alt: PyPI\n\n.. |downloads| image:: https://img.shields.io/pypi/dm/click-help-colors\n    :alt: PyPI - Downloads\n\n.. |tests| image:: https://github.com/click-contrib/click-help-colors/workflows/Tests/badge.svg\n    :alt: Tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclick-contrib%2Fclick-help-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclick-contrib%2Fclick-help-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclick-contrib%2Fclick-help-colors/lists"}