Simple examples of Blender animations based on Python scripts.
Open in Blender: blender --python the_script.py
Convert to GIF: convert -delay 4 -loop 0 *.png animation.gif
Make a video: ffmpeg -framerate 30 -f image2 -i '/tmp/%*.png' -c:v libx264 -profile:v high -crf 16 -pix_fmt yuv420p blender_render.mp4