How can I add a Revolute joint using the Python API?

I can’t find in the documentation how to add a Revolute joint (or any kind of joint) between two bodies using the Python API. I have a parametric model that needs joints added programmatically.
Thanks