Comparison
amplpy vs gurobipy vs optlang vs xpress
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python API for AMPL
Maintained. Last release 3 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install amplpyPython interface to Gurobi
Actively maintained. Last release 3 weeks ago. A safe choice.
pip install gurobipyFormulate optimization problems using sympy expressions and solve them using interfaces to third-party optimization software (e.g. GLPK).
Maintained. Last release 6 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install optlangFICO Xpress Optimizer Python interface
Actively maintained. Last release 5 weeks ago. A safe choice.
pip install xpressIn short
- gurobipy is the most used: 965.5K downloads a month, 4.4× more than xpress.
- Maintenance is comparable: xpress 84, gurobipy 82, amplpy 65, optlang 49 on Pythie’s Index.
- optlang is growing fastest: downloads +79% over the last month.
- Safe default for a new project: gurobipy.
Side by side
| Metric | amplpy | gurobipy | optlang | xpress |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 65 | Pythie’s Index: 82 | Pythie’s Index: 49 | Pythie’s Index: 84 |
| Verdict | Maintained | Actively maintained | Maintained | Actively maintained |
| Downloads / month | 70K | 965.5K | 124.8K | 219.1K |
| Downloads, month over month | +27% | +16% | +79% | +39% |
| GitHub stars | 86 | – | 273 | – |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 7 | 145 | 28 | 4 |
| Last release | Nov 11, 2026 | Nov 10, 2026 | Jun 2, 2026 | Oct 29, 2026 |
| Releases, 12 months | 5 | 5 | 2 | 12 |
| Weeks with commits | 5 / 26 | – | 3 / 26 | – |
| Recent contributors | 3 | – | 14 | – |
| First release | Jul 2017 | Apr 2021 | Aug 2014 | Apr 2024 |
| Python versions | 3.8 – 3.15 | 3.11 – 3.14 | 3.9 – 3.13 | 3.11 – 3.15 |
| License | BSD-3-Clause | non-standard | Apache-2.0 | LicenseRef-FICO-Shrinkwrap-License |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.