I would like to have a list of relationships or a number of relationships per module in python. I can't find a way to do this anywhere.
Any help is greatly appreciated.
While I can't help on the Python front, I think one option would be to use the /metadata GET endpoint. There isn't any help documentation on this endpoint, as it's not designed to be publicly consumed, but it does hold the information you're looking for. Sugar uses the /metadata GET endpoint when checking the browser and file system cache. If you capture your browser's requests via the Network tab in the developer tools, you should see what's returned.
This information is based on Sugar 7+
Advanced Support Engineer
Learning Resources: http://support.sugarcrm.com | http://university.sugarcrm.com | http://community.sugarcrm.com
Retrieving data ...