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 `

For standard (non-administrative) users:

`bash > pip install lingo_api --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-20.0.0-cp310-cp310-win_amd64.whl (19.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

lingo_api-20.0.0-cp310-cp310-win32.whl (18.9 kB view details)

Uploaded CPython 3.10 Windows x86

lingo_api-20.0.0-cp39-cp39-win_amd64.whl (19.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

lingo_api-20.0.0-cp39-cp39-win32.whl (18.9 kB view details)

Uploaded CPython 3.9 Windows x86

lingo_api-20.0.0-cp38-cp38-win_amd64.whl (19.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

lingo_api-20.0.0-cp38-cp38-win32.whl (18.9 kB view details)

Uploaded CPython 3.8 Windows x86

lingo_api-20.0.0-cp37-cp37m-win_amd64.whl (19.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

lingo_api-20.0.0-cp37-cp37m-win32.whl (18.9 kB view details)

Uploaded CPython 3.7m Windows x86

File details

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

File metadata

File hashes

Hashes for lingo_api-20.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5a8a3269388ecef31debac3d663d06615f40c6bdf28d0d895a20f390d85c93e8
MD5 62699d31b8a8a328ec86c83a34a302bd
BLAKE2b-256 3f5eeaaf9cc493abf3a841c454bb1b0a8f32796e6ad5d397cfa831b17f40f4f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lingo_api-20.0.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 18.9 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-20.0.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e34e076754f4dd6d923e1292e65cf76d71875ef402b36120667a701dc616c367
MD5 2b82650147d478273dc8cb97d9934260
BLAKE2b-256 0ab46b9593a89d86971e52daf1b82ec7a1e22ce3f638098f8c8c09a6c0b54ef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lingo_api-20.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 50055afd64025440a188dce669453f44bd1098468ea2d9dca6fa82de1c430b5a
MD5 3a543b6f4a5479fbd4771f317fd0b158
BLAKE2b-256 a1db77056ca342749996c197b6d423f5603c2085fc2286d9b72e675db4da875d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lingo_api-20.0.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 18.9 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-20.0.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ef3dfae8a8b88e88698e64cc29710de42db4a607ca8d2c7263eb814443ceee8b
MD5 e38914c6af924d3078f3d2e249c8ab64
BLAKE2b-256 4aede39d69885b89192c47c488bd53f4ebd74623cabd1de7c6dd8fdc769b354a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lingo_api-20.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 55e54a022552aa06a4271105652d3b44db10a1fd42e2b824134943f47d825f5c
MD5 b28078fbc7367ec695fc16dfd8234238
BLAKE2b-256 77ebd03ac8ecb7eb6f28cf6e835c33d239b932f98ebf833340ea304708267c7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lingo_api-20.0.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 18.9 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-20.0.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f6ff0fd70fe0fd35c66aa4b68ca3b703242b0d8c4a0e102ca511a453681ddb8c
MD5 3ccbd650c6390dd95daa6deee10ef94e
BLAKE2b-256 5351d441bfb94e99f700e6e39370b9a0eaa16a1790a57d5519138d40ecef0b59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lingo_api-20.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2be8a4de73bfa8585fad5c8218210ba91cfce6c660432110efd62ffda4f2716c
MD5 38e8fcc98ef73b56bd75c9570cf1eb7d
BLAKE2b-256 0a2b95fe660a8645967bec447f1bb76995a5d820c9dc4b260f5e4ae190ed1c42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lingo_api-20.0.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 18.9 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-20.0.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 5e151adf4c739fb65079843c55885dabf3020957f7e585be2a7b890b3348829e
MD5 cdb6036b7299cb4d8efb53bcceaa8f29
BLAKE2b-256 0263c182f4724be05c45d7b4821a68ffd09a21a875737615d5b7e1391872afa6

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