Skip to main content

# 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.

## LINGO 23 Release

Package version 23.0.2 targets the LINGO 23.0.155 SDK and requires Python 3.9 or newer. The Windows build matrix covers Python 3.9 through 3.15. Linux builds use the matching LINGO 23 SDK archive and Python matrix configured in the Dockerfile. The Python package version is independent of the native LINGO SDK version.

On 64-bit Windows, set LINGO64_23_HOME to the LINGO 23 installation directory. On Linux, set LINGO_23_HOME to the LINGO 23 installation directory. Use window_build.bat for Windows builds and Dockerfile for Linux builds.

## Installation For LINGO 21

This python package can be installed with pip. It is assumed Lingo 21 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 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==20.0.9 `

For standard (non-administrative) users:

`bash > pip install lingo_api==20.0.9 --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 21 on windows 64-bit `dos > setx LINGO64_21_HOME "C:\path\to\LINGO64_21" ` LINGO 21 on windows 32-bit `dos > setx LINGO_21_HOME "C:\path\to\LINGO21" `

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" `

### Using Linux On the command line depending on the users LINGO installation:

LINGO 23 For standard (non-administrative) users: ` $ export LINGO_23_HOME="$HOME/LINGO64_23" ` For administrative users: ` $ export LINGO_23_HOME="/opt/LINGO64_23" `

If a shared library cannot be loaded, add the LINGO library directory to the loader path: ` $ export LD_LIBRARY_PATH="$LINGO_23_HOME/bin/linux64${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" `

To have these variables set automatically, add the relevant lines 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 `

Metadata

Release files for lingo-api 23.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for lingo-api 23.0.2
File Actions
lingo_api-23.0.2-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for lingo_api-23.0.2-cp315-cp315-win_amd64.whl
lingo_api-23.0.2-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.31+ x86-64, Linux glibc 2.34+ x86-64 Details for lingo_api-23.0.2-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for lingo_api-23.0.2-cp314-cp314-win_amd64.whl
lingo_api-23.0.2-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lingo_api-23.0.2-cp313-cp313-win_amd64.whl
lingo_api-23.0.2-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for lingo_api-23.0.2-cp312-cp312-win_amd64.whl
lingo_api-23.0.2-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for lingo_api-23.0.2-cp311-cp311-win_amd64.whl
lingo_api-23.0.2-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for lingo_api-23.0.2-cp310-cp310-win_amd64.whl
lingo_api-23.0.2-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for lingo_api-23.0.2-cp39-cp39-win_amd64.whl
lingo_api-23.0.2-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.2-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Total release size: 264.0 MB

Release files / lingo_api-23.0.2-cp315-cp315-win_amd64.whl

Download URL lingo_api-23.0.2-cp315-cp315-win_amd64.whl
Size 20.4 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
bd67e392f20249b4d73912aa17dec4d10495b029cf6c397885a3c0e4efb3faa5
BLAKE2b-256 checksum
How to use checksums
34e1a51026dd08009c5dce37eccdd52ce3ac536bd4ef3e37a1144e241b9729fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.15 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
62c452a7908751243f792ee1c5a2a8287eb4f5869080be866dae6cd4dafe12d1
BLAKE2b-256 checksum
How to use checksums
5c76ecc45488d3c82bc0164819eaa6cf27f8fe2762c5d4a024e3747d9e4debd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp314-cp314-win_amd64.whl

Download URL lingo_api-23.0.2-cp314-cp314-win_amd64.whl
Size 20.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
27368712d11affdcd31fadd4b8a7d34ea32cbd92ec78c2e0ddd7c9beae364e13
BLAKE2b-256 checksum
How to use checksums
7b760818549710e32a0379f34b6d8351b83f9c2d466f81a9066db12598c55a77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.14 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
b9c7dc4aa8c565bc2ebd2505bc885b4f527ff39b9544bd0a2dbd359dbf6ad523
BLAKE2b-256 checksum
How to use checksums
98a0404427c787aeee0da9846f7f47f1f6dbc09330d428f09e16ea2b8a496b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp313-cp313-win_amd64.whl

Download URL lingo_api-23.0.2-cp313-cp313-win_amd64.whl
Size 20.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
45aa7f22f30758bcb21aa53bb039c6b0f68e3a591ece8e13af5bb674fd43d319
BLAKE2b-256 checksum
How to use checksums
78b2a517ab98c9e3abdb39969eb5fcce36d2ad0ea73e9cd830c17adbb948f239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.13 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
0b04d53c090252341708d74e1b20ddc46d39907286878335e392a5d11d2de7c9
BLAKE2b-256 checksum
How to use checksums
88603c3cc5a412f769097308119d6ab8d1106e4d0835c25761703cd47d0ef383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp312-cp312-win_amd64.whl

Download URL lingo_api-23.0.2-cp312-cp312-win_amd64.whl
Size 20.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
23386cb09163a34ed6916b14368d1fca70a11d693a955452d35b6405cb65c125
BLAKE2b-256 checksum
How to use checksums
804c62b82d2d6daf42ad84818d2bbb2cb442918b2a05aa27fbda997ff01d2b58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.12 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
eb471e03a569c588573050a80ba127c04969c4d5beb239bad6355a4d0e95c585
BLAKE2b-256 checksum
How to use checksums
fb47dc0fbad640de671c51a1fdf5bb5f313d71d5b067a304f6701dbda920c7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp311-cp311-win_amd64.whl

Download URL lingo_api-23.0.2-cp311-cp311-win_amd64.whl
Size 20.1 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
af6558d9e5a523f0accc98bb8fa4edd07264f0c085ee0fbd1befb59866b7b19e
BLAKE2b-256 checksum
How to use checksums
38522bc6f38fc2a5061a39f424fac426e81c6a79640700eb3d25f265bbad99da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.11 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
4055d63e89bf5bf3dd5214310c59bbc97ebaf72d499f4911b6fbf36d14616228
BLAKE2b-256 checksum
How to use checksums
3af3673eed4c1107ae3dce70ad12799ce7d6326b6522e6e2e6399c613e1a4ddb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp310-cp310-win_amd64.whl

Download URL lingo_api-23.0.2-cp310-cp310-win_amd64.whl
Size 20.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
677d99ea3661182786a96016b3aa3a72d1ef97afa5b8a5ec2d1fff9466776694
BLAKE2b-256 checksum
How to use checksums
f702befd911b96606d81a7f87d0a23c1dea4f9db86ec691341356aa9af1b9862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.10 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
c8092a2f7ca1572407a84c4ddfc6a0b2a781aa3dddbded97c8ca58f8d104f490
BLAKE2b-256 checksum
How to use checksums
a6e0b28c9fbe5be2652294b1edcfc78caff2b0cc05866e36aa1e9066baa9c8bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp39-cp39-win_amd64.whl

Download URL lingo_api-23.0.2-cp39-cp39-win_amd64.whl
Size 20.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
a9a0cf11d05105f73778e566d5ab02b429d99cc6ebb0912dd753a5b8b9076b21
BLAKE2b-256 checksum
How to use checksums
8de3a382bab0378615d09eb3c416b58c53f6cf2a08fd5c32abc483c149f28e2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / lingo_api-23.0.2-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.2-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 37.7 MB
Tags CPython 3.9 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6dddf3364967d576b0a2d5cc13bac8b5fb6a5526ea04794ff4c22dfbbe5237ad
BLAKE2b-256 checksum
How to use checksums
57322e3ec485dda5d2199b1766642b34fcb7903d8bdc6c2b2cc35dd637851c1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for lingo-api 23.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page