Package: tamcolors
aboutThis library standardizes console color output across multiple platforms.
It also can get keyboard inputs without interrupting the console output and can run a console application at ~25 FPS.pip install tamcolorslinksgithubpypiread the docsyoutubepatreonfacebooktable tennis exampleimporttamcolorstamcolors.examples.tabletennis.run()basic exampleimporttamcolorstamcolors.examples.basic.run()importtamcolorsfromtamcolors.tam_io.tam_colorsimport*tamcolors.printc("Hello","World!",("light blue","white"),same_color=True)name=tamcolors.inputc("Whats Your Name? >>> ",("light aqua","gray"))tamcolors.clear()tamcolors.printc("Hello, ",("default","default"),name,(GREEN,WHITE),"!",("gray","light aqua"),sep="")icon exampleimporttamcolorstamcolors.examples.icon.run()fromtamcolorsimporttam,tam_tools,tam_ioclassBootLogo(tam.tam_loop.TAMFrame):def__init__(self):super().__init__(fps=10,char=" ",foreground_color=tam_io.tam_colors.GREEN,background_color=tam_io.tam_colors.BLACK,min_width=57,max_width=57,min_height=20,max_height=20)self.icon=tam_tools.tam_fade.tam_fade_in(surface=tam_tools.tam_icon.get_icon(),char=" ",foreground_color=tam_io.tam_colors.BLACK,background_color=tam_io.tam_colors.BLACK)self.wait=10defupdate(self,tam_loop,keys,loop_data,*args):ifnotself.icon.done():self.icon.slide()else:self.wait-=1ifself.wait==0:tam_loop.done()defdraw(self,tam_surface,loop_data,*args):tam_surface.clear()tam_surface.draw_onto(self.icon.peak(),0,0)tam.tam_loop.TAMLoop(BootLogo()).run()versions of Python currently supported3.93.83.73.6platforms tested onWindows 10Ubuntu 20.04macOS 10.15.5goalsadd IO event bussupport “get_keyboard_name” on macOS - Objective-C -> C++ -> Pythonsupport “key state mode” on macOS - Objective-C -> C++ -> Pythonadd SHIFT KEY and other keyslong term goalsbuild a community that builds fun terminal gamesmake and change fonts at run timeadd .wav support3.0.2 goalsclean up codeadd more testsadd wiki3.0.1 goalsmake and change fonts at run timeadd SHIFT KEY and other keys3.0.0 goalsupdate tamtoolsadd SPA, LAT, GER and FRE keyboard mapssupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.62.1.0 goalsupdate tamloopupdate tamframeadd IO event bussupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.62.0.0 goalsadd .wav supportadd .wav testssupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.6what defines a release?x.?.? - tamcolors has matured to a new level of capability.?.x.? - Backwards compatibility was broken for most programs.?.?.x - Most programs should still run in this release.All releases can have new features, bug fixes, depreciation and new tests.versions1.3.02/5/2021fixed exit clearadded wait_keyadded frame_doneadded multi console exampleadded key state keyboard mode Only for Windowsmade tam_loop multi console friendlyrenamed items from buffer to surfaceupdated tamcolors iconsupports GER_GERMAN, FRE_FRENCH, SPA_SPANISH, LAT_SPANISH, …  Keyboards - Only for Windows and Linuxsupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.61.2.011/3/2020added tam_loop profileradded TCP IO (dummy console)save/rest Windows buffer size on exitcleaned up c/c++added sandy check examplesadded new color mode “MODE_16_PAL_256”added “preferred_mode”argument to TAMLoopcleaned up win dll selection processadded .ci testingsupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.61.1.110/10/2020added tam utilsadded compress utils moduleadded encryption utils moduleadded identifier utils moduleadded log utils moduleadded transport optimizer utils moduleadded immutable cache utils moduleadded slow testsadded tcp utils modulefixed macOS terminal cursorfixed windows missing dlladded dependencies licencessupports Python 3.9supports Python 3.8supports Python 3.7supports Python 3.61.1.09/7/2020fixed macOS!broke up IO into driversadded terminal identifieradded 256 color modeadded rgb color modeadded RGBAadded Colorsupports Python 3.8supports Python 3.7supports Python 3.61.0.48/13/2020added more examplesbdist_wheel for Linuxcleaned up win_tam, uni_tam and any_tamadded alpha color for TAMBufferset and get rgb value of color (fixed PowerShell colors)supports Python 3.8supports Python 3.7supports Python 3.6dropped support for Python 3.51.0.37/29/2020tamcolorsbdist_wheel for macOSadded more examplesadded documentationadded tests for tam_basicadded default console colorssupports Python 3.8supports Python 3.7supports Python 3.6supports Python 3.51.0.27/22/2020tamcolors is now very usablebdist_wheel for Windowsadded non interrupting keyboard inputadded TAMLoopadded tam_toolsadded testssupports Python 3.8supports Python 3.7supports Python 3.6supports Python 3.50.2.02/1/2018tamcolors proof of conceptadded printcadded inputcadded textBuffersupports Python 3.6