Based on PyGame, this wireframe cube (truncated at one corner) rotates in any 3d axis and changes colour.
pip3 install pygame
Press the following keys for axis specific rotations.
X axis: Q,W
Y axis: A,S
Z axis: Z,X
User can also press two or three keys together: for example W,A,X together.