{"id":23752852,"url":"https://github.com/gusgitmath/color_print","last_synced_at":"2026-03-14T21:30:15.560Z","repository":{"id":269332374,"uuid":"907082933","full_name":"GusGitMath/color_print","owner":"GusGitMath","description":"A method to print things colorfully.","archived":false,"fork":false,"pushed_at":"2024-12-22T19:09:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T17:57:13.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GusGitMath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-22T18:59:39.000Z","updated_at":"2024-12-22T19:09:06.000Z","dependencies_parsed_at":"2024-12-22T20:21:12.569Z","dependency_job_id":"f92b23bc-8331-456e-963b-1fd412f30d9a","html_url":"https://github.com/GusGitMath/color_print","commit_stats":null,"previous_names":["gusgitmath/color_print"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GusGitMath%2Fcolor_print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GusGitMath%2Fcolor_print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GusGitMath%2Fcolor_print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GusGitMath%2Fcolor_print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GusGitMath","download_url":"https://codeload.github.com/GusGitMath/color_print/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921843,"owners_count":19718844,"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":[],"created_at":"2024-12-31T17:56:44.039Z","updated_at":"2026-03-14T21:30:15.511Z","avatar_url":"https://github.com/GusGitMath.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorPrint Utility\n\n## Overview\n`ColorPrint` is a Python utility class designed to make terminal text output more dynamic and visually appealing by leveraging ANSI escape codes for colored text, text styles, and background highlights.\n\n## Features\n- Print colored text to the terminal.\n- Add text styles such as bold and underline.\n- Use background highlights for emphasis.\n- Create and display solid color bars for separators or visual breaks.\n\n## How to Use\n\n### 1. Colorizing Text\nYou can use the `colorize` method to return a formatted string with specified color, style, and highlight:\n\n```python\nfrom color_print import ColorPrint\n\ntext = ColorPrint.colorize(\"Hello, World!\", color=\"blue\", style=\"bold\", highlight=\"yellow\")\nprint(text)\n```\n\n### 2. Printing with Styles\nThe `print` method simplifies printing directly to the terminal with the desired styles:\n\n```python\nColorPrint.print(\"Important Message\", color=\"red\", style=\"bold\", highlight=\"white\")\n```\n\n### 3. Creating a Color Bar\nUse `color_bar` to create a visual separator:\n\n```python\nColorPrint.color_bar(width=50, char=\"*\", color=\"cyan\", highlight=\"magenta\")\n```\n\n## Customization Options\n\n### Colors\nSupported text colors:\n- `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `reset`\n\n### Styles\nSupported text styles:\n- `bold`, `underline`, `reset`\n\n### Highlights\nSupported background colors:\n- `red`, `green`, `yellow`, `blue`, `magenta`, `cyan`, `white`, `reset`\n\n## Example Use Case\n```python\nColorPrint.print(\"Welcome to ColorPrint!\", color=\"green\", style=\"bold\")\nColorPrint.color_bar(width=40, char=\"=\", color=\"yellow\")\nColorPrint.print(\"Error: Something went wrong!\", color=\"red\", highlight=\"white\")\n```\n\n## Requirements\nNo external libraries are required. Works with Python 3.6+.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusgitmath%2Fcolor_print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusgitmath%2Fcolor_print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusgitmath%2Fcolor_print/lists"}