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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.14macOS 13.0+ x86-64

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

Uploaded CPython 3.14macOS 13.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.13macOS 13.0+ x86-64

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

Uploaded CPython 3.13macOS 13.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.12macOS 13.0+ x86-64

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

Uploaded CPython 3.12macOS 13.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.11macOS 13.0+ x86-64

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

Uploaded CPython 3.11macOS 13.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10macOS 13.0+ x86-64

gamsapi-53.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-53.5.0.tar.gz.

File metadata

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

File hashes

Hashes for gamsapi-53.5.0.tar.gz
Algorithm Hash digest
SHA256 9d14ae9f3c6f04c27789a556c71ed2e1f3bbe09133c1b620627ba462f94f1a32
MD5 b9488eacc61c6fa6dafb2d5feb2f1cec
BLAKE2b-256 d42034e121d58bdd7d9461bb12a7071d492ae6401e23aa584a3c2e79773de25e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-53.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-53.5.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1f4a89f743dac9a4d797a1a39f055d3d4100be8677c412db9ffd38b05350802c
MD5 f33f26fc154c7eab0c8768f0402f3a81
BLAKE2b-256 3dc31f88a3157078c526f253c12fa20bbfd63af1fc44e00b82b9c15035e86b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a4878c2fae5fc57bd2bbfb83b70af1e95c6d83c51fe007feedb57cf16af3c42f
MD5 16181a40534130cd173c540ed6eef0db
BLAKE2b-256 8b3a650c579344a6ec226116eda4ab9c131d353ea1874a3626e4147bb588d444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 00229536fae186e2615fa9967c3843660499a2c1ccee0479ec4b69165b8a2462
MD5 0fc6f53cb5c923bbeb17478165dd41bb
BLAKE2b-256 fe7b33d5f22ab5628451560b384fa5f5e25cc709b0e63b02d4f6206ddd74657c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp314-cp314-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 293655b7f821e1d063b75ab262887ce081ad9ca2b1181b122fde10a9b75b77fe
MD5 2653742f16c6a0f9f92744d8dc9c2271
BLAKE2b-256 70c3a000a1f39037517d274ba233eb5fe307ca5bebc339e863891e4118e4aab8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp314-cp314-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 a15e6ad41b1cd63b6faa44bae704211f71ba4996e4cf621014baf64f85fd2b18
MD5 1425e9618a340338531d03989ce79a63
BLAKE2b-256 46dfe3cc53e7df73c5d086a4cc74692fedce1fd16e2e0049243264dcef064259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-53.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-53.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 149f517a4042ce66126e2da97feea293b67de5b1f7752fbeb3e85d7dfaf6bf16
MD5 14d3d828250270245c9898b6d3c08995
BLAKE2b-256 008048404ba098a072202bc5f7909b00d91cfbeb064f7eb2d61d895113fe4e26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 03f42befc4856e31acf31fcd1a1b7726f403e78b0f9dae13fa43b6f527dcf3e0
MD5 f8819806324ee4fab2f9b14d48dfb81b
BLAKE2b-256 aeb0da9c88611be972083bc4c368e8d2c6916cc819792e620da1abc45c011639

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b1e1749b4a7345dc28d808c55838bcbe865caad917cf6061163fd1c5ed11a7d5
MD5 6d3ebf89ec7665b5ed727b65f6e4b2e3
BLAKE2b-256 a39ee1993a6081eea31138f7683d8de1a6b8789f4b93653596fb61cc8689a79b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 93cbe554a33e2f6d2ec91ee78572cb54dc0ef03b5348c8f2dc9c3eaad5515cea
MD5 0cfca78ebd03a8226a198890883f8436
BLAKE2b-256 6650654e2c28c61e6549c67c3ce20f81333ad424f44c296a9bc8c9728deda4e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp313-cp313-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 7bf1b220e8febe96aca6ffdf6c1bfbeba0cefecced9272097c2cd506ffe6ebc1
MD5 2262a22c07e2abf0a4419c810bca645c
BLAKE2b-256 2fb8c5443f67a171a9fbdb7f4e15fb45ee79e990069db48d048ca5690ddaa486

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-53.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-53.5.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0c5db54c508b48c91f18c89f297ecd3d7e254f5647cea492a9a16169dfcb3429
MD5 32ca658241a17bdadb4b0e6a93d2ac48
BLAKE2b-256 7f2d532593ca40391dae9ed9e7179b43d99e2033374d9cc6c9b651f864754cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6b8f30fda282a38d76ff41b35fd72ff8c4a58790cb0ddfc1e9cacf31dc84cdf1
MD5 54725f4bb8d6f7325610f92f597c6cc4
BLAKE2b-256 066be2496c6416a388caf001af0b29401bd3cb243fcac4df48c6d9e07205e5ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f6fc85f28301c276973f64e274dbe5e4874b18cbdc39bcf0fbd39afd5b0cb8a7
MD5 0b6a279e20c9bafafd8bbd3820ce9119
BLAKE2b-256 16cc608d6dd819fb6dbc59a42ae4172dd12756d06b275a27cc8fbcc63a46e801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 9ed75592f44d3e297db8bd5845e566718588a8c99191bffec25f08053c06986b
MD5 d383511826bbac4457cd69e95b7db997
BLAKE2b-256 46a601cfbce31927104e1b503600021cac28c3601b53ce6af77a2d0f8960f5cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 318c2b22e0d3a7212ba0b85ed5157957d945cee5b21bf14f89eb8ec814edb2d6
MD5 8159cbc4ed086a9f2bbb504fdec527d9
BLAKE2b-256 3579fdefa04c7f2b3da268812827b8116b52804de28a24e568b1b16438988787

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-53.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-53.5.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 19205efa0db1e8226ec6bf038098178cd2d551c6505df8e92cb90320f8911944
MD5 b9cf3ffe84e27a889f5b937f7b45273f
BLAKE2b-256 0669acf5b6180ebd3a802f60054939dfb8437d000730c1d6d33aff77e4f2b754

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28ed4819a8c602b433662d505e03876cce1c97a13628e374f1621defa6166487
MD5 1b45702d1cacca249d7492c778a23b87
BLAKE2b-256 dc2adb447200b6af6bf97868553560ad289dc6e410faeeb2a00c841be4e5a873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a6597537153b14e3b1889af3013db31374bb0103af42e8db332fcd015542dee6
MD5 9bfcdd93206e1cf16f49c183cbb7e9db
BLAKE2b-256 ff18dbb5a2c81f9b749d47dd77039a37d5998e6a86696e3ca4cb2c13918b110b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 25668f08106dd522473212a1105ea413b4715d2c225de498c3a0964d79613c37
MD5 68b6d7806fabca6f0b4bbb07222fa949
BLAKE2b-256 02a2c0527f92f9f0fe13e4fc3956c4e4b27e2fbf02c4a04266ad6d61bc1053f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 03f7205bc92e75974287e16525cbf7a888690c68a2ca65fd49be809cf479e0ff
MD5 77340673b5b6c552cd7c5ea233f255f0
BLAKE2b-256 e43517338289536521cf976b06c4398d67c1145a69b16a1f9a76bf777ed71265

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gamsapi-53.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-53.5.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fb80f529f4b60afaf6fe70d3bd942eec75eb5768192172ae3bcc25c60927c90f
MD5 09841fe477654044ac8694815e10647f
BLAKE2b-256 dfcd9059b8d9512e4199416475fbc9569de86dcbce7a4be01c500e0d71bd090a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3082d571ff2b353723e2d84faca49ce89dff9ed5d54455db1540fa0fedccc127
MD5 b31b9af1560fe1fd5fecb13ca625e6ec
BLAKE2b-256 cca1c1652c51f3196f36cdbbf38cbd4036b96fe30ed067489b3245bbe1ae3f57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a31b083f5da193fdf65464c84c841cb0feeec03639ceac5d965fd2707840ebe0
MD5 4a3cc1b978b7e653d4926b57129bf8cc
BLAKE2b-256 f47b8a93319b67bb8d59fa204578117ac444f00b114f5701fbdf667fc0e006a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ddc8df5508ee578eb509f15b3da564b1a60676e2e5292e16c67d977594374380
MD5 f1b719bf01bd927793f4bacd7266bee9
BLAKE2b-256 7eee81230d67ea9a5188f809d89263c30ef6855bb8ecef7324a15df4dc0dff89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gamsapi-53.5.0-cp310-cp310-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5dbd2ce4123de897210a9590739d310293b68242e1ed7690ffdf3144674a445e
MD5 8e3c38df236ad7a7c47122f8acfcce13
BLAKE2b-256 9815ff852e1912cc78633a2effd111083bdba7b8669bc26e5c30489562469e3b

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