amply
Amply allows you to load and manipulate AMPL/GLPK data as Python data structures
Decision gist · record as of 2026-08-14
Yes, if you work with AMPL data files and want to load them into Python. Install friction is low, maintenance is active, and there are no known vulnerabilities. The copyleft license (EPL-1.0) requires disclosure of modifications and same-license redistribution, which is typical for open-source optimization tools and unlikely to be a blocker for most use cases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction—pure Python wheel with only docutils and pyparsing as runtime dependencies.
- Actively maintained as of 2026-08-12 with a recent release.
License · maintenance · safety
copyleft license (copyleft) — Licensed under Eclipse Public License 1.0 (EPL-1.0), a copyleft license. You must disclose source code modifications and distribute under the same license if you redistribute the package.
last release 2026-06-24 (51 days) · last repo commit 2026-08-12 · 20 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 786,294 downloads/mo, #5,066 on PyPI
Alternatives
Verify before relying
from amply import Amply
data = Amply("set CITIES := Auckland Wellington Christchurch;")
print(data.CITIES)
# Output: <SetObject: ['Auckland', 'Wellington', 'Christchurch']>- Whether the package handles AMPL syntax beyond the documented subset (set/parameter declarations and data statements only).
- Performance characteristics when parsing large AMPL data files or deeply nested multidimensional structures.
What it is and what it does
Amply is a Python parser for AMPL (A Mathematical Programming Language) data syntax. It reads AMPL set and parameter declarations and data statements and converts them into Python objects—sets behave like lists, parameters like dictionaries. The package is designed specifically for loading data from AMPL-like syntax, not for parsing the full AMPL modeling language; it supports only a limited subset including set declarations, set data statements, parameter declarations, and parameter data statements.
You would use Amply when you have optimization problem data written in AMPL format and want to work with it in Python without installing AMPL itself. It handles multidimensional sets and parameters, slice notation, matrix notation, and default values. The library does not validate data—it focuses on parsing and structural conversion.
Use it for
- Load optimization problem data from AMPL files into Python for use with solvers like PuLP or Pyomo.
- Parse AMPL data sections to extract sets and parameters for analysis or transformation.
- Convert AMPL-formatted data into nested dictionaries and lists for downstream processing.
- Prototype optimization models using AMPL syntax without requiring AMPL or GLPK installed.
- Read multidimensional parameter and set definitions with slice and matrix notation support.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you work with AMPL data files and want to load them into Python.
Install friction is low, maintenance is active, and there are no known vulnerabilities. The copyleft license (EPL-1.0) requires disclosure of modifications and same-license redistribution, which is typical for open-source optimization tools and unlikely to be a blocker for most use cases.
Install
amply on PyPI
Before you install
Low friction—pure Python wheel with only docutils and pyparsing as runtime dependencies. Actively maintained as of 2026-08-12 with a recent release.
License in practice
Licensed under Eclipse Public License 1.0 (EPL-1.0), a copyleft license. You must disclose source code modifications and distribute under the same license if you redistribute the package.
Quickstart
from amply import Amply
data = Amply("set CITIES := Auckland Wellington Christchurch;")
print(data.CITIES)
# Output: <SetObject: ['Auckland', 'Wellington', 'Christchurch']>
Verify before relying
- Whether the package handles AMPL syntax beyond the documented subset (set/parameter declarations and data statements only).
- Performance characteristics when parsing large AMPL data files or deeply nested multidimensional structures.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=2.7,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdocutilspyparsing |
| Maintenance | Actively maintained 51 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 786,294 / month, #5,066 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: Eclipse Public License 1.0 (EPL-1.0) |
Evidence: amply-0.1.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ampl data parser”
- amplyAmply parses AMPL data syntax (sets and parameters) into Python data…
- amplpyamplpy is a Python interface to AMPL, an algebraic modeling language…
- oralb-blePassive parser for Oral-B toothbrush Bluetooth Low Energy…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also amplpy · optlang · PuLP · mip · mltable · stringzilla · iden · leval · param · coola