Generate UVs from hard edges

Is there any Blender way of doing what this Maya script does?

Textools for Blender 2.8 has a function that does the same.
Also hard ops can do this.

You can do it by hand: Select a hard edge, shift+ G, pick sharp edges, mark seam and unwrap.

Thank you! Didn’t know about Textools.