gdx-pandas
gdx-pandas is a python package to translate between gdx (GAMS data) and pandas.
Install | Documentation | Uninstall
Install
Preliminaries
-
Python 3.11 or higher (exact compatibility might depend on which GAMS version you are using)
-
Install GAMS
-
Put the GAMS directory in your
PATHand/or assign it to theGAMS_DIRenvironment variable -
GAMS Python bindings — choose one:
Recommended. Install the
gamsapithat matches your installed GAMS version:# xx.y.z corresponds to your GAMS version pip install gamsapi[transfer]==xx.y.z
Installing
gamsapithis way also enables the optional, much-fastergams.transferI/O engine for large files (see Configure below).Legacy. Use the standalone
gdxccpackage from PyPI by installinggdxpdswith thelegacyextra (see below).gdxccis older and is not version-matched to your GAMS install, but the SWIG-bound C ABI is stable enough that it generally works.
Get the Latest Package
# Recommended (use with the gamsapi install above):
pip install gdxpds
# Legacy (also installs gdxcc; use if you skipped gamsapi):
pip install gdxpds[legacy]
Versions are listed at pypi and https://github.com/NatLabRockies/gdx-pandas/releases.
Configure
gdxpds needs to know where GAMS is, and optionally which I/O engine to use. Set either once via an environment variable, or per call with the gams_dir= / engine= keywords (also --gams_dir / --engine on the CLIs):
export GAMS_DIR=/path/to/gams # otherwise auto-discovered
export GDXPDS_ENGINE=gdxcc # default: gams_transfer when usable (much faster on large files), else gdxcc
See Configuration in the documentation for the full keyword / environment-variable / CLI matrix and the speed trade-offs.
Verify installation
After installing gdxpds and a matching gamsapi, verify your environment
end-to-end with:
gdxpds test
For a quick environment check without running the full round-trip, use
gdxpds info — it prints Python, bindings, the resolved GAMS_DIR (and
which discovery branch produced it), and any import-time load error. Useful
for bug reports. gdxpds --version prints just the version.
Expected output for gdxpds info, which is also printed at the top of the gdxpds test output:
gdxpds info
-----------
gdxpds: <version>
Python: <python version> (<platform>)
Bindings:
gams.core.gdx: [gamsapi <version> | not importable]
gdxcc: [gdxcc <version> | not importable]
gams.transfer: [gamsapi <version> | not importable]
selected: [gams.core.gdx | gdxcc]
bound dir: <your GAMS directory>
gams.transfer usable: [yes | no]
Default engine: [gams_transfer | gdxcc]
GAMS_DIR: <your GAMS directory>
source: [GAMS_DIR env var | GAMSDIR env var | <discovered location> | explicit override | cached]
Example gdxpds test output that follows the info preamble:
Verifying gdxpds installation...
[OK] GAMS install found at <your GAMS directory>
[OK] GDX bindings loaded: gams.core.gdx
[OK] Read embedded sample.gdx (...)
[OK] Round-trip write->read preserves all symbols
[OK] Special values (+Inf, -Inf, NaN) survive round-trip
PASSED: gdxpds installation verified.
Development tests
To run the development test suite, clone the repo and run:
pytest tests
If the tests fail due to permission IOErrors, apply chmod g+x and chmod a+x
to the tests folder.
Uninstall
pip uninstall gdxpds
Release files for gdxpds 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gdxpds-4.0.0.tar.gz | 88.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gdxpds-4.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 149.9 kB
Release files / gdxpds-4.0.0.tar.gz
| Download URL | gdxpds-4.0.0.tar.gz |
|---|---|
| Size | 88.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99001129fa1c7875c3f03c0786fdbe6ae7b70fecb4447e41f8526d2e6078f4c8
|
|
BLAKE2b-256 checksum How to use checksums |
6259cdb8e3289ca936063a44f20900107f68e123d4457fe93f338692965c914a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / gdxpds-4.0.0-py3-none-any.whl
| Download URL | gdxpds-4.0.0-py3-none-any.whl |
|---|---|
| Size | 61.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc9e442fd5e144e58d647525e26f2b14cef550ba2f638b462a10c4b4eef32ccd
|
|
BLAKE2b-256 checksum How to use checksums |
babec4d2f512c61cef2b305aa3cda29650fcdff83cebb6dc70130559701a7d4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency log