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.

GAMS has a robust Academic Program that includes a full-featured GAMSPy License (w/ commercial solvers -- no model size limitations)!

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-54.1.0.tar.gz (940.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gamsapi-54.1.0-cp314-cp314-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.14Windows x86-64

gamsapi-54.1.0-cp314-cp314-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

gamsapi-54.1.0-cp314-cp314-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

gamsapi-54.1.0-cp314-cp314-macosx_13_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.14macOS 13.0+ x86-64

gamsapi-54.1.0-cp314-cp314-macosx_13_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.14macOS 13.0+ ARM64

gamsapi-54.1.0-cp313-cp313-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.13Windows x86-64

gamsapi-54.1.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

gamsapi-54.1.0-cp313-cp313-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

gamsapi-54.1.0-cp313-cp313-macosx_13_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

gamsapi-54.1.0-cp313-cp313-macosx_13_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 13.0+ ARM64

gamsapi-54.1.0-cp312-cp312-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.12Windows x86-64

gamsapi-54.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

gamsapi-54.1.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

gamsapi-54.1.0-cp312-cp312-macosx_13_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

gamsapi-54.1.0-cp312-cp312-macosx_13_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

gamsapi-54.1.0-cp311-cp311-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.11Windows x86-64

gamsapi-54.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

gamsapi-54.1.0-cp311-cp311-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

gamsapi-54.1.0-cp311-cp311-macosx_13_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

gamsapi-54.1.0-cp311-cp311-macosx_13_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

gamsapi-54.1.0-cp310-cp310-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.10Windows x86-64

gamsapi-54.1.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

gamsapi-54.1.0-cp310-cp310-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

gamsapi-54.1.0-cp310-cp310-macosx_13_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

gamsapi-54.1.0-cp310-cp310-macosx_13_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 13.0+ ARM64

File details

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

File metadata

  • Download URL: gamsapi-54.1.0.tar.gz
  • Upload date:
  • Size: 940.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0.tar.gz
Algorithm Hash digest
SHA256 dd5257a03d7994c87bfce18e2037ef6e41d324d934f979d78bcf0f24cfc522fd
MD5 50fd694e05db89ae785af926a0fa22ae
BLAKE2b-256 344b8def566f980fba19b9f929c1572bcb44e4cc393e13676b69d22cb2cf31ff

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: gamsapi-54.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8ce83b6bd604db6f88988175ccaef78ab5efcf02246e153c7fca85bb64774c5b
MD5 bd86885743aa7dc3bba09c753b472a7c
BLAKE2b-256 ea19adf5790fc8eab3561a97d44d48bf6d367337541a0a6a9a4c203f367047d8

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 774c3a8975eeb3c77c619405c8764a96c4ef820254a8cc5d09b9cc57e08c4c84
MD5 135033aeafce451b3b4b121672359458
BLAKE2b-256 725340d93a34b3c00763d77c64ea53b58433f9afadd9b04e4b27c2c3494b46ce

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e3309822392f9fcc5aaf456087fdb46e61ed85b62a2dd87722dd6f888f87c0d0
MD5 46f0c2ae41dbda0f67a1d79886bac3ff
BLAKE2b-256 213a2edd99a09d17df8d1c791b50aa735100079c65474c4e331a8c3ad72b621b

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp314-cp314-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp314-cp314-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b99edf192ffed463fddac68d1d5fc9b5474d16f741a014cd2ff274e2b68e0633
MD5 b7d20d0f4def10d10b2ad4a5a425d8d9
BLAKE2b-256 05d63fa270724b968ce45bd0c42367e71f23b0c8ccd34e24dd8f6c001e34d26c

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp314-cp314-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp314-cp314-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 84e2c61df78d5b3341354784afc16bfb471be52a20401b5d8dacd796122cc41c
MD5 a9352214bbe3f9726b6c600d5396a610
BLAKE2b-256 4018fe742df47439a0c103c43c95a49c108b51c26c1e40fbeeda4f96d74960c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0c92dac74b7d3d5687e48ec380a20221c24107f93b6d3df32b9860e6cadc9905
MD5 b5f05c222c35d16053e4db38357ff14b
BLAKE2b-256 eb1945736a0d661b87d91964bb96d0f63d514556b2dd724113454a56c56ede0c

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f7e71d53cc49b29a4f67250ccf4f5889e4c8be9933b788aefeeace6547cf75c5
MD5 80a7f59cd93e72d19e8a71c42047d151
BLAKE2b-256 fecf5a01ccc46b393338ae0ca56ac6b418bba7c4133338b1613991cfa942e574

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 880437b178b8f7e552bb5b50e4d1f386c70bd8702c278c8eb39207b4aa085984
MD5 0a3c10013b1b65962cae052460e6bac3
BLAKE2b-256 fd9e89612aa3a25ac6a65a22c3cd4d954f457de24d6a4f9860893588f3bd84b7

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b82e9c5146e2ca80def36cb1573eaf676c6cf3e6313076d60d95ce66867e2e1a
MD5 a12d381da8bb86db5f65f01c90538279
BLAKE2b-256 9c50fa7cf5cd76f026c27733be0df8eb55eeed1796e070cef6f9ef5408a53d9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7a0643c61e4899b8c60f65854f9d6cf735920c7d05720ab77bbcd5a114042bd8
MD5 b73998897e517b6941f6d7353c4f247a
BLAKE2b-256 9af6f44d14b253409c4b57a171d4c0a0512cc3db44776d44429e665dc2f20606

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 23c9653468d00cf797c4a99cde4a24da78e0f8e0f121e89fa821a35d4ee62ce8
MD5 783edcb3f683fc45054cb50643ffd7cf
BLAKE2b-256 b37b85fcb5fbde8f376ab1926beadf1f7ec1b1cafd9c6eaf0aa5df8657a575a8

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a789d70891aec653982d588998b5614093692646f5c49a9d349ac4c592d63405
MD5 586df3c116cc3c6a343537b7fe8ea9ec
BLAKE2b-256 8fb1345a92dd658db95a40d41c0457917954595db029b8ed44b135a1cb20f5e5

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 168397c8d4396801e2a4f089a747d180b1039e3e43b319c4fa2377ad53241467
MD5 4531ebbf0c1083ee50721783a5e23ee0
BLAKE2b-256 ed67fa0e4aef5a826252e1fc497b5154839a09a9265e8ce3f077ccd4b0db8808

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 0b038a298a4cf6e4175f470b0b6ea8955c0bb1d86013805d0c62900e9985f2eb
MD5 fcabb16aa912a024a50d40e226b78838
BLAKE2b-256 945b22966a59f233904164610d418e47b5a050bc8c4352640639bb7a2c2b317b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d4dfba92390806ff1a00b7e5a73577e6c385bfd798d5c2f203f4320fc4161fb0
MD5 1ccf766e8548891be95fd65c81bebf2e
BLAKE2b-256 17a19ec35a6b555b99e63a0a6cfe85b48557d481cf22666e13d3bf9b33643e76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb0c5746b77667fd3da10d8876299157de23df910c227172a30ea907127969b2
MD5 b4f88da35948e43bb019091394efb604
BLAKE2b-256 f52378351953eb72924dbad9a1fa328fe927829a69b847376a659e6761cf5a46

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b66276490117bd777a9072ffc7ab25f6b9eca4c0d4507a3e4c1e59afe9653d6
MD5 d86663435c6f716b85b5459ca35c48f7
BLAKE2b-256 2f1745afb1115c9849d98eb712deeb8605b1da65ac222d7128a893a7e7e4caac

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 709897cbcc64cd3b5b557a7984091f3465b41da3617fd1f709db8f9eb34f9db4
MD5 72b509771a90f80f06a4cd7d78a36aab
BLAKE2b-256 0e458766a1b5f8501f5343fe887cc0d74cab9764b8c78551c397b17a173cabc9

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e04064dd954ea77fdf0bede4dd3d975fa696e0672ba59ad9d689f61b0ac970d4
MD5 3e12899d02b028c334bb76334dba1adb
BLAKE2b-256 01d4e2111274f8c835f186656e9df0c6a0aa595d062f4b3e97ba0e42998c2601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 58d7973b6aefc78daba584789843b49a1d1181a0874b1f286d223087ddf17e99
MD5 9cb083b7021c79aa2dd04bf5d1a42b48
BLAKE2b-256 ad99946a3b612c1f61640e1f875a15b37512ec9e67792e28b333de638cde5c70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gamsapi-54.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 202995900929740a6d28a0497574947efab562a808f61528e04d115a442d0abc
MD5 1c14a7af31bff4edfcfb433fb737cc4d
BLAKE2b-256 d1995227e597b7b8f876a6bb4db679dee995bd422aa28bf3efb1688b261dad4c

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 304aebab60854668c39e6d2a1ccc8b7c7bad9da518e935d4e0f6a1fc67f644d7
MD5 23a92891b76fef92b77bd8c690902c40
BLAKE2b-256 ad41697e2d68664ad98fd7f851e5a248b5ea42e858cda37fba2138a9ae8c0955

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7dfe16d2a040b03b58db83de8ccfbd38a3c7ff8c8fa9077a24232dd4851e80b2
MD5 7a86ca8fbf6905e730cd3cf9b7f39aed
BLAKE2b-256 9f6cdf0a3a22edf51c9f43e97412298005dc8bca653d8d2da005cd861714b7e7

See more details on using hashes here.

File details

Details for the file gamsapi-54.1.0-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f5717c165dfb07e689a6b9d531fb0c79536fbfd513ec1aaa47c453cfe50f3c7c
MD5 1f5ea8e32e1a101605d0ec7119b5389d
BLAKE2b-256 fcb5a7dbbd997c9a52bbbd7015f080861505e957ed7f9c15e9f49b8068cfcb53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.1.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e7ad90848a862d971336813cc9f6e46a3649da5fdb5f047f6be3ce068da5955e
MD5 5aef462c4748df90914b059e56ed8902
BLAKE2b-256 9564bd003a05a9517c0e11d7a57539a56dd35e84cb6928c2cdb7d5712abc128f

See more details on using hashes here.

Supported by

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