Skip to main content

GAMS Python API

Project description



gamsapi: powerful Python toolkit to manage GAMS (i.e., sparse) data and control GAMS solves

What is it?

gamsapi is a Python package that includes submodules to control GAMS, manipulate and transfer data to/from the GAMS modeling system (through GDX files or in-memory objects). This functionality is available from a variety of different Python interfaces including standard Python scripts and Jupyter Notebooks. We strive to make it as simple as possible for users to generate, debug, customize, and ultimately use data to solve optimization problems -- all while maintaining high performance.

Main Features

Here are just a few of the things that gamsapi does well:

  • Seamlessly integrates GAMS data requirements into standard data pipelines (i.e., Pandas, Numpy)
  • Link and harmonize data sets across different symbols
  • Clean/debug data before it enters the modeling environment
  • Customize the look and feel of the data (i.e., labeling conventions)
  • Bring data to GAMS from a variety of different starting points
  • Send model output to a variety of different data endpoints (SQL, CSV, Excel, etc.)
  • Automatic data reshaping and standardization -- will work to translate your data formats into the Pandas DataFrame standard
  • Control GAMS model solves and model specification

Where to get it

The source code is currently available with any typical GAMS system. No license is needed in order to use gamsapi. A license is necessary in order to solve GAMS models.

A free demo license is available!

Dependencies

Installing gamsapi will not install any third-party dependencies, as such, it only contains basic functionality. Users should modify this base installation by choosing extras to install -- extras are described in the documentation.

# from PyPI (with extra "transfer")
pip install gamsapi[transfer]
# from PyPI (with extras "transfer" and "magic")
pip install gamsapi[transfer,magic]
# from PyPI (include all dependencies)
pip install gamsapi[all]

Documentation

The official documentation is hosted on gams.com.

Getting Help

For usage questions, the best place to go to is GAMS. General questions and discussions can also take place on the GAMS World Forum.

Discussion and Development

If you have a design request or concern, please write to support@gams.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gamsapi-48.3.0.tar.gz (881.7 kB view details)

Uploaded Source

Built Distributions

gamsapi-48.3.0-cp313-cp313-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.13 Windows x86-64

gamsapi-48.3.0-cp313-cp313-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13 manylinux: glibc 2.17+ x86-64

gamsapi-48.3.0-cp313-cp313-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13 macOS 13.0+ ARM64

gamsapi-48.3.0-cp313-cp313-macosx_10_15_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13 macOS 10.15+ x86-64

gamsapi-48.3.0-cp312-cp312-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.12 Windows x86-64

gamsapi-48.3.0-cp312-cp312-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

gamsapi-48.3.0-cp312-cp312-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

gamsapi-48.3.0-cp312-cp312-macosx_10_15_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 macOS 10.15+ x86-64

gamsapi-48.3.0-cp311-cp311-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.11 Windows x86-64

gamsapi-48.3.0-cp311-cp311-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

gamsapi-48.3.0-cp311-cp311-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

gamsapi-48.3.0-cp311-cp311-macosx_10_15_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 10.15+ x86-64

gamsapi-48.3.0-cp310-cp310-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

gamsapi-48.3.0-cp310-cp310-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

gamsapi-48.3.0-cp310-cp310-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

gamsapi-48.3.0-cp310-cp310-macosx_10_15_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 10.15+ x86-64

gamsapi-48.3.0-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

gamsapi-48.3.0-cp39-cp39-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

gamsapi-48.3.0-cp39-cp39-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 13.0+ ARM64

gamsapi-48.3.0-cp39-cp39-macosx_10_15_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

File details

Details for the file gamsapi-48.3.0.tar.gz.

File metadata

  • Download URL: gamsapi-48.3.0.tar.gz
  • Upload date:
  • Size: 881.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gamsapi-48.3.0.tar.gz
Algorithm Hash digest
SHA256 92eb7b74b23e1f24bc3eef6891cd40f231714b7cdf29ba6bc0a160d6e1540c3f
MD5 75f6c4c1d1b5a3b5f374c27eaa0122a7
BLAKE2b-256 5cc787c805be14530ffbc0471f3e4393df7de04f68c840cf7987f92596135195

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 401435142dd029ad667e6650d39f794a0dba4473e84a520f68e33b098c304ec3
MD5 a206e97729537d4e6fe90f54bfe4b7be
BLAKE2b-256 53adbb24cfacf1527acfbfb2671472ec579e44e0d725c07900ddd25b54ab60e9

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp313-cp313-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp313-cp313-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 1df8c2534df1abdbd53920120b79b3dd4aed41cf6117c407221ddba41630d31f
MD5 d07cbe0abe98c7530c21d8746592b632
BLAKE2b-256 d5bef26003b077743d97c8a0258dab7198d7cc0272b04e91cc4ffeaf3436d8eb

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp313-cp313-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3c55eceada1425ca0b68f50feee55275936b2c3e6322aae1303986b14213bfe6
MD5 c97de970b36cb02eced1617af82e3f48
BLAKE2b-256 85528e5979feee55805fe848c5e6e86dfe28277c234da4f41c4a1e45f181d2ca

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp313-cp313-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2dc7d3133bd04eb26603193bb2daebc0d1ffe74d7eeb2d1f9dc9e373b3f3710f
MD5 3ced06257468044f317c85eceeccdd95
BLAKE2b-256 fb010cab64de01cec126982bdbb19146df4db27e832d7964b9dbc591b803dd7c

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a43246edc8f17ab9153237aec4ae8d52bca2a9437850432a0d4166a4e62540b0
MD5 21e2d497cc3585e3cb473d1a00e059ad
BLAKE2b-256 306af7a00b0bdac15c269b2fefc700fe6e436d0ab1470c0bc3ba613c3a8a867d

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp312-cp312-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4aef61226ce84015f46b4cdd25844db71e7798e8525089c67b914bc97adfcc94
MD5 273d882ccdcd2e27ce90af2ee21080b6
BLAKE2b-256 9afe9b6cb54085f26f0ec8fd8e1cc2590d63100956d16eabedeb50adb69a1bb8

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 8a544790d780a137d3b7477f8dafd2dce8dd9b853e35698c05ad9270d8bb1aff
MD5 4ff57b0edf9e1d57a9e5206f66ab0c26
BLAKE2b-256 ac078686090a233b9b030130ff4c58f01ef0b7e967db6df31b15990034d776c9

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp312-cp312-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9b91cfa74afd1354dae32ac33068064074798d1928bfd076acba0c2013fe4799
MD5 da84c715b90edd56820bd32b5985ee46
BLAKE2b-256 2e6853f7bc7bc45832e274aba3e12dad33fc2b4a4de769deba95b4768ea2a4df

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e3fba56d702c6004f1176874ec4e65d6cb4413f064b6ba8fc7667ba6916468d7
MD5 acc0c9cb741609233c0aef6a501e46b5
BLAKE2b-256 8967a4e1a39bfb4c557baadc2de37cbaa0b6dd018c55bee3de0aaaea8ac606a7

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp311-cp311-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 70a6abe8a0e3cdb1f489d1b0355b7a5230fb5b08727dc69b3b91e20256e9b5fd
MD5 959e3731db95ba76b96f2415e5f370a6
BLAKE2b-256 cefedeb219864c81aa373440e688c1da67e1019ce993282647934e0f2e24bac5

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fe85eeea8920f23efddb4c108f7a4100cf8d8740e4df02bf697d75868707da70
MD5 115c4e46da7e651b0f2afb1ceebdd5fa
BLAKE2b-256 9e81524e3e3ed35704a21b33c8e666f8d743aaa5c347c71a9d79ff21533ac581

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp311-cp311-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 17618f8fd68030fc5e8396660cd9dc7a8bea0ee862cba51dfe9c8e309c176105
MD5 377fbae044650c7e92e6de379260d928
BLAKE2b-256 7f077eee20fd4883adfc294d1c58074493d14572cb56de75e0ab571e51c52993

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36b2edfeb63e9457f2b16c21a56d66b17aa516f4e05631422232248f95f02b3b
MD5 f922b731d8748b4299bf1126b2256e5b
BLAKE2b-256 c088e38f25693e1893df50bd3fabd365574ecfb1c7d5aa6b2c21dfcc200ed81c

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f431c7bc36e196b6b2f667e531db0d0dca05da138df96ff16e05881724347e8e
MD5 17ca1df6c131f28fa1190ee4ec1841f9
BLAKE2b-256 173e78c5b5e209076980bdfbe29d26c4541270398b5ca99b8345bc7503f99ad6

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp310-cp310-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 1d14da873b865aca72f360698c5e577f5e5ea39fc847a610219be77f2514e0dc
MD5 fdb28f1999afe617accadd38d279c56f
BLAKE2b-256 7515985764812e2befa004c538c77282aad865fb79b9982b2edd304f4ca5d505

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp310-cp310-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 052927f940b7bd1d6876a9fe608ca52a8c996ebb6b2b6a5107938bbcc237860d
MD5 da344263933fd46e4d10463e06208718
BLAKE2b-256 f827d4beaf4ddc39db4ba659db71dbf032e2d072ecd3e0242aca984ad863f7eb

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gamsapi-48.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for gamsapi-48.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c65813c8dad21cc5f2e527115719b74b7a6b83513cfadeee8a0aa490f9a093ef
MD5 7cff7ea228cd28348eff7ff9d88041fd
BLAKE2b-256 7caf65fdeb8dd8705119e0250ee2ab80b63828c6184a55ab9e7ffca84226b1c4

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp39-cp39-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 de60ee2583e864ac5455ce59385b303ecd36a767ded92a07b81dfaf1e4b1a7e0
MD5 d57b6939d34f76b10f3a3f1fd5cb6a22
BLAKE2b-256 81e22de9bc10c1fd1f8e534acec32ac6ab527043f7fa2e56a2c2e01278ee8a01

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp39-cp39-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 554e698608cc67d72cf4b59b9e256a21cac91b29d57e4ed0b7b472d5bf6f437e
MD5 06eb75991db62038a3e89237e6493903
BLAKE2b-256 990abfc3180d16b1fba820c76796be32c80b66ce51835965687ec0fa9ac9dbcf

See more details on using hashes here.

File details

Details for the file gamsapi-48.3.0-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-48.3.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 48016ba802c01585a9c0643c4a6b8515e73f3d33d98fad94cbf5751157fe9339
MD5 5826797ca8f7d498ca3e4d416cfde61d
BLAKE2b-256 1bc2c5fb0a8882b1ae3d1f86f96f856bdd0c5324ef7e44dc4a33452ac1d2786f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page