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

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.13macOS 10.15+ x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.12macOS 10.15+ x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.11macOS 10.15+ x86-64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 13.0+ ARM64

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

Uploaded CPython 3.10macOS 10.15+ x86-64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 13.0+ ARM64

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

Uploaded CPython 3.9macOS 10.15+ x86-64

File details

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

File metadata

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

File hashes

Hashes for gamsapi-48.1.0.tar.gz
Algorithm Hash digest
SHA256 80b75172cd50e5edb2e63a2c8946da486f755a687f5eeef97b2149b091633f43
MD5 317fe8c825a49d112e1bcfdfdfe6e3ca
BLAKE2b-256 3b553b802bf2238ac2570a3965fd53b1abde0106af3e8ebd090a3bd827ab9d3b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gamsapi-48.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ad4469cb45d7ec0f49b9bf0c32f9837f69ddbbcf23e42dd933399f6252d0569a
MD5 df2620c2e664dd14df84aede94b127c5
BLAKE2b-256 ab72f4a438f686027f92e0dda9f6b03a174cd6a7ae56c6ca7c0344f9eff85637

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp313-cp313-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2612e9f8f76064a9511adbf9d615d2b6b52669f38390133e76fb6fcd7cd2c91e
MD5 31bd87c064fa5fc43dbeb6ad8e060bdb
BLAKE2b-256 748f729acbd9281904e3c390e1ea54af2481e74465803eb56aeb8eae83c4d93a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b5a26d024bee9ebca1a1ea2acc360d4cb662c00f7145f0ec19c266dd1c4bf3a0
MD5 75854f9a39152112173b919f5089f3c3
BLAKE2b-256 1fae241a6a4f814fe8cbc373669f2a1fc6fcc2e609f588b4c6bfd785c0590dae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp313-cp313-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 9129414a79b49bdc0bf7c85a898a624056af0d4ec4e591907275e634fe4d8738
MD5 bede51edda5467ecc7ab251d0ad05116
BLAKE2b-256 faa2c22ea0580921e34c08e5117f52cae98de6685c5e371f6d8c9c891ac1c5fc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gamsapi-48.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1cc503d2eecee18b57dadc5d1d22fc97d9ba309d54244c94fa3292f6ab9a6557
MD5 032512987a5a304c1951cdb4e2595a61
BLAKE2b-256 0b05b83eadb29cfa62b0f79554181a05be2d62b1d366d07afd90d17949aa6b0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 b600cf75f486e0cd891becfe63c8d96f71a89024ee2c0890856368460c5a7d0b
MD5 2cd0132e9ae0097878eb2470d40e542d
BLAKE2b-256 3af9fee04b7677379658d7a5ecca83dcac51c6c1ce4c143fd266a61dd4adeb06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 e7baebc4d13149c173c7dffab556e8887d8e407f1aba596583534f1974e0613a
MD5 c26f75499e421004ff0dca40b20ebfea
BLAKE2b-256 f66dbb7f7953d1c3daec533d4fc1d4ecbd10853d1ec7a6a95b62c89b1b7367cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp312-cp312-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 6996abe53b80c66096e63d279b700bda58fdf00b2fa4acb1b2ca008366b124eb
MD5 c72db4f9b273454eec80d175ed1bde7b
BLAKE2b-256 d74ea2cab1afacb44c4a48c668018ff5687c6b97d1f2459761d9529486c3266f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gamsapi-48.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b4d902ce22a31152fa78b4bc24581d838ce9a87c4952952e7bb60f20552f2b45
MD5 689bd268eb8c7d6e0c4a025d87ea5315
BLAKE2b-256 8963310110d7a596935d5d8e32f48921e492bd89cbd325da1f129c48188c8249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 bc38e0512d40e2db155f00129355f37c66dae86c8c2df42be0cecd8c28357f6a
MD5 44f4538dec2521a5990a0ec092ed19d2
BLAKE2b-256 5b0e0557eaf5e3f34bff5ffb3e96967c15bec2cae2179418fcb80895496bb786

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c41e11f5b9cfac8000dd6e8b9cec36774833e52b23da957905c0f641b3d0061b
MD5 75bf31a3602e3f8d0c5ad571810c1433
BLAKE2b-256 6d85e660cb18d5786f1814d339f6d189ff620a64e789623f6daeb5e8da80456b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3e7cd4b05552f2027fe51310e3da2bc612a89dcfebd3d18e15fbfc5f5a99dc1f
MD5 016780da0aa324d93749c10bd8ddb277
BLAKE2b-256 7af65700b7f615cf95c33d5999c656b72190ad8fb2796a664143ccba0ce0dded

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gamsapi-48.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 28173d3c4b0eb4ccf8d195ad0ebf3343048576322534d3900599d582da7804e2
MD5 076d7f2c9fc702b86254992294263f46
BLAKE2b-256 fe8a25852d944b01dd0ee14ea60d45919540b14306ae9ca30c7cc637968a7332

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 04a84614ab7c19f1b0e6343ddc956733af0fb465b210dca87e295e0f82ad4aa3
MD5 eb88f2fb631230ff87044b6671b226c1
BLAKE2b-256 b1cb9c93214d44b6a9cadd2ac24a938aeb0e0809c21150fa124bfd9328db11ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 69667babe7af7c54242a997b2b235725a5185a656229bb9fed4ef1430b3c6fd0
MD5 61c8d492c53978c439686fc6acfb238e
BLAKE2b-256 5738758529d474b4a0abf50f0a25e5980d1e53e4d92e26d80ab821357e2e37cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 fffd763995d58cce5927f0c2fae0c7d0d19460bf06484b1c6d62211ad0c07f6b
MD5 581e69854aa0b6406935a47aeab2f88f
BLAKE2b-256 1b1dd2e487d6e0a75644004e2f7bc66a2dae529d2e078ce94e5eddbfd1d1bac8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-48.1.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.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0903b7dc0de19418b8bb4f6a8c1b4a2b46cb4aa386e1bfad03dc5385c78d5802
MD5 ccd686f5e0bcc3de6d31617d172d91ae
BLAKE2b-256 101aa79808dd8f3e7fefe1fe8b320200f3a802052353b4954acc7f5250c13894

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c5677c252c744a5ef323fefeb50bfe3e180996e4a0cfab0659407f9500794416
MD5 f79a980ace021a028de47cbf1d4c0367
BLAKE2b-256 eb730fb5955d5aab3061f38f35af4a9b3bdec4d76d719d6be653c3cc0934fafe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 80d05634ab8700e499c995e70db7698d4d8fd5f583de1fa963d68afab6d59f4d
MD5 33d9aa17c187b4ba978a4a5df6e5730b
BLAKE2b-256 cadaeede50c48a63403c190a0ab19bb56d85cbcd396c30a1e33de1658173001b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-48.1.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 8b9820d9fc5e373990baaba82df9dfc264a2b1c29e929c6f4ee9b35b6c06d06e
MD5 ea5a4e525801bb6c5c2d0c3bef1b652c
BLAKE2b-256 76992dcfb324f033b35b9dd8d384641f0323ad54e02fb869c199adc20411f2c8

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