Python interface to LINDO API
Project description
The Python Interface to LINDO API.
This package requires LINDO API and a valid license key. Please refer to lindoapi/readme.html for LINDO API installation details.
Installation
This python package can be installed with pip
For administrative users:
> pip install lindo
For standard (non-administrative) users:
> pip install lindo --user
Testing
A quick way to test the installation is to run
> python -m lindo_test
You can also try out the samples by
> python samples/lp.py
Possible errors due to misconfiguration
You may get the following error if your LINDOAPI_HOME environment variable is not set up.
Error: Environment variable LINDOAPI_HOME should be set
To fix the problem follow these steps
Using Windows
On the command line
> setx LINDOAPI_HOME "c:/lindoapi"
Using Mac or Linux
On the command line
For administrative users:
$ export LINDOAPI_HOME="/opt/lindoapi"
For standard (non-administrative) users:
$ export LINDOAPI_HOME="~/opt/lindoapi"
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 lindoapi-python directory run the command.
> python -m build
If the command is successful a new directory named dist
is created in the lindoapi-python directory. The new directory will have a two files with extension .whl
and .tar.gz
. For example, if you built it on Mac OS using Python 3.10 the new directory will look like this.
├── dist
│ ├── lindo-x.y.z-cp310-cp310-macosx_10_9_universal2.whl
│ └── lindo-x.y.z.tar.gz
The package can now be installed locally using the command.
> pip install dist/*.whl
Project details
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
Hashes for lindo-13.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44a6a470cc6c1fb7b11b3d54a12ced0ae2a56ef0c1da7d0c22d1ee6a4bd4c3d |
|
MD5 | 52d30aa942b59d1670f12044802e34ba |
|
BLAKE2b-256 | f0557be4b8c55e177740483b76eede8556779eed12424a4c471452da25ad75c8 |
Hashes for lindo-13.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bff70dce563c4a51f382919a86095b8ce75afb24e6e76920df1d0f7ab0d2a06 |
|
MD5 | 32b9e8251047b5572ead663d639f8603 |
|
BLAKE2b-256 | b64aa6f3b1cf908a5590bd453bf31122fe4d492c06e5df13924e54bf1fce394c |
Hashes for lindo-13.0.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 660cdf471492968195601a6a4ed149e6a836193606ea93f6113f2a09787e0d5b |
|
MD5 | aa02f4799b35f26dda5e4ae24fbc4ca7 |
|
BLAKE2b-256 | 57c7842f76547dc64fdffce88878c56be6874be3da4d4d57f775fadd9daf1740 |
Hashes for lindo-13.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12b42f4e5df6d728587849d252846cbfd8aa21d5f11bd2e9be6f49e2ab43368 |
|
MD5 | 6afbba65ae09dfce361bd31d47bb68bc |
|
BLAKE2b-256 | 5e41db1c2c64665e17601ad891e0c6dba899d6dc18ce4681e009d95bed7666ad |
Hashes for lindo-13.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605d370038462cacafddb345247eff40000e3b2a0bfe8111401a1d3b8d43de08 |
|
MD5 | 8f1f875c273764472df34cded6c1fc03 |
|
BLAKE2b-256 | fa13d04849f4e695faafb07172b5bd14ff9c26763799ddfe3c3d80725e4b52a3 |
Hashes for lindo-13.0.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 140605435b17a4a694c3136f6980ef22d0ab60b85bc48bfcbceab6e6c6875271 |
|
MD5 | 4408936c8ba25e2206c05b742fbbb0e9 |
|
BLAKE2b-256 | 937f010189144fda83fc6ec1c66dda0fb0360a1cb7243b42ba4952d6c438ee7b |
Hashes for lindo-13.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c58b2bde82fbcade7f0423400086f427baddacf4a9107a6c312c1a58fe689065 |
|
MD5 | c942e5d884748ca1938751cbdce67fbc |
|
BLAKE2b-256 | f11fbba2eb925cd6d6d7e3826d68f8a9f30e658daefe7472f48bbb9b9c7f10b3 |
Hashes for lindo-13.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58a565125205deed408454674ce209be4a4145d2db46baf8a18537b283b29136 |
|
MD5 | 0fea75765e4159c0b2b7d29138eb505f |
|
BLAKE2b-256 | 30d83b4fb695cbc488c4d9900c0fcb7a91f1b11d8524340e498c58b4f2136545 |
Hashes for lindo-13.0.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4810390100a02a8d3a1992559080ec8b99a745ad1f944c499d7f9cf0657e98fd |
|
MD5 | 1914b1d93d02304d43153d98a33dc0ca |
|
BLAKE2b-256 | 4bdb9450390eee425dd78799511847462ade0f63a84aac02fb4c3cab9609d354 |
Hashes for lindo-13.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f984ead297b0de0adc2bce885667bd915edc99729de79927946684782a017020 |
|
MD5 | 190d905e10eab0aca0cb81968aded69e |
|
BLAKE2b-256 | 91b1edc688b9e07124f358064b8965f890ae5f9bf3c66ad4ab215d5300bd466f |
Hashes for lindo-13.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe40df721a04cbf0486faee3ddd52a7275b54dc2fba85f3400b85cbfcc11b62 |
|
MD5 | c24cfb6d535075064a1000bbb9dc51af |
|
BLAKE2b-256 | e6eb4be450888fe6ab9632f1e3e08562195b0cee0e1a085d863520ba40382e70 |
Hashes for lindo-13.0.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831225ddd9190509055abf81a93be65cc5f753a78bfccd74fd5531a575990af3 |
|
MD5 | e8ff5d0d3b70c594c81df76698a5a178 |
|
BLAKE2b-256 | 3fffcb41ec1dcb031df6d1f1810b92dc8e9311202c5d6ca8aa8a186bd515b82a |