Python interface to LINGO API
Project description
# The Python Interface to LINGO.
This package requires Lingo and a valid license key. Please refer to [Lingo user manual](https://lindo.com/downloads/PDF/LINGO.pdf) for installation instructions, and to learn more about the Lingo modeling language.
## Installation
This python package can be installed with pip
For administrative users:
`bash > pip install lingo_api==19.0 `
For standard (non-administrative) users:
`bash > pip install lingo_api==19.0 --user `
## Testing
A quick way to test the installation is to run `bash > python -m lingo_test `
You can also try out the samples by ` > python examples/CHESS/chess.py `
## Possible errors due to misconfiguration
You may get the following error if your LINGO_19_HOME environment variable is not set up.
` Error: Environment variable LINGO_19_HOME should be set `
To fix the problem follow these steps
### Using Windows On the command line for windows 64 `dos > setx LINGO_19_HOME "C:\LINGO64_19" ` ### Using Linux On the command line
For administrative users: ` $ export LINGO_19_HOME="/opt/lingo19" ` For standard (non-administrative) users: ` $ export LINGO_19_HOME="~/opt/lingo19" ` To have this variable set automatically, add the above line to your ~/.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 you 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-19.0.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 16.7 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 | f19f040c3eec3e8c0fdd136e6f328e797b734fc453972e9737193031ab06ecaf |
|
MD5 | d180e1f70a25221f5307c75996e70472 |
|
BLAKE2b-256 | ab88d5bcba10e06d599d796537781190f85ac2c614b9b1a505de1cd5c94dc789 |
File details
Details for the file lingo_api-19.0.2-cp310-cp310-win32.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp310-cp310-win32.whl
- Upload date:
- Size: 16.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 | e1bb9eae8c27f2928f14c68e0f75c91ac94ab2942acd8925542b0dfed63eb560 |
|
MD5 | b6f5dea0120c2f0e122054a8dcd07abf |
|
BLAKE2b-256 | bf884ce6d239ed389a60236662cd2c2302aab627d06fa740f6f9449ac18fa85b |
File details
Details for the file lingo_api-19.0.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 16.7 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 | 7010a4d66cad13a3e789d23ca2f7cd38f085644ff174d68f00dd6f5a6d403b13 |
|
MD5 | 0ca33bbd1311c4d07574e0bf7368486c |
|
BLAKE2b-256 | b01fe6247411ef6e0036415380fab69c7494aaced1bc84f27909d376ad51a896 |
File details
Details for the file lingo_api-19.0.2-cp39-cp39-win32.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp39-cp39-win32.whl
- Upload date:
- Size: 16.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 | ad2f89b7a6c7b7e645388e30903f951ee8195bed78a602b57aef42d8260c1d04 |
|
MD5 | 6459e6f38560ef7ab177cbb8f107f407 |
|
BLAKE2b-256 | 1bef97b337d3a3d4ed5ddfe3267961ae0089810d1345fbfc6c41aea5bd4fa41a |
File details
Details for the file lingo_api-19.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 16.7 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 | 23159a19d2a54552729936612297aa929a94cc68b3c7b3fadda2908e4e755376 |
|
MD5 | 7d2fb50b791467c399bdfd049c7d5bba |
|
BLAKE2b-256 | 698614a906a36dbc5b7178b830f84b6b2d187c2986b995c80943742ea59e12fa |
File details
Details for the file lingo_api-19.0.2-cp38-cp38-win32.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp38-cp38-win32.whl
- Upload date:
- Size: 16.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 | 474a6c5028fbaeaa8fe0312c107be32b46a990b5c66f7429ec36839d2d2ed605 |
|
MD5 | 97ce953670637b6dc33d9baa70cc219a |
|
BLAKE2b-256 | b69518d21b4c6bd42c343607ea041a6ae40766a17a68213a95a3c7cb1979a2d6 |
File details
Details for the file lingo_api-19.0.2-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 16.6 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 | 18de3edf429764b0513d5acb03b13ca686217fcb3774509989119ee25cf18e8d |
|
MD5 | 814fefe901ea761c6f264253c482caac |
|
BLAKE2b-256 | d9ace26132943e8db92ddd4e2d5d525609cea25046ed7f0700d114a867450966 |
File details
Details for the file lingo_api-19.0.2-cp37-cp37m-win32.whl
.
File metadata
- Download URL: lingo_api-19.0.2-cp37-cp37m-win32.whl
- Upload date:
- Size: 16.0 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 | 94e1040455a195ce78d8f3ea8cfb631e379141c62ccde22da47d3fd54bc67b39 |
|
MD5 | efc25e142ee4d1e2e845b143f09944bb |
|
BLAKE2b-256 | a06c59750b019ff922893bdf6a0b2f866b9e41cf1512bea054d600d3040f3a93 |