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

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

gamsapi-50.4.0-cp313-cp313-macosx_12_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 12.0+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

gamsapi-50.4.0-cp312-cp312-macosx_12_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 12.0+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

gamsapi-50.4.0-cp311-cp311-macosx_12_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 12.0+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

gamsapi-50.4.0-cp310-cp310-macosx_12_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 12.0+ x86-64

gamsapi-50.4.0-cp39-cp39-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9Windows x86-64

gamsapi-50.4.0-cp39-cp39-manylinux_2_28_aarch64.whl (1.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 13.0+ ARM64

gamsapi-50.4.0-cp39-cp39-macosx_12_0_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9macOS 12.0+ x86-64

File details

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

File metadata

  • Download URL: gamsapi-50.4.0.tar.gz
  • Upload date:
  • Size: 894.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0.tar.gz
Algorithm Hash digest
SHA256 bb12ab8dde526655a4cc2d058138b90fe343560ef76ef40b4fae75e37195d66e
MD5 d068557ba9f38e24404ed6f50c93d179
BLAKE2b-256 29cec8b29fd5b499304002848a06b0be1f89261d0f8074a7ed050ff54ad7ce46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-50.4.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.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9084f2658f815ae29d9219b3ea4b8415a3401fcaf7ac2f94a98648f79c214bae
MD5 e64a837df305d33f1f57b9b0e72af003
BLAKE2b-256 a736a87f8deda59e2b156e82ee077bb304fd3f8cb0d1a74d3848f67af2ccb420

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c95628ad39de60406c01a221949f258c8ce73d193731eae24182ffb09bdefa70
MD5 2df99bed5ba56d9600595e80644de61a
BLAKE2b-256 29b995a596c6dc3bd41447b26f034f2a287793c5c1e8c200311e4763afa4b072

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp313-cp313-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 02aaadb74f2cd269a48600bef8a8ba7bbf9292d21a85a46fe451d749d6247f1c
MD5 ffd66f2eef9860887aed7298b57f76a4
BLAKE2b-256 14bfc92467835006c8c178153a1495661f7b694296dca2ae4a7d546fa335ee6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 3ce816f43aae32105e3866a528988648d7ce528d3e9c1a3fdb1cde1536902754
MD5 e869b183ce6e4fba33becefa052cbd2c
BLAKE2b-256 86aafaf08b1c5fc38b711d78c70688e23aba9224904ad3d16fb6b64d756c0d25

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp313-cp313-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 c0efa57f9b25c06cbbcddc8829566f05a7b617d3b3b438c639958a2755c6a1cd
MD5 500ef79ae0dcedfb10b90d1e9f0d4d61
BLAKE2b-256 92e71e2ea1c2a8a2384d859d41f6b36b7df9c19f1ce8e87a1c5f0804a1262c7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-50.4.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.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 38ace2d8d3180eb4f65148f983c2e9b6d3c9728070177b897781b5d217050a85
MD5 432bfb8a89ddfac8ca8c93e97c6635ac
BLAKE2b-256 0d9ccc8187b9004866fd38f993d3f46424a8664db6a30618f461b8114d692956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 558621137c9b29608db4b0b50bcfb46d79e94388c3481f72bd0b385b0723d459
MD5 f3556b24e1178b6047701de110dcac32
BLAKE2b-256 16d757986ad79df1328ad54eefddd6e3baa73ee465cded61495490a6abfae794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dd9b8b4acd4086876a9db1d56fd772b275ac42363360fcc3ca09df300102b3ad
MD5 2f600c8d369215a5bef0959af3f1f451
BLAKE2b-256 e8fb2f8437aeed3d1731837602253d410a600aa3fa9c0c80decfd7a88034266b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 af1c5843a15a06484995ee222cebe74cbec387db4aa8eed1762670c1c5595639
MD5 c5677c6811af3330a1cb25cecff0e0de
BLAKE2b-256 3d909a51b34c8cb180e555d4023ea9a08bf015480a7c30d078516fc26404072e

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp312-cp312-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 8b5244ee7bf46d094f9d0cbe4582e0e4743d3e7e538d8f4b544fcafc4c68592d
MD5 c8f468ef99350a8c701d581de404f0b7
BLAKE2b-256 926ea09f252fdb14b1156fa0a7ec061633f5b503bbb60c4d36bec861e0097663

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-50.4.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.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eaa1df28b1afb6f68e5e4403d5d539cd41b299cf0dbb3a5a53b022095cf3bd67
MD5 a44b8b1d863ca4a36e36944c7b8db145
BLAKE2b-256 b2929ed02ce320b6f686c6d421fc328f245386489084fbfcef98945ff0539d7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 97e3dd8ed6b467734d12e01eaab12c0c642e67c54d3dad43572c03f7e46e8799
MD5 bb38c0307e48a8b5f558c327082306d2
BLAKE2b-256 4b0efb7a37a0718d496621db57a98c3b1d05eb08e581d64ba6fe9e03455ee016

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dc61ebba0830d527c1f495f35c787867e118fc076da8436cb6cc68e636d9925f
MD5 9480e7d0dfb52ea49b947cbe1878caed
BLAKE2b-256 fe6025777df3f85128a149a0b88593e012a43d5c2ce6e4445dbdc4a039d26606

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7dce97cb68b522f1084fd4190720dc75db875cb1f69b1dc2c0abb357a7d8a63f
MD5 66c553f229fca5787c4cd2212d26db70
BLAKE2b-256 8847f865be83057c4ab7e71920af6ca87c68212af950ea5a885b22d7c3832361

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 1b4ff106efe1b171371b5261b0aa5551aef40eecd1767a0700ef9d50ef0e9e44
MD5 0a076519d0d43fce9c5cee497cce16d7
BLAKE2b-256 f4df6893d66dbe1683d9f45d2f4b543368acb2fd4418126baf09431731ffdce6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-50.4.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.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa83f7559a819e5aba39ee015e912d9d77148dcdb7f6805f167fec0eaa20cf45
MD5 abe886d528a81e47615cafb19160a99a
BLAKE2b-256 85bdc87064459e959eb2fd880df7a18d04c2aceb69cbb3a9c04ff63baf17faea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5772e49892008c063467f391971b0d2755ad136840f96f24ceb1dbcc0dfdff7e
MD5 3e3437077ba6cef4d2ee146dffbcd821
BLAKE2b-256 32a0be0100dc16f1d372107ace95ec915b12335a5283e769b3e88b50da305903

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 393a8aac4aa23667d2552f8ab0b7bee4ba1b9de988924c15f67a4b4ce0d36edf
MD5 ae76676c738aafd2f89f75bb7a4810c4
BLAKE2b-256 2af44794bfb2b7a1dfc09bd7f81cb1b4b16121accc5882636d0a63850cd4c218

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 f00d003c955c6c85a31b60405132cf748d2ceabd8620baa7c7ef93f34ea7ca3a
MD5 ca7d9207216c91d5e03f68345d0c7c84
BLAKE2b-256 3785bb979562fe2848a5c678eb9ea2f3fb3a264cbc14be6219f74cb3fd6e2053

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 b1af301baeb0265cbb9712e780c695a39de4751f92adf0c20da9abe89f4125ea
MD5 c8adf528c47cf382b951adfc7a96c303
BLAKE2b-256 05094debf9f6b8a024986088a0700db83a2527ad2262f2785b900a940ffb2241

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-50.4.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for gamsapi-50.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 989098865f07479399e87c927d46380534fd4a5ca3d1dfbe98d2e9f462cf2dc8
MD5 5a814f0123641ad9ce93bd4b13bf8761
BLAKE2b-256 9c44cfcf4d828058191b7d5dda283ed4c45c0bfa6d8ab0ee4dc545e8cb0be549

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp39-cp39-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e075bcec15332acc7014d2ecf9a20bb5483fb36e0efc8845f35043391ab84962
MD5 36aa3556bcdf61045cc4d02a87c81ff7
BLAKE2b-256 4b09eab91410d204ca61016f1c3f7339dc1b5bb66907f2b2a890ee39710d497e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0d750124ac0d04ac199d85c1ced6e6220752399960595034decccbe7fcee0442
MD5 83d8de8954dc7bd12f0087db6a7e408c
BLAKE2b-256 e711e8bc277dc0144fb665d25131766478291aef1d2be5c1c10a1cebba9a9d20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 87ba3a0a84397cbc11dc93ec98958b2d903b537cb48d305e6e87582446eca344
MD5 e2acf074442d142399fcc6166d08a9f8
BLAKE2b-256 bd61bbcefa85e9d4606cc18a43e14d6a43166a7c1ac26672c3002b98c0d8eb29

See more details on using hashes here.

File details

Details for the file gamsapi-50.4.0-cp39-cp39-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for gamsapi-50.4.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 e798e7c5c3a55b65ee1e743a6890bc19791a2ab02653330715e6fe1e246ad3b4
MD5 5d798985a2a51f515d683fbde6a18892
BLAKE2b-256 e3ef4fa5fee3035ff2f900c64684733ec01d54beb445126c4e1375452698c715

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