{"id":28637272,"url":"https://github.com/ax/dye","last_synced_at":"2025-12-14T15:41:25.045Z","repository":{"id":57424749,"uuid":"107673282","full_name":"ax/dye","owner":"ax","description":"Lightweight module with ANSI control codes to dye python scripts.","archived":false,"fork":false,"pushed_at":"2019-05-24T17:29:51.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T01:54:23.169Z","etag":null,"topics":["ansi","cli","color","colors","lightweight","print","python","script","terminal","unix"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ax.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-20T12:05:43.000Z","updated_at":"2023-09-08T18:22:06.000Z","dependencies_parsed_at":"2022-09-10T03:21:56.812Z","dependency_job_id":null,"html_url":"https://github.com/ax/dye","commit_stats":null,"previous_names":["ax-tryin/dye"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ax/dye","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax%2Fdye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax%2Fdye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax%2Fdye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax%2Fdye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ax","download_url":"https://codeload.github.com/ax/dye/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ax%2Fdye/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259518828,"owners_count":22870304,"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","cli","color","colors","lightweight","print","python","script","terminal","unix"],"created_at":"2025-06-12T18:10:00.565Z","updated_at":"2025-12-14T15:41:24.991Z","avatar_url":"https://github.com/ax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== \ndye\n===\n\nLightweight module with ANSI control codes to dye python scripts.\n\nThis package contains just one module,\nit consist only on some declaration,\nsomething like:\n\n``RED = \\x1b[31m``\n\nThe module has the trivial task of extend the namespace of your application to include\nterms you can use to color and format terminal output using ANSI control codes.\n\nUsage\n-----\n\n.. code:: python\n\n\tfrom dye import *\n\n\tprint fg.BLUE+\"colorz\"+fg.RESET\n\tprint fg.LBLUE+\"colorz\"+fg.RESET\n\n\tprint style.BOLD + fg.GREEN + bg.YELLOW + \"colorz\" + style.RESET_ALL\n\nThe strings contained in the colorz variables are ANSI control codes.\n\nIn this set there are:\n\n- the basic 8 colors\n\n.. code:: python\n\n\tBLACK\n\tRED\n\tGREEN \n\tYELLOW\n\tBLUE\n\tMAGENTA\n\tCYAN\n\tWHITE\n\n- their high intensity versions\n\n.. code:: python\n\n\tHBLACK\n\tHRED\n\tHGREEN \n\tHYELLOW\n\tHBLUE\n\tHMAGENTA\n\tHCYAN\n\tHWHITE\n\n- The following styles are supported:\n\n.. code:: python\n\n\tBOLD\n\tDIM\n\tUNDERL\n\tBLINK\n\tREVERSE\n\tHIDDEN\n\n- reset sequences\n\n.. code:: python\n\n\tRESET_ALL\n\tRESET_BOLD\n\tRESET_DIM\n\tRESET_UNDERL\n\tRESET_BLINK\n\tRESET_REVERSE\n\tRESET_HIDDEN\n\nYou can set text color using ``fg`` codes: ``fg.RED``\n\nYou can set background color using ``bg`` codes: ``bg.RED``\n\nYou can set styles using ``style`` codes: ``style.BOLD``\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax%2Fdye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fax%2Fdye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fax%2Fdye/lists"}