The following notebooks by Michele Tizzoni reproduce the estimate of the time-varying reproductive number for Italy:
NB: The method is based on some strong assumptions. However, the results are pretty much in line with those, more statistically solid, reported by Sam Abbott here.