Here is a little script I made a little while ago to practice my python skills and knowledge towards quadruped leg system.
It generates some locators that you can place in the desire position and you simply have to press a button to create the rig.
I have been experimenting with the spring solver ik handle to get those controls/deformation possible.