We present a computer program to generate and solve the defining equations for grading preserving contractions of Lie algebras of any type, and their representations. The algorithm applies to any grading semi-group which is finite and Abelian. It can perform contractions of Lie algebras and/or representations for which the grading is either generic or not.