script to work with vertex in viewport

is there a script example where you can change the vertices location in viewport
and this would redo the whole object

almost like if it was in edit mode or like a modifier ?

cause right now if you select the object and go into edit mode you loose the tool panels
from a script !
unless there a way to keep there !