Package: sapphirus
Transform your terminal into a canvas of colors withSapphirus.sapphirusmodule takes its name from the Latin wordsapphirus, which means sapphire in English.Installingpipinstallsapphirusto test:python-msapphirusStyled OutputclassText(*text:str,fg:Any|None(optional),bg:Any|None(optional),style:Any|None(optional))Creating customized outputs according to your preferences is just that simple:importsapphirusprint(sapphirus.Text("Hello World!",fg="blue",bg="white",style="bold").stylize())You can also use it like this:importsapphirusprint(sapphirus.Text("Hello","World!",fg="blue",bg="white",style="bold").stylize())RGB(method)defrgb(r:int,g:int,b:int)->intExample:importsapphirusprint(sapphirus.Text("Hello, World!",fg=Text.rgb(0,0,255),bg=Text.rgb(255,255,255),style="bold").stylize())Typewrite Effect(function)deftypewrite(*text:str,duration:int|float)->NoneExample:importsapphirussapphirus.typewrite("Hello World!")You can also use it like this:importsapphirussapphirus.typewrite("Hello","World!")StylesNameNumbernormal/n0bold/b1italic/i3underlined/u4reversed/r7hidden/h8strike/s9ColorsNameNumberblack0red1green2yellow3blue4magenta5cyan6white7brightblack8brightred9brightgreen10brightyellow11brightblue12brightmagenta13brightcyan14brightwhite15grey016gray016navyblue17darkblue18blue320blue121darkgreen22deepskyblue425dodgerblue326dodgerblue227green428springgreen429turquoise430deepskyblue332dodgerblue133green340springgreen341darkcyan36lightseagreen37deepskyblue238deepskyblue139springgreen247cyan343darkturquoise44turquoise245green146springgreen148mediumspringgreen49cyan250cyan151darkred88deeppink4125purple455purple356blueviolet57orange494grey3759gray3759mediumpurple460slateblue362royalblue163chartreuse464darkseagreen471paleturquoise466steelblue67steelblue368cornflowerblue69chartreuse376cadetblue73skyblue374steelblue181palegreen3114seagreen378aquamarine379mediumturquoise80chartreuse2112seagreen283seagreen185aquamarine1122darkslategray287darkmagenta91darkviolet128purple129lightpink495plum496mediumpurple398slateblue199yellow4106wheat4101grey53102gray53102lightslategrey103lightslategray103mediumpurple104lightslateblue105darkolivegreen3149darkseagreen108lightskyblue3110skyblue2111darkseagreen3150darkslategray3116skyblue1117chartreuse1118lightgreen120palegreen1156darkslategray1123red3160mediumvioletred126magenta3164darkorange3166indianred167hotpink3168mediumorchid3133mediumorchid134mediumpurple2140darkgoldenrod136lightsalmon3173rosybrown138grey63139gray63139mediumpurple1141gold3178darkkhaki143navajowhite3144grey69145gray69145lightsteelblue3146lightsteelblue147yellow3184darkseagreen2157lightcyan3152lightskyblue1153greenyellow154darkolivegreen2155darkseagreen1193paleturquoise1159deeppink3162magenta2200hotpink2169orchid170mediumorchid1207orange3172lightpink3174pink3175plum3176violet177lightgoldenrod3179tan180mistyrose3181thistle3182plum2183khaki3185lightgoldenrod2222lightyellow3187grey84188gray84188lightsteelblue1189yellow2190darkolivegreen1192honeydew2194lightcyan1195red1196deeppink2197deeppink1199magenta1201orangered1202indianred1204hotpink206darkorange208salmon1209lightcoral210palevioletred1211orchid2212orchid1213orange1214sandybrown215lightsalmon1216lightpink1217pink1218plum1219gold1220navajowhite1223mistyrose1224thistle1225yellow1226lightgoldenrod1227khaki1228wheat1229cornsilk1230grey100231gray100231grey3232gray3232grey7233gray7233grey11234gray11234grey15235gray15235grey19236gray19236grey23237gray23237grey27238gray27238grey30239gray30239grey35240gray35240grey39241gray39241grey42242gray42242grey46243gray46243grey50244gray50244grey54245gray54245grey58246gray58246grey62247gray62247grey66248gray66248grey70249gray70249grey74250gray74250grey78251gray78251grey82252gray82252grey85253gray85253grey89254gray89254grey93255gray93255