{"id":16131431,"url":"https://github.com/xenonlab-studio/x-colors","last_synced_at":"2026-04-10T15:47:46.374Z","repository":{"id":196679604,"uuid":"184250699","full_name":"XenonLab-Studio/X-Colors","owner":"XenonLab-Studio","description":"X-Colors is a small library that allows you to use ANSI escape character sequences to produce colored terminal text.","archived":false,"fork":false,"pushed_at":"2019-05-08T20:00:13.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T20:37:46.778Z","etag":null,"topics":["ansi-colors","ansi-escape","ascii","color","library","linux","macos","module","python","shell","string","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XenonLab-Studio.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}},"created_at":"2019-04-30T11:33:19.000Z","updated_at":"2021-05-23T10:08:03.000Z","dependencies_parsed_at":"2023-09-28T09:52:08.626Z","dependency_job_id":null,"html_url":"https://github.com/XenonLab-Studio/X-Colors","commit_stats":null,"previous_names":["xenonlab-studio/x-colors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenonLab-Studio%2FX-Colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenonLab-Studio%2FX-Colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenonLab-Studio%2FX-Colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenonLab-Studio%2FX-Colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XenonLab-Studio","download_url":"https://codeload.github.com/XenonLab-Studio/X-Colors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495624,"owners_count":20948085,"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","ansi-escape","ascii","color","library","linux","macos","module","python","shell","string","terminal"],"created_at":"2024-10-09T22:25:09.478Z","updated_at":"2025-12-30T23:06:24.854Z","avatar_url":"https://github.com/XenonLab-Studio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# X-Colors\n\n*X-Colors is a small library that allows you to use ANSI escape character sequences to produce colored terminal text.*\n\n\nExample\n=======\n\n```python\n\n        import sys\n        from xcolors import colored, cprint\n\n        text = colored('Hello, World!', 'red', attrs=['reverse', 'blink'])\n        print(text)\n        cprint('Hello, World!', 'green', 'on_red')\n\n        print_red_on_cyan = lambda x: cprint(x, 'red', 'on_cyan')\n        print_red_on_cyan('Hello, World!')\n        print_red_on_cyan('Hello, Universe!')\n\n        for i in range(10):\n            cprint(i, 'magenta', end=' ')\n\n        cprint(\"Attention!\", 'red', attrs=['bold'], file=sys.stderr)\n```\n\nText Properties\n===============\n\n  Text colors:\n\n      - grey\n      - red\n      - green\n      - yellow\n      - blue\n      - magenta\n      - cyan\n      - white\n\n  Text highlights:\n\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\n      - bold\n      - dark\n      - underline\n      - blink\n      - reverse\n      - concealed\n\nTerminal properties\n===================\n\n    ============ ======= ==== ========= ========== ======= =========\n    Terminal     bold    dark underline blink      reverse concealed\n    ------------ ------- ---- --------- ---------- ------- ---------\n    xterm        yes     no   yes       bold       yes     yes\n    linux        yes     yes  bold      yes        yes     no\n    rxvt         yes     no   yes       bold/black yes     no\n    dtterm       yes     yes  yes       reverse    yes     yes\n    teraterm     reverse no   yes       rev/red    yes     no\n    aixterm      normal  no   yes       no         yes     yes\n    PuTTY        color   no   yes       no         yes     no\n    Windows      no      no   no        no         yes     no\n    Cygwin SSH   yes     no   color     color      color   yes\n    Mac Terminal yes     no   yes       yes        yes     yes\n    ============ ======= ==== ========= ========== ======= =========\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenonlab-studio%2Fx-colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenonlab-studio%2Fx-colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenonlab-studio%2Fx-colors/lists"}