Custom Constraint ? Register Constraint ?

Hi there,

I’m looking into a way to create a custom constraint type. Is that possible ? How to register it ?

For example if I do that :

class MyConstraint(bpy.types.Constraint)

and I want to register like I would do it with operator : bpy.utils.register_class(MyConstraint)

But the function register_class cannot take a subclass of constraint …

Any Idea?