You can do the effect in both API and Python. Python example is included. This is “simple” to do when You have planar texture coordinates, but will become more difficult if You want to e.g. rotate coords runtime.

In this example, we move UV maps V coord over time. after moving, we reset the original coords.