Low level alternative to bpy.ops.mesh.uv_texture_add()? Blender 2.8
A low-level alternative to bpy.ops.mesh.uv_texture_add() is obj.data.uv_layers.new(name=&quot;UvMap&quot;). This way you don't need to set the operator context.
Though, it will not allow complex unwrapping such as Smart UV Project.