statsmodels library has a GLM class that can be used to fit generalized linear models, including beta regression models. The scikit-learn library does not have built-in support for beta regression, but it does have a GeneralizedLinearRegre