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

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.14Windows x86-64

gamsapi-52.5.0-cp314-cp314-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14macOS 13.0+ x86-64

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

Uploaded CPython 3.14macOS 13.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

gamsapi-52.5.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

gamsapi-52.5.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

gamsapi-52.5.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

gamsapi-52.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 13.0+ x86-64

gamsapi-52.5.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-52.5.0.tar.gz.

File metadata

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

File hashes

Hashes for gamsapi-52.5.0.tar.gz
Algorithm Hash digest
SHA256 c409e8abca4ebcbf0d3c392bcc4af8708c10fb3ce1a2d2b641d1c5cffa98d5a3
MD5 14e68c406e2efe353375e02e4782d186
BLAKE2b-256 5dca101638751ebcb77596b9f2db5d31bd2a3f433880fb36832b117d380920dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-52.5.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-52.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8f950c75db8ee419042d3d4f1fd1c3cd3707e0bc77af46462aed66116ad578a7
MD5 76437ac7aaf8009c8a8750532c1681ac
BLAKE2b-256 3e3ad2a79078e2d9e211f007357b14aded6833cc817a7a9d07bc2d4083b92be4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3fcbf2859ec13ff50a128d200ca2e80d3f1e85fd07da4c9487d6be6a3e7d7df
MD5 0814edee951d53c2bf3e01fd6b22e450
BLAKE2b-256 1a0a4862c52c2e7af1c7b79ec0fe9c1f5479f24b25a1b1cdb8b48f93da88d2a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85f90e56ff37abac9d54ce284390bd3d70882a22b9f0c3455e1d70bc44757cfc
MD5 69937ac7f7e213147f155d52b15f89e4
BLAKE2b-256 9c1fb956c4cadf6644af9eab05673afa161c28095a860759a2b32b6a1fb76f07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp314-cp314-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 329b3db4d1729ff7e883624eec5a019861f86c0a4b53b56f8657406d46ef945f
MD5 75f621e76bcebf47be9736bc96bacb7b
BLAKE2b-256 fef5ac24f9c4c836145b3996ff7f68750a64b33e97b3eee2666edc860d1b20e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp314-cp314-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6aace6cc67085f848cb075cf59b7294c359024d21ceb28bc3369758a8e0b6cdd
MD5 342c74fadf789bd257fcbfd5c7e584d8
BLAKE2b-256 75de1310aead8f53e1b11e1a030457863b0ffaed9d36e3398174e87e9b51a42d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-52.5.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-52.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 69e317191538e28de857d258cec3686e42524a0520879115c9bb39688c3339a8
MD5 42dbad6a5fc5a3e2d4f2d8bb9a4fc134
BLAKE2b-256 babb1c3cdeecd5d9acd07726e5d5a309208e633ad52350336fd7756973d151ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 edda54d1ecffa1ce1519d6ad28570f5f230b642a7806c960ae5ebd7036d66570
MD5 72ba33c89f1b2e74c17d32d3ee633921
BLAKE2b-256 704ad93bcc745894c8bcf4bebd0af6827c06d51d75c200de69c5405e6ee8b248

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2131b2e9a538518922e4ca0efb288071b704302de345e8e08ed6313a95814f4b
MD5 da0a5080208d38882d10ef216e5cab9e
BLAKE2b-256 d08ce86d0ca86d45476104cf259e740c632f9918f2279a486cd1d3e760ed074e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a7fb0844608c5376a7396a4c2338af659a1fa6cb0f1084e9b697adf28102d11f
MD5 175ec29869bd6135356998c80e250bf1
BLAKE2b-256 d13b96d7ca4991aa2b019fbcea87a38e3b3ce86ba0451aa37fcd550a92a352bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2a74259c081d702b500d3cee52ac7941d04e0bde6861bfc2fa4a8d9729703a5b
MD5 5e61431f9edafe640d4a845e1b60a56d
BLAKE2b-256 b7a1bfaa130ff38aa1679c8efe481b03d7ccd27c8827c389811153f2424c8c0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-52.5.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-52.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e168385da6246eddc534b985fcc15308c34cd4ac20b664a3126c4f4f1a0834f
MD5 0b201afcdeb203349439e3956350e6f1
BLAKE2b-256 b51fbb9ddd28f68bb19c206274999f46a962f4aae2e8ab9f03c7f879313b8f45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 48565e2851c3c6fae5c45e60e51e8feddb336b9d33e9ef162b7f2246e49a2985
MD5 c65a7580cf147f4da06df25690c9ca43
BLAKE2b-256 4011786f3afc2fb6fabb2f5468099dd3495d142199676c76c89f379c38a8aad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8d71786f913329a0117105b8aba4e02347a91f2a1e4b81493ec9f718dfa28f31
MD5 0e7c045d16932a44e943706865561b3a
BLAKE2b-256 f9863fcc41e877db5bf72210eacb0c69aff4538a32ef66eda022290e274b9e73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 6af47fc047631d2208379ecd0cde3fe9342fd75f91234cfd6df2d07b943e06ac
MD5 6927bbdb42b24901f6d26af4f76d263e
BLAKE2b-256 c8b71c87e635c64244b024f12cb06ef983924cc8ecd6300ca5525339c37b2734

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 fb4476911208ecb3f28a57f0018da8615ded5b3c475760b285f5563721bc359e
MD5 bfe4f9a08398d255f80934e1db77f45d
BLAKE2b-256 b12a86d0540dd5b258935668682f357bc24af9590ee5a6dd4b082b688348c3ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-52.5.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-52.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 91e80c7f4b628513a279e2ce40b7085e2938114bdb021636db6c1d54ec7a756d
MD5 47409b30e1635d7268850729079339c9
BLAKE2b-256 946874caf8dbe259c4d7442fc6b6d8c168f504911a53854764ccaf68d7ad7a81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a6373567ce9126b6c01242149738c20056dc5f977f8d3dab844ea65220a0f48
MD5 c41c97b2a4098165a7e5d9cba2ea583f
BLAKE2b-256 6f4da12cfcf055a3e6ea3c90eced10822350edbbf8f7701a44dfe049d076683d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fce87efe50a29a7f4ffe1e978b599d4850ec7c7ba5c05c245a9b4c1152e15d20
MD5 fd9a3e1d158e0ae9f48494684af5283a
BLAKE2b-256 37f1c0c30abf3e265d7194fb0362a31467b90e4aa1a539f662077be5c7ff4855

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ff0df475fd2ca2cbed462434620f4d3f6c5826bf3323737ec63ca68d480851aa
MD5 b4919f981d7c04237f2ea34db8e15613
BLAKE2b-256 91a6ba933221199d4510092599d5a85f7d8d8f81604859304ae51af64e4421b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 b1428a0cd432582323ac2153b7f4479f0c9543e1d1ab35a2062667957a3a10ec
MD5 ebc61666df49c50e06d03875efb8a50d
BLAKE2b-256 20b86b2e91d414dba9371f23886996cdc23d4e0b06751b31b33b7169e0b9fbad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-52.5.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-52.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 935d90549a1d8c0afc5442ed1f04bfe7b9ec6e901b3b86f2a4aa85123cba99f2
MD5 289a17ebc928fe6cd1f7a21e6a01ae2a
BLAKE2b-256 49335aa6270920108b4eeb4c7bb9ac8d0c1b393e44fb5f6cc9e60726750f88ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e475c1546dfa22139ca3e88e19a351369b1c83950c26b9ee3ed24decd7c1aa43
MD5 a950f733b80bdaffed3841d891d8e875
BLAKE2b-256 61fea9df9a03b3565abbec18a5a0db1da1ac690267a60fd4de4bf1636a26a93b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 397eec1149a1cc0024ee7839690441ccafe6d5833d38d0392de4df51d6644601
MD5 55609f3995d44abf1830fea400c14f9f
BLAKE2b-256 587cafe9059fcbf729ffd24e8616b8aa5b5f674ab10a7a1c2915f470cf1d15cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 7f6d7d12a249edf119c12ed364f3ffa0b756d992cee9ff891a3bee377c0729be
MD5 92a84dd0ef8756c1af52f749b88749a6
BLAKE2b-256 0540b598a67c4e8d99ee39bcdb6fa418afc2a6e38df3f7fc93ff88eba68cd4c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-52.5.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9f4e81f1bf08f409564d6d1089184e960996bd9a76e742efdfbd285cba7569f6
MD5 21c29d72320de98ae7864b61a1e3b226
BLAKE2b-256 bbfdbba3701383a751253a1dbff46f675dc3b0c6c0252d408f16a87a71aa7466

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