{"id":13815425,"url":"https://github.com/fgimian/painter","last_synced_at":"2026-01-11T04:46:31.824Z","repository":{"id":16394991,"uuid":"19145773","full_name":"fgimian/painter","owner":"fgimian","description":"Your own expressive painter who colors text in your terminal.","archived":true,"fork":false,"pushed_at":"2018-07-22T11:37:22.000Z","size":822,"stargazers_count":28,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-03T08:00:07.517Z","etag":null,"topics":["ansi-colors","string-formatter"],"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/fgimian.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2014-04-25T12:49:50.000Z","updated_at":"2023-11-26T08:49:08.000Z","dependencies_parsed_at":"2022-09-15T18:13:15.444Z","dependency_job_id":null,"html_url":"https://github.com/fgimian/painter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimian%2Fpainter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimian%2Fpainter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimian%2Fpainter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimian%2Fpainter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgimian","download_url":"https://codeload.github.com/fgimian/painter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254313789,"owners_count":22050105,"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-colors","string-formatter"],"created_at":"2024-08-04T04:03:29.126Z","updated_at":"2026-01-11T04:46:31.783Z","avatar_url":"https://github.com/fgimian.png","language":"Python","readme":"Painter\n=======\n\n|Build Status| |Coverage Status| |License| |Latest Version|\n\n.. |Build Status| image:: https://travis-ci.org/fgimian/painter.svg?branch=master\n   :target: https://travis-ci.org/fgimian/painter\n.. |Coverage Status| image:: https://codecov.io/gh/fgimian/painter/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/fgimian/painter\n.. |License| image:: https://img.shields.io/badge/license-MIT-blue.svg\n   :target: https://github.com/fgimian/painter/blob/master/LICENSE\n.. |Latest Version| image:: https://img.shields.io/pypi/v/painter.svg\n   :target: https://pypi.python.org/pypi/painter/\n\n.. image:: https://raw.githubusercontent.com/fgimian/painter/master/images/painter-logo.png\n   :alt: Painter Logo\n\nArtwork courtesy of `Open Clip Art\nLibrary \u003chttp://openclipart.org/detail/174634/painter-penguin-by-moini-174634\u003e`_\n\nIntroduction\n------------\n\nPainter is an ANSI coloring library based on the excellent\n`chalk \u003chttps://github.com/sindresorhus/chalk\u003e`_ and\n`colors.js \u003chttps://github.com/marak/colors.js/\u003e`_ libraries for\nNode.js. However, painter attempts to provide an even more expressive\nAPI which reads like English.\n\nPainter is fully tested with 100% coverage and also completely Flake8\ncompliant too!\n\nQuick Start\n-----------\n\nInstall Painter in your virtualenv as follows:\n\n.. code:: bash\n\n    pip install painter\n\nAnd now, go ahead and use it to output colors to your terminal:\n\n.. code:: python\n\n    from __future__ import print_function\n\n    from painter import paint\n\n    # Simple printing of colors\n    print('Welcome to Painter!', paint.red('I can paint things red'),\n          paint.blue('and blue'))\n\n    # Chaining colors and styles\n    print(paint.blue.on_red.bold.underline('and far more complex combos too'))\n    print()\n\n    # Using color patterns\n    print(paint.rainbow('Awww look, a pretty rainbow :)'))\n    print(paint.zebra('and a scary looking zebra!'))\n    print()\n\n    # Nested painting\n    print(paint.on_red('I can also use a background color across',\n                       paint.blue('multiple'),\n                       paint.yellow('foreground colors')))\n\n    # Custom separator\n    print(paint('and', 'allow', 'you to use', paint.red('custom separators'),\n          sep='-'))\n    print()\n\n    # Creating themes\n    cool_theme = paint.green.on_red.underline.bold\n    print('Creating', cool_theme('your own theme'), 'is easy')\n\n    # Easily disable painting of colors\n    paint.enabled = False\n    print('and I allow you to easily', paint.red('disable'), paint.blue('me'))\n    print()\n\n    paint.enabled = True\n    print('Hope you have a', paint.blue('lovely day!'), paint.green(':)'))\n\nThe output of the script above looks something like this:\n\n.. image:: https://raw.githubusercontent.com/fgimian/painter/master/images/painter-demo.png\n   :alt: Painter Demo\n\nDocumentation\n-------------\n\nPlease check out the `Painter Usage documentation\n\u003chttps://github.com/fgimian/painter/blob/master/USAGE.rst/\u003e`_.\n\nRunning Tests\n-------------\n\nYou may run the unit tests as follows:\n\n.. code:: bash\n\n    git clone https://github.com/fgimian/painter.git\n    cd painter\n    python setup.py test\n\nYou may validate Flake8 compatibility as follows:\n\n.. code:: bash\n\n    python setup.py flake8\n\nLicense\n-------\n\nPainter is released under the **MIT** license. Please see the\n`LICENSE \u003chttps://github.com/fgimian/painter/blob/master/LICENSE\u003e`_\nfile for more details.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgimian%2Fpainter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgimian%2Fpainter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgimian%2Fpainter/lists"}