Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Serial-Studio/Serial-Studio
/ colorize
Function
colorize
examples/API Test/test_api.py:138–139 ·
view source on GitHub ↗
(text: str, color: str)
Source
from the content-addressed store, hash-verified
136
137
138
def
colorize(text: str, color: str) -> str:
139
return
f
"{color}{text}{Colors.RESET}"
if
COLORS_ENABLED
else
text
140
141
142
def
success(text: str) -> str:
Callers
6
success
Function · 0.85
error
Function · 0.85
info
Function · 0.85
warning
Function · 0.85
dim
Function · 0.85
bold
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected