{"id":19463197,"url":"https://github.com/xy3/print-color","last_synced_at":"2025-09-08T16:31:54.377Z","repository":{"id":57454825,"uuid":"308723748","full_name":"xy3/print-color","owner":"xy3","description":"A simple Python wrapper to print color messages in the terminal","archived":false,"fork":false,"pushed_at":"2024-07-04T12:40:58.000Z","size":47,"stargazers_count":12,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T15:19:00.915Z","etag":null,"topics":["colorization","pip","pypi-package","python","python-colored-output","python3","terminal","terminal-colors"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/print-color/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xy3.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-30T19:20:24.000Z","updated_at":"2025-01-07T11:07:30.000Z","dependencies_parsed_at":"2022-09-05T07:01:13.349Z","dependency_job_id":"1a9b0193-0922-4f72-84af-ab99edf24211","html_url":"https://github.com/xy3/print-color","commit_stats":{"total_commits":30,"total_committers":6,"mean_commits":5.0,"dds":0.6666666666666667,"last_synced_commit":"e74c4aee97ec70be71771dce80bf0155df889e1b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/xy3/print-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fprint-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fprint-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fprint-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fprint-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xy3","download_url":"https://codeload.github.com/xy3/print-color/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xy3%2Fprint-color/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274213550,"owners_count":25242495,"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-09-08T02:00:09.813Z","response_time":121,"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":["colorization","pip","pypi-package","python","python-colored-output","python3","terminal","terminal-colors"],"created_at":"2024-11-10T18:09:04.196Z","updated_at":"2025-09-08T16:31:54.032Z","avatar_url":"https://github.com/xy3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# print-color\n\n[![test](https://github.com/xy3/print-color/actions/workflows/ci.yml/badge.svg)](https://github.com/xy3/print-color/actions/workflows/ci.yml) ![downloads](https://img.shields.io/pypi/dw/print-color)\n\n```python3\nfrom print_color import print\n\nprint(\"Hello world\", tag='success', tag_color='green', color='white')\n```\n\nPrint Color is a minimalist approach to terminal color printing in Python. It is a wrapper around the `print()` function, and simply allows you to provide extra optional parameters such as:\n\n- `tag`\n- `tag_color` or `tag_colour`\n- `tag_format`\n- `color` or `colour`\n- `background`\n- `format`\n\nIt aims to be a customizable logger for your applications, and makes formatting warnings, info messages and errors a breeze.\n\n---\n\n## Information\n\nThis project has no dependencies, apart from `pytest` for testing.\n\nCheck out this project on [PyPi here](https://pypi.org/project/print-color/).\n\nColors:\n\n```text\npurple\nblue\ngreen\nyellow\nred\nmagenta\ncyan\nwhite\nblack\n```\n\n### Parameter values:\n\n- `tag`\n  - any string\n- `tag_color` or `tag_colour`\n  - color\n- `color` or `colour`\n  - color\n- `background`\n  - color\n- `format`\n  - bold\n  - underline\n  - blink\n\n### Installing\n\n```shell\npip3 install print-color\n```\n\n### Requirements\n\n- python 3.7^\n\n### Usage\n\n```python\nfrom print_color import print\n\nprint(\"Hello world\", tag='success', tag_color='green', color='white')\n```\n\n![Success tag](https://i.imgur.com/qmeYTkR.png)\n\n```python\nprint(\"Error detected\", tag='failure', tag_color='red', color='magenta')\n```\n\n![Error tag](https://i.imgur.com/dksa03u.png)\n\n```python\nprint(\"Printing in color\", color='green', format='underline', background='grey')\n```\n\n![Printing in color is easy](https://i.imgur.com/3sUTi8z.png)\n\n## Contributing\n\nFeel free to add or improve this project :) Just create a pull request and explain the changes you propose.\nNote that as this is a very simple project, feature requests should be kept minimal - things like more colors, formats etc would be ideal.\n\n## Credits\n\nBuilt with [Python Poetry](https://python-poetry.org/).\n\n### Contributors\n\n\u003ca href=\"https://github.com/xy3/print-color/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=xy3/print-color\" /\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxy3%2Fprint-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxy3%2Fprint-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxy3%2Fprint-color/lists"}