Python interface to LINGO API
Project description
# The Python Interface to LINGO.
This package requires Lingo and a valid license key. Please refer to the [Lingo user manual](https://lindo.com/downloads/PDF/LINGO.pdf) for installation instructions, and to learn more about the Lingo modeling language.
## Installation For LINGO 20
This python package can be installed with pip. It is assumed Lingo 20 is installed on host system.
For administrative users:
`bash > pip install lingo_api `
For standard (non-administrative) users:
`bash > pip install lingo_api --user `
## Installation For LINGO 19
This python package can be installed with pip. It is assumed Lingo 19 is installed on host system.
For administrative users:
`bash > pip install lingo_api==19.0.6 `
For standard (non-administrative) users:
`bash > pip install lingo_api==19.0.6 --user `
## Testing
A quick way to test the installation is to run `bash > python -m lingo_test `
It is also good to test the LINGO API on one of the included examples. ` > cd examples/CHESS > python chess.py `
## Possible errors due to misconfiguration
If the user does not have the correct LINGO environment variable set, they will not be able to load the lingo_api library instead they will receive an error message.
To fix the problem follow these steps
### Using Windows On the command line depending on the users LINGO installation:
LINGO 20 on windows 64-bit `dos > setx LINGO64_20_HOME "C:\path\to\LINGO64_20" ` LINGO 20 on windows 32-bit `dos > setx LINGO_20_HOME "C:\path\to\LINGO20" `
LINGO 19 on windows 64-bit `dos > setx LINGO64_19_HOME "C:\path\to\LINGO64_19" ` LINGO 19 on windows 32-bit `dos > setx LINGO_19_HOME "C:\path\to\LINGO19" `
### Using Linux On the command line depending on the users LINGO installation:
LINGO 20 For administrative users: ` $ export LINGO64_20_HOME="/opt/lingo20" ` For standard (non-administrative) users: ` $ export LINGO64_20_HOME="~/lingo20" `
LINGO 19 ` $ export LINGO64_19_HOME="/opt/lingo19" ` For standard (non-administrative) users: ` $ export LINGO64_19_HOME="~/lingo19" `
To have this variable set automatically, add the above line to the ~/.bashrc or ~/.bash_profile file.
## How to Build Wheel and Install (for package managers)
To build the python package on any operating system first start by creating a whl file. From the top of the lingoapi-python directory run the command.
`bash > python -m build `
If the command is successful a new directory named dist is created in the lingoapi-python directory. The new directory will have two files with extension .whl and .tar.gz. For example, if the LINGO API is built it on Windows using Python 3.10 the new directory will look like this.
`bash ├── dist │ ├── lingo_api-x.y.z-cp310-cp310-win_amd64.whl │ └── lingo-x.y.z.tar.gz `
The package can now be installed locally using the command. `bash > pip install dist/*.whl `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file lingo_api-20.0.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 19.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49d1e7f28fb7c29a6d1f31310fcdeaebd0514d58f548338b3738354d6c8e25eb |
|
MD5 | dfadc49d64d02f4fb0ab9e93cd862e0f |
|
BLAKE2b-256 | b50b51e0a9816757c553ffe4da8252a7eb07e33f9354fd7f280796c463653723 |
File details
Details for the file lingo_api-20.0.2-cp310-cp310-win32.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp310-cp310-win32.whl
- Upload date:
- Size: 19.1 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda071d32dc6b94617d9e149842b3fe8fec04604f357a597f2eeb1d7b317d416 |
|
MD5 | d2f97bb7d03ca84e80c8224ebf011307 |
|
BLAKE2b-256 | cc16379fd109d301d74f4ae4580fb12b426aa1881f68b72363923ee155091299 |
File details
Details for the file lingo_api-20.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae52dff3958a0fd9d9d00f1d77802b65a2cf05f319b1ac7498f604c2a8a67d65 |
|
MD5 | b57d80f87e2d0c777c2b8a492d51b037 |
|
BLAKE2b-256 | e92b817a6d1d6506579ff92b4c9d59f5338a000f2ee7eab26a1ec75a52f8ed58 |
File details
Details for the file lingo_api-20.0.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 19.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b69e30e950677959ab27a24fb76298e19c0c0be34f82cd5c6ea4515be192f7 |
|
MD5 | e67d42b193dba77ea9767ef25cdc7a7f |
|
BLAKE2b-256 | 87d8095c642d990409fe9d6b33d8e9aa967d81c3ecfe9b5800ae2cd26a8d3ca0 |
File details
Details for the file lingo_api-20.0.2-cp39-cp39-win32.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp39-cp39-win32.whl
- Upload date:
- Size: 19.1 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c644fdba160526a5f27286aab71a2522126b435fdb882bac170790f8a8bec4 |
|
MD5 | a23da92c26aae43b33cf991904576c69 |
|
BLAKE2b-256 | e212c7b0537e74e259c1d484f3955c9c30005237a0e41ceb01e398d1d1e62eb9 |
File details
Details for the file lingo_api-20.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bfda052a1435cd5758ccf06df0973007273e6f8454ae6e0a799772a6121f697 |
|
MD5 | c818db02b062b99e91980f1e4a36541e |
|
BLAKE2b-256 | ecec0c1db1ba72917b43d099e12d041c12c562a0a6a0f17e8655e2d8e2b2db9d |
File details
Details for the file lingo_api-20.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 19.9 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d600fd866f023d6fadb9b210f31897bda54e65307d6343bc8d759eef0a7be06a |
|
MD5 | a5ee08a2e9aa18f0738785ab3c90211c |
|
BLAKE2b-256 | c458bf3d9b5d3513c23639dfcc8f7c4d329c50904a3cd989f996103c565ca019 |
File details
Details for the file lingo_api-20.0.2-cp38-cp38-win32.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp38-cp38-win32.whl
- Upload date:
- Size: 19.1 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977db8d3dfa6b77ef34addc476b69f8e84a48a76330c8d00b3791cea7d830e8d |
|
MD5 | 0d396f4b7cb30315e4b3655037739910 |
|
BLAKE2b-256 | 285cce6cb38ec089ca80d36b6694908eaf1ad1250e43477a791ea8200dddc547 |
File details
Details for the file lingo_api-20.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bcaddbb243a87808bb6c086637b4dd86a38fa7887bc062a0b3bb9f45004d7d2 |
|
MD5 | fa5755a159a7659d63b629b05e0cb2ef |
|
BLAKE2b-256 | 2b2cd804367ce11aa7df0a0f833c1553b02ab84b6d5ebbc3e63b6af0d66cea09 |
File details
Details for the file lingo_api-20.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 19.9 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 025018f3d53a5ed167a1d8709d94e4d2ccae300f4b8962c76e503ca0f0364f5c |
|
MD5 | e5205f5e58ed6c724707cb8d50c2f62c |
|
BLAKE2b-256 | ad6830d3751e332dc7070fafadd1b0b8dd6fc81c26784fc0dfdf7f72e8bfac10 |
File details
Details for the file lingo_api-20.0.2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 19.1 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c329e58044554b4950f49934b558aa12a875a59e094e54e64c6191aa351e18f |
|
MD5 | ae1294c723246a08f305656322746de6 |
|
BLAKE2b-256 | 77c2c1d3fb950e224c2ebbaf1c314445490ba37b583ab6322f8dc825114b93f7 |
File details
Details for the file lingo_api-20.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: lingo_api-20.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 23.2 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce3aff1f10097215a21901931bf3e168778ce316a83b70a18cb88bfe6461d91 |
|
MD5 | 179375c1741f8be40dee320bcf7b659e |
|
BLAKE2b-256 | 45016f34b76e2f60be6676466b5e7bbaa6145e904eb5c7426c604783fc013a94 |