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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.13 Windows x86-64

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

Uploaded CPython 3.13 manylinux: glibc 2.28+ ARM64

gamsapi-49.4.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-49.4.0-cp313-cp313-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13 macOS 13.0+ ARM64

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

Uploaded CPython 3.13 macOS 12.0+ x86-64

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 manylinux: glibc 2.28+ ARM64

gamsapi-49.4.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-49.4.0-cp312-cp312-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 13.0+ ARM64

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

Uploaded CPython 3.12 macOS 12.0+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 manylinux: glibc 2.28+ ARM64

gamsapi-49.4.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-49.4.0-cp311-cp311-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 13.0+ ARM64

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

Uploaded CPython 3.11 macOS 12.0+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 manylinux: glibc 2.28+ ARM64

gamsapi-49.4.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-49.4.0-cp310-cp310-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 13.0+ ARM64

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

Uploaded CPython 3.10 macOS 12.0+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 manylinux: glibc 2.28+ ARM64

gamsapi-49.4.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-49.4.0-cp39-cp39-macosx_13_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 13.0+ ARM64

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

Uploaded CPython 3.9 macOS 12.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for gamsapi-49.4.0.tar.gz
Algorithm Hash digest
SHA256 ca1e69a947c6dc66598d316ada6ff9bfdb663186f4a65e87ad36a2c30919912c
MD5 22d6ff724e467580ff641552c36642ef
BLAKE2b-256 aa9069aa3bf490e148e418281685f684643011a26f340a11afc0db7cc410cedb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 60cacc28e9e36a99d81706733cfe0b4caad51ef104912a724ba3bb3ad49bb28e
MD5 81f6c87559921ea7387f37bdaf145c05
BLAKE2b-256 c92dd07a06d3c32ed83c7263f22c1c0203442d29db1a67f29f0c979aa55b54b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 19ece611d17bc90ac9df8e9159df4e2f7ce131dd0bba9cf71058e50c0d56880b
MD5 b469c889d4cf9e5db9911d97535c718b
BLAKE2b-256 8725d9b1e77d751bb0b5d43e30a12b3ef08453e10f7b803206ba13def3b062b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp313-cp313-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4f5b17727bb6a735c88f55f01ba6c6a98fc9dc75460a2ff07591c055cd5d5842
MD5 a71f87e30011705999a854b84d36db59
BLAKE2b-256 336cfe68076759d8a58ba0130f65838c47ffdafc704ebc74f6c8e99d1bc330a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 85419c9b20226fb02771299549dc82612848b5bd684f543bab1a8e03782d82a7
MD5 52f47c1bbd7c1c493b4f133ae3b62ad8
BLAKE2b-256 39be375599f01c202e85150505580a2e61e4aea0e15f5c1f5279144b2b647c26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 d1a4c9afdd2c2bcb8405b450382fce8e5e9caa7434a8cb4f81ffd8dd5e11377e
MD5 5678a9a5ee8e6ca59603fccf7b465864
BLAKE2b-256 d420e0f731ed27ff961c3cc4623e6c97e50f846c067d4d85da9a03835ef91f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a11b8dea9cec77f2e78d98ed9acb827c36b58171294b418ae5a888663b3953b
MD5 8be81a37960b7321dc2adedfdfa45730
BLAKE2b-256 5bc5a1306f8fd0563d714d42748c612888531a58dafddc5ec38ad7ac7dc22d21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 87fef8e86858d3ae39726dc54aa1be6f2409df2d5505da7db4a95ac36d34f258
MD5 eaebb95e8166c0fc83c4ee5418748575
BLAKE2b-256 5bac540ff7e84327f5c43be275278ad37341d693765d78f3dd715add379682ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 47a714bc9d228d099b89b8fc26c789709a44f8504765309a07ba2b3b06248887
MD5 c347badc29945a1f017b1b69e438dfca
BLAKE2b-256 e534d1019e6dabcc07642012c8827f7cbb7baa15d12ab9609a354be53e668c1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 91358b56904fe669bfbdea2255034d2439aba47540c6338c0bd1e2fb43b28f26
MD5 776bb5ace2646f2827cfa16d13bdf848
BLAKE2b-256 b3c31ad5924d2c81caec7a381c128620afd55259ca4beb9f95724e9da45330ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 721b8d3fbf7feac6aa8adec928c786ea825a8b3db6e5966e55bae1551bbb7e84
MD5 60a7e20b70115e63be268551e571a671
BLAKE2b-256 c6d55489f1f7acca5861f7afeab002e4f5d0a6bbad365c19ca80dc11b6403b09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b35e638721bf9a666aaf1945e9309fc0f5f4fd09158bbba95a5c668c612e1db
MD5 368fd61f397309c605de625fba72990e
BLAKE2b-256 35e72680c879f347afe2f0b15b12930e95780008f623e87e7cbbb7b52bc36a25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8476cabc029e23c0c2079d80c4009250e712c86a37dad63b132ebb6c7052dc80
MD5 9cf8d7cb1a2b0edd8a98341bfb7ebf14
BLAKE2b-256 390622116d5d965c84c65debd4c025eb194b4a7077860d8945c12bf87a4f14da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5ea21ce9a570dae9b6dbd8bd59b0e4eb8f363b389b7a7ee4840cffce08acd381
MD5 294991e84abf712726abe4f28a32bb43
BLAKE2b-256 5e1bbca39bdae94ce9898781706280f22ba037c48a8a3d13630323ef1c24e88e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 77aa609086264c9387f191175cea9f10dc82133d7dcdf787c771b784daf68d8b
MD5 16506105e20d177f247f4a22b1cda9b5
BLAKE2b-256 bfe93310eb143fe9732abef7e2276a09d75c7577ae055be8330d31aeb1065947

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ee7bdf4a6a9c8b98743e1b91352cf43e558360a77f606947386ef4672dc0accb
MD5 d9cd8f581358e26cf9d11eed2fec80f6
BLAKE2b-256 ae735f625228f9bf4d1d8d04997989f68da80fadee0b8b9f79f95d37b24afd1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef174dc78b6009c8c9f429631f7c6f2d164e816b67def42220a6de3b4a3a65dc
MD5 8509cc4102c2633fa168ceb81cf407bb
BLAKE2b-256 54056416fe1794cd0d10807f61b0d7c6548f78d77b6a44f0fa532d6acc02e5ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 db26a2a97502be2c172ee3eaa713db06794f439ea4a0e5e9559927545b5adc49
MD5 b232a38838d4937a45369f8da4b276d8
BLAKE2b-256 27a9bfcc044ba581f7a8ec07ee791ab0b1b7f69890bb8bf5f954d2be7924a197

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d2870412cc90df1516368e26032e90207290d7c61a91d6a55b49bfba3af47b80
MD5 121af031ba3a262a6dfbbfef9e6e130d
BLAKE2b-256 2ad1534cf2b2f12b9bcd374d545008f50c6170247e71c924cf2de836562595ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 32f69b8ca4c02aa8d05fc91d9a8198ec1eee95d4d173e8276cf4ace95215d55e
MD5 7d447043956be7bf0f4a84b8d3b3fcec
BLAKE2b-256 8d14d764cad485db068669ed4e57668922ecca68e57652c0a7a7ac3204ff85e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 87a5ba0907088edd8f4777449c3b0cab21bd1e0b5998f56010a92b3988aea809
MD5 f6f63857e5600ccdd0b6ccf7f823a4d7
BLAKE2b-256 4f7240081ee53d6770951bfb768da777e7c5bb3df4aaef3a99da03fc43e3d010

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-49.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.9

File hashes

Hashes for gamsapi-49.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d84512a583405bc29ba95f5ee10a984c9b66b791e0092e5a8fe3fec8e97be15f
MD5 f3976fc5f504fd373b636156d1e7cf0f
BLAKE2b-256 174744e888f7677fc6132534f26bc2e125b23f35238bcbe5ca867c2c09bad1d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp39-cp39-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 37e951c97abd7a5d7aac96744721a8a66fbe5135b0bfc1809574694ca21844cc
MD5 597823db3862f00298e7e13633d004aa
BLAKE2b-256 9265d3419872c8e08230f2fb3f7519ba925a81f742de9a31a91f31b965ebad35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp39-cp39-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 430ba4fde9758bd68ef4229bdc5aff8dcf357a5ba0652a4ebaebbbd35b3ff201
MD5 384315f67f47a2cd18bb8d2b2ad690e6
BLAKE2b-256 575c723dacc60de528ea9d0a93aec70451972cb6b44c57fd6f775bcf09d870af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp39-cp39-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6488d40f24bbdcfc1db43829dff12a5e8bb11467d60820d7970683a648ed58a9
MD5 fefc1031401e84b7ccf8fd9bb0b4c402
BLAKE2b-256 fcd8464b8cf456aa49ff98eedb905dfdde17b460ba8a6e8bb7d5c932ba25300b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-49.4.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 42102881fbdf80bc0fd207875c491d520491cb4393068676761a474896ff9a89
MD5 69ac9d2ad404ced362521715d5778d98
BLAKE2b-256 1b451dafb0087b50ca0641fa14c68310e2beb618dfc37b804b199d579f987d99

See more details on using hashes here.

Supported by

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