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.2.0.tar.gz (940.8 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.2.0-cp314-cp314-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.14Windows x86-64

gamsapi-54.2.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.2.0-cp314-cp314-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14macOS 13.0+ x86-64

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

Uploaded CPython 3.14macOS 13.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

gamsapi-54.2.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.2.0-cp313-cp313-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gamsapi-54.2.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.2.0-cp312-cp312-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gamsapi-54.2.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.2.0-cp311-cp311-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

gamsapi-54.2.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.2.0-cp310-cp310-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 13.0+ x86-64

gamsapi-54.2.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.2.0.tar.gz.

File metadata

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

File hashes

Hashes for gamsapi-54.2.0.tar.gz
Algorithm Hash digest
SHA256 d577cd02f74821d52503e04be3e04422104a3c534d491aad255662c7d6488ea4
MD5 fe5f5dbf0b7fec8ecc6b2814a72659a7
BLAKE2b-256 6b3b89561c3aa0e83aee50b1f3c87be54897c8fc0645bba54ad43245cc48c8c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.2.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.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 03cf3a6f21eaa460884ed8861d70063ab646ad9c2bf236b7abff56222473b2a4
MD5 8e5ccc45ed7c6463ab48cba7c868d4db
BLAKE2b-256 74a840b23b5c284d19e5875c6d24103f036e6e817809005f0190a8d8cc168b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26c997e190278c8dfe559c3032339da06ce31e9daafcb992a8bc2d1a32ac0919
MD5 bfcb2506bed010dc3d31e92bb43b01a1
BLAKE2b-256 f11bef0576b4252612f2cf40f482855d178785025b6ea792bbbbadcec7ba7494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 05355996874cbaa0caa05e8640e843d0ffaf1dcc616cb443b494d30d064818dc
MD5 58ba0400b08b4193b2c6c34cdc247af3
BLAKE2b-256 28c508009b9226ec8d4cc87439509984f0f8545f43343af5fab09a43939d757e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp314-cp314-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 5dbccf9751890a363a9a2cf8ee3e5774ab5c9d1700ed78d513187ac8286f6fca
MD5 8ba6689cbf58da03fb4a5b1f39e0dcf4
BLAKE2b-256 c91ec5ac82063a1d212d25d1d7b61f393eccdf258235b4c1aacbb69dedf3413a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp314-cp314-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7ae64650c54a6459fed8d198f12b40f587ffa328cb82e7a196271d212518ce55
MD5 c72d362725d5b0bedd24f46078ac87a1
BLAKE2b-256 aef0d685c3d2072668fc167f10e40c42672f402baa55a0dde0f07bb7059472e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.2.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.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 96475741d974319f11036183ea9bb32c88aec42d1e31fbb2f2c910a50c3ead62
MD5 5a9ea89e51b0538bb954b656e69925e6
BLAKE2b-256 40a5036c3b5eecb6d857bb6d9696ad76e7107417349122bd1d2310577314d1af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 80cdfa5dd08a8be7c0cceb216b435c6d383f92e7bf637c5781d0cc00531a45ac
MD5 769f3aa71651aa7782e0504af5eec25c
BLAKE2b-256 7118f54eff1f04b2e8120babd7c0b8f5d50887187a200764ad7c009502d501d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 580eb4cd779b713acb128ef4b085f332cd7450f9d1670babf36cfa1e7921b29c
MD5 4d40377cbb6ef623f95e48e334d368f1
BLAKE2b-256 b70d42ae0a47e1d564a0c31edc6a175770ed28c613cfa9e719c978739e5a1eb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ebab155048d4dc3cf9e902cd7a73f3bbd9e1d07bbddfd280aaab5dfd5e364c6e
MD5 0c0c5985393e899ed04f9d26ada49d07
BLAKE2b-256 e5a08441c8a3578abba7b9378df4c7402dbb1bed8c3cc372461ce4e442d68ab2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bb869f413fd0f7bf6133d0b721ccacdac0bffd06560ad16823c58942fafae0fa
MD5 1d35188c5baa441b419cd02453f08932
BLAKE2b-256 963e79a22fa66609defa76c89dbdb3d3f925935a62643394279cc8b37857c790

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.2.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.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee9a0da6c849f6e0632875a1c79ce30ec8d0af405d1ae19a6acaecc834485c98
MD5 6733c3d319eb7301fab3a062106c2556
BLAKE2b-256 c9a4612cb2060706a3e1594314460e927256108e730cf8535aa394dad06e6322

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 57a289442bcdf0192b39191e223a3ea447b7b0946520604f14809e9e90608627
MD5 1ee776faae56c5fb8c88f4a7d94119d2
BLAKE2b-256 b9fbb15006d5e08cc0d09848e69bd86fe8817bec0c3e2ab3216451177133e3ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d2801650fda051657c518b32127bb0b74bff9736e0592377fefb4987ef26afda
MD5 b11525de546d55b289bc9fe71ca7712c
BLAKE2b-256 2423484972f1e318fc9eef09b22fe287b396d67f4b9893ce06b2dfe9606f29d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 4ceb9aa55777bd151772f8d2c7be2b7b4089370c3a6d157932a928d09dc2ced2
MD5 802d369465e04e1fd337ca9e34a48aac
BLAKE2b-256 a92bcc517104d6ddb88e030cd46c1100d6ee2a2e5326b5be924989db5aba5bb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 0c293998b53b1d47b920875cc43afa0f8e91f84440a7e46ce2fdb8eba10cae54
MD5 6eebd1f193f1a2825b4184de3dba7d23
BLAKE2b-256 3ce17042787f9b6c0ba2aa61975c093d84d8876f7e101c765694a2ac6d1880a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.2.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.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4014cafec9810e0963525579482770768e1ec017e06e918c71206c72421d9d33
MD5 d0dad66a7443dbae1a0f39b41c9a2c8d
BLAKE2b-256 556c181d2376446965923e6b318d7192138e8d72120d8a109b2e6bb440b60b1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7cec7577ba003b066fa957bf2bd5a1c9d01db439de6c03fe59c5f533becc656f
MD5 d365a63361c6609f08947e23a2d1667f
BLAKE2b-256 d017fcfd43f6e2b8e69a1c7789ae1fe025e7cd5089bb748517b97ac20497e7dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cd82aa0e1f96e90219572e7cb1787141a76b4d0ea81ccaa68197b11c5de2b09
MD5 81c12bda689d809fa72186b164980db6
BLAKE2b-256 d26a50748c1f506573f4482fb9e263436f2007187d120c507e20a70027102471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 908ae6d27206b4ebaccfca8b7d7f119786e91862014c180f8b592b2d0e424765
MD5 982c2c136c67fd5d9ed6ceb412390131
BLAKE2b-256 a28a889f52a564e807d3ca091ed0f3cdef86acfe8665369f513dfbb9db185435

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9462f38474615c23b4e769634ffee1016cdd0f5269a8cc3919c4fcffcc158774
MD5 5f3cc9594cd778dada2fe4ebf9c7e72f
BLAKE2b-256 6a6b27a0a5593ebcb0edef3281f9d372b5bd2d2e7c49fa579d8d44383ae93dfe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-54.2.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.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c6c58cf79ecdec90d97826139d4122a44fbe4990216423d5c5c575887efa719f
MD5 4a0ef76016fd3355e53701aa9b403f6c
BLAKE2b-256 cf66ccc372683d1c15c203eebd45d0f44b23456cb1c518f351dcb0bfb4853953

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa307d595ab4d3c8fad19fb5c2cfc4d171d4238feeb2f6398d00e9bec0a92098
MD5 a7271d3c9f0e9f1ba176a340e11fc5b4
BLAKE2b-256 026f8a218a0a903f89493a98402139464a2cf47462a5018d6c1a992de366b396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e54df545badef775f198d8e1b2d16bb08c9b36b06e02e0782cf6b034fd7af6f1
MD5 85c0d65d1613ec5fc4bea33a4934f5a2
BLAKE2b-256 7780b72de8417784d35009602345fc8075b5e909001edaa3d05b5164542a1786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d8fd5410536cdd6e2696e5680a6d8cfd41410f3a52e09c5fdff09e4d9860302c
MD5 3a2d7e3c542330a89d277a9b00d9da80
BLAKE2b-256 6eff7634e4d5d795b751006ce37eb782a238acc067fd2571e970a2dfac06f529

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-54.2.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e18742eec29089f99717609ecf38332091b88ffc599772eed254f9124cddac6c
MD5 9d2a36fa53580b357e434c253cd13787
BLAKE2b-256 eadf81e03070bb898c2dcc6053651f474fb66fbc508c187d80d90006f0ea16b1

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