Python has scipy.stats.t which can generate random numbers (rvs) and fit the parameters (fit) that follow the t-distribution, but is t
scipy.stats.t
rvs
fit