Restricting a weight vector (optimization parameter) to be in a certain domain using python ML library linear regression model
There are many, I'd recommend you the following: cvxpy (in turn interfaces some other solver like scs or cvxopt), cvxopt, casadi, even tensorflow (some optimizes have options for bounds).