Setting UVs to a mesh

Hello,

I’ve got vertices, faces and uv coordinates parsed from a 3rd party 3d package.
I’m trying to re-create the mesh in Blender.

creating the mesh was simple using the sample in the documentation:
e.g.


fmesh = bpy.data.meshes.new('face_mesh')
fmeshverts.extend(coords)
fmeshfaces.extend(faces)

How do I add the UVs ?

Thanks