This is a tiny non-package (it's just an stand-alone class in "drawdown/drawdown"), with a portfolio optimizer with drawdown limit.
An usage example can be found in notebooks/example.ipynb
A document giving the mathematical formulation is given in documents/document.pdf