Skip to main content

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. It is assumed 64-bit Lingo 19 is installed on host system.

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 ` > cd examples/CHESS > python chess.py `

## Possible errors due to misconfiguration

You may get the following error if your LINGO64_19_HOME environment variable is not set up.

` Error: Environment variable LINGO64_19_HOME should be set `

To fix the problem follow these steps

### Using Windows On the command line for windows 64 `dos > setx LINGO64_19_HOME "C:\LINGO64_19" ` ### Using Linux On the command line

For administrative users: ` $ export LINGO64_19_HOME="/opt/lingo19" ` For standard (non-administrative) users: ` $ export LINGO64_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

lingo_api-19.0.5-cp310-cp310-win_amd64.whl (19.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

lingo_api-19.0.5-cp310-cp310-win32.whl (18.5 kB view details)

Uploaded CPython 3.10 Windows x86

lingo_api-19.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

lingo_api-19.0.5-cp39-cp39-win_amd64.whl (19.2 kB view details)

Uploaded CPython 3.9 Windows x86-64

lingo_api-19.0.5-cp39-cp39-win32.whl (18.5 kB view details)

Uploaded CPython 3.9 Windows x86

lingo_api-19.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

lingo_api-19.0.5-cp38-cp38-win_amd64.whl (19.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

lingo_api-19.0.5-cp38-cp38-win32.whl (18.5 kB view details)

Uploaded CPython 3.8 Windows x86

lingo_api-19.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

lingo_api-19.0.5-cp37-cp37m-win_amd64.whl (19.2 kB view details)

Uploaded CPython 3.7m Windows x86-64

lingo_api-19.0.5-cp37-cp37m-win32.whl (18.4 kB view details)

Uploaded CPython 3.7m Windows x86

lingo_api-19.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file lingo_api-19.0.5-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5202037bcb172cbd4a4a8868d539b19402d7155bd45cb3055fd4b340f8a02765
MD5 4a5171687687d98df823cf0925468700
BLAKE2b-256 ff20a429333f2e86b7cd5908617e7483bea10f8161216198cd8cc971394331d4

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp310-cp310-win32.whl.

File metadata

  • Download URL: lingo_api-19.0.5-cp310-cp310-win32.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for lingo_api-19.0.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 71d742c48b76c7ae7da708947dbed2c12468b39029e9641b071ed1b9b1b7afc8
MD5 7385aaefaa2ca2fc0997cf1bf6eba46f
BLAKE2b-256 d9b0ddaf4027954da1ac5fb742096318f065d023c6b219cf835e5a0ff9a528f9

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c0a9ff3b82f538bcd23cbb57624d0d1cf64ed3ccf9811b0a206ff037ab561c1
MD5 8c4e801bccd162e1d51fb2c398a10ce4
BLAKE2b-256 7c3cba288ff4ea9ad0dc39d020be2bf34429e4ba7655807b84a1716503d05b7d

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 03b7d2f987888421359c828143131ee0a32c7c337dbc15813c537fc9955da83a
MD5 3b6afab0e0c5c7241d636eaa5d17e022
BLAKE2b-256 b7afd48f47afa1f806d48767398427c668c774c78fd0560796c77ffe2918a8b0

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp39-cp39-win32.whl.

File metadata

  • Download URL: lingo_api-19.0.5-cp39-cp39-win32.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for lingo_api-19.0.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 04deb82427ad5fbc36ee8fae5e8d1554fa08e9b7b1c0e54577e13106f41902c1
MD5 35d16d3c18b7a46f6276d9365ce9882e
BLAKE2b-256 d54fa914e1c0cd0fc3d1502e416459abf8faa56d46cf100a76a012e849d47478

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 71d59c650d2d69da076ab3eb2beee829b8cf3808a44542d5d47823b169833ce5
MD5 a13e5dfd86bffda21cb75cecdb9d8482
BLAKE2b-256 128c594ad6e02ffabc3697183726bdbc65c12548fb1c09d12b63bb84007ea7db

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6208dbbba488e1e1e96dd1a2a41581f8086986206358250f68ead5278e160a88
MD5 b09854f7c22c9265ae6b5455d134ac39
BLAKE2b-256 9f9bb72eb838997c84efc22b29973875f43eb0e78d988dff74565ca28765f966

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp38-cp38-win32.whl.

File metadata

  • Download URL: lingo_api-19.0.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for lingo_api-19.0.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 88572d363e17547e06f6fe15370d011d5e15a5f1582d3dbbeb22a8ae5041cbf3
MD5 dd2e3a068a704b4975b1905dd31f066c
BLAKE2b-256 41f0353e0460f9f84178a79b5acf7b07ed77c72b7f7da8753ef8450cf4a5f5da

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4dfb6d7c2afbc4b7e4f9759e617f250a8fb0c4947c5115b8f181bbce2972b41f
MD5 9782c931a4e5224ac855480799d1f2f1
BLAKE2b-256 30e0e50ae7c51e734d05b9b01e32d4f36cc8f38b7719252c07e8cf49e9a64da0

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 196eea9cf41743dbb44c78103bb0cf194b36ab9ac0b7c64e0b65b1be5597b7c3
MD5 4c39b3d1af229411f5bd942002a6aa6e
BLAKE2b-256 60f2372a806902a22f7177bff7a0a099fc38e6650110fb2be76a255f716e7eb2

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp37-cp37m-win32.whl.

File metadata

  • Download URL: lingo_api-19.0.5-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.9

File hashes

Hashes for lingo_api-19.0.5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 60586974d31adc21d611cdf0a1a0aa7e3f1f7a7d817aca389b1e964d3e9f8a16
MD5 481422151047df1667ce1bbd50fb5c31
BLAKE2b-256 900c538f598948559c83aeeaa63f4ec8001236c1e2fc756bd6fed8f2cb60002d

See more details on using hashes here.

File details

Details for the file lingo_api-19.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lingo_api-19.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba5a4af21582e811db63502b5d3522f29c452656781f7f4131229ad8f3e4242b
MD5 c24618690eb0bcfe672a870cc3903271
BLAKE2b-256 f41a0cc4de0351c52b5a761ded3de3453f1c0b9d1dc95764025d33a8d1d413d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page