{"id":17787918,"url":"https://github.com/zmievsa/colorie","last_synced_at":"2025-04-02T00:27:16.701Z","repository":{"id":62563772,"uuid":"439701969","full_name":"zmievsa/colorie","owner":"zmievsa","description":"ANSII Color formatting for output in terminal","archived":false,"fork":false,"pushed_at":"2021-12-25T19:30:10.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T10:18:16.822Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmievsa.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}},"created_at":"2021-12-18T19:49:17.000Z","updated_at":"2023-07-21T20:43:59.000Z","dependencies_parsed_at":"2022-11-03T16:00:30.703Z","dependency_job_id":null,"html_url":"https://github.com/zmievsa/colorie","commit_stats":null,"previous_names":["zmievsa/colorie","ovsyanka83/colorie"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fcolorie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fcolorie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fcolorie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmievsa%2Fcolorie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmievsa","download_url":"https://codeload.github.com/zmievsa/colorie/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246732724,"owners_count":20824802,"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-10-27T10:13:20.647Z","updated_at":"2025-04-02T00:27:16.671Z","avatar_url":"https://github.com/zmievsa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"I am an upgraded version of [termcolor](https://pypi.org/project/termcolor/) that allows you to store colors as objects\nand use addition/calling to apply them to text. Color objects can also validate whether you use the correct color\nidentifiers upon creation, so all errors can be caught early.\n\n# Example\n```python\nimport sys\nfrom colorie import Color, colored, cprint\n\ntext = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])\nprint(text)\ncprint('Hello, World!', 'green', 'on_red')\n\nRED_ON_CYAN = Color('red', 'on_cyan')\nprint(RED_ON_CYAN + 'Hello, World!')\nprint(RED_ON_CYAN('Hello, Universe!'))\n\nfor i in range(10):\n    cprint(i, 'magenta', end=' ')\n\ncprint(\"Attention!\", 'red', attrs=['bold'], file=sys.stderr)\n\nRED = Color('red')\nON_WHITE = Color(highlight='on_white')\nRED_ON_WHITE = RED + ON_WHITE\nprint(RED + \"I am red\" + \" and I am red!\")\nprint(RED + \"I am red on white!\" + ON_WHITE)\n```\n# Installation\n`pip install colorie`\n# Text Properties\n\n* Text colors\n    * grey\n    * red\n    * green\n    * yellow\n    * blue\n    * magenta\n    * cyan\n    * white\n\n* Text highlights\n    * on\\_grey\n    * on\\_red\n    * on\\_green\n    * on\\_yellow\n    * on\\_blue\n    * on\\_magenta\n    * on\\_cyan\n    * on\\_white\n\n* Attributes\n    * bold\n    * dark\n    * underline\n    * blink\n    * reverse\n    * concealed\n\n# Terminal properties\n\n\u003e \n\u003e \n\u003e | Terminal     | bold    | dark | underline | blink      | reverse | concealed |\n\u003e | ------------ | ------- | ---- | --------- | ---------- | ------- | --------- |\n\u003e | xterm        | yes     | no   | yes       | bold       | yes     | yes       |\n\u003e | linux        | yes     | yes  | bold      | yes        | yes     | no        |\n\u003e | rxvt         | yes     | no   | yes       | bold/black | yes     | no        |\n\u003e | dtterm       | yes     | yes  | yes       | reverse    | yes     | yes       |\n\u003e | teraterm     | reverse | no   | yes       | rev/red    | yes     | no        |\n\u003e | aixterm      | normal  | no   | yes       | no         | yes     | yes       |\n\u003e | PuTTY        | color   | no   | yes       | no         | yes     | no        |\n\u003e | Windows      | no      | no   | no        | no         | yes     | no        |\n\u003e | Cygwin SSH   | yes     | no   | color     | color      | color   | yes       |\n\u003e | Mac Terminal | yes     | no   | yes       | yes        | yes     | yes       |\n\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmievsa%2Fcolorie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmievsa%2Fcolorie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmievsa%2Fcolorie/lists"}