{"id":22338286,"url":"https://github.com/ipfans/colorswin32","last_synced_at":"2025-03-26T08:26:34.999Z","repository":{"id":145342181,"uuid":"11421773","full_name":"ipfans/colorsWin32","owner":"ipfans","description":"Colorful text for Windows console mode application","archived":false,"fork":false,"pushed_at":"2013-11-12T12:09:16.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:11:30.917Z","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/ipfans.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}},"created_at":"2013-07-15T11:38:42.000Z","updated_at":"2015-02-02T19:20:42.000Z","dependencies_parsed_at":"2023-03-26T15:10:15.007Z","dependency_job_id":null,"html_url":"https://github.com/ipfans/colorsWin32","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2FcolorsWin32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2FcolorsWin32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2FcolorsWin32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ipfans%2FcolorsWin32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ipfans","download_url":"https://codeload.github.com/ipfans/colorsWin32/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245617233,"owners_count":20644784,"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-04T06:13:41.213Z","updated_at":"2025-03-26T08:26:34.977Z","avatar_url":"https://github.com/ipfans.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"colorsWin32\n===========\n\nColorful text for Windows console mode application\n\n\nHOWTO\n---\n\n```\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport colorwin32 as colors\n\ndefault_colors = colors.get_text_attr()\ndefault_bg = default_colors \u0026 0x0070\n\n\ndef errLog(errText):\n    colors.set_text_attr(\n        colors.FOREGROUND_RED |\n        default_bg |\n        colors.FOREGROUND_INTENSITY\n    )\n    print errText\n    colors.set_text_attr(default_colors)\n\n\ndef warnLog(warnText):\n    colors.set_text_attr(\n        colors.FOREGROUND_YELLOW |\n        default_bg |\n        colors.FOREGROUND_INTENSITY\n    )\n    print warnText\n    colors.set_text_attr(default_colors)\n\n\ndef sucLog(sucLog):\n    colors.set_text_attr(\n        colors.FOREGROUND_GREEN |\n        default_bg |\n        colors.FOREGROUND_INTENSITY\n    )\n    print sucLog\n    colors.set_text_attr(default_colors)\n\n\ndef main():\n    print \"\"\n    errLog(u\"error\")\n    sucLog(u\"success\")\n    warnLog(u\"warning\")\n\nif __name__ == '__main__':\n    main()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fcolorswin32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fipfans%2Fcolorswin32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fipfans%2Fcolorswin32/lists"}