Pstake is a simple tool that turns PSTricks commands into an image file. (PSTricks can draw anything, but needs TeX/LaTeX. The quality of the drawings is unbeatable.) Pstake uses command line as the primary interface, but also works as a Sphinx extension and a SCons tool. It is made as a single-file module.