Explore using the Radon package to compute and publish various code metrics. See here for details.
Consider using scc as well or instead.