--- id: amply version: "0.1.7" license: Eclipse Public License 1.0 (EPL-1.0) license_treatment: copyleft maintenance: active --- # amply — Amply allows you to load and manipulate AMPL/GLPK data as Python data structures License: copyleft · Maintenance: active · Downloads: 786.3K/mo ## 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 above — verify before relying. Amply parses AMPL data syntax (sets and parameters) into Python data structures, letting you load optimization problem data without a full AMPL installation. 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 pip install amply uv add amply poetry add amply ## Installing amply 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: 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: Eclipse Public License 1.0 (EPL-1.0) (copyleft) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 786.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ampl data parser, load ampl data python, ampl syntax parser, gmpl data loader, optimization problem data, ampl set parameter parser, optimization, ampl-parser, data-loading [View on SkillFed](https://skillfed.io/packages/amply) · [View on PyPI](https://pypi.org/project/amply/)