Solved XPresso python node

In a python node, is it possible to know how many inputs and outputs there are? and their name?

The op variable gives acess to the node itself. From there it is straightforward:

for port in op.GetInPorts():
  print(port.GetName(op))

for port in op.GetOutPorts():
  print(port.GetName(op))

See Python Xpresso Node and c4d.modules.graphview.GvNode.

Thanks @PluginStudent ;)