Auto-unwrap model via Python?

Is there a modifier that i can apply via Python on my objects to auto unwrap my models? I’m doing a rock generator and i wanted to auto-unwrap them after generating.

There is not a UV unwrap modifier
Look at the code for the Smart UV Project unwrap option

Is there anything similar, like the 3DS Max modifier “Unwrap UVW”?