Is creating custom menu in houdini using python?

I am wanting to add a custom menu to the houdini menu at the top.
I found the houdini docs helpful Customize menus and was able to create my own version.

Is there a way to create the same thing using Python? In maya we have is there something similar.

Haven’t done this myself but was looking into it earlier:
It’s a lot more modern / pythonic:

you were asking gui menu (not radial)
this might help:
IIRC you can drag and drop houdini interface elements into the python shell and get their object information for clues on the menu type you’re after.

They specifically upgraded / made a lot of nice python ui / viewport interaction methods to make tool dev easier

hou = cmds++