for the bpy.ops.rigidbody.constraint_add i need to select Objects, which i can’t do in this case… (let’s say i’d be very ugly. The purpose is to use with Sverchok Nodes)
AFAIK there are no RNA methods to do this low-level, you really need to use the operators (and possibly change context object or override operator context)