I would like to have the same result with python as in the UI when I do unwrap > sphere projection on a mesh.
I know it's possible to use the operator bpy.ops.uv.sphere_project() – as mentioned in this answer – but I'd rather use the low-level (bmesh?) alternative, if any.