Mathematical Programming Toolbox for AMPL/GMPL
PyMPL is a python extension to the AMPL modelling language that adds new statements for evaluating python code within AMPL/GMPL models. PyMPL also includes, among others, procedures for modelling piecewise linear functions, compressed arc-flow graphs for vector packing, sub-tour elimination constraints for TSP, and lot-sizing reformulations. PyMPL is fully compatible with both python 2 and 3.
$ pip install pympl