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.1 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 21 For administrative users: ` $ export LINGO64_21_HOME="/opt/lingo21" ` For standard (non-administrative) users: ` $ export LINGO64_21_HOME="~/lingo21" `

LINGO 20 For administrative users: ` $ export LINGO64_20_HOME="/opt/lingo20" ` For standard (non-administrative) users: ` $ export LINGO64_20_HOME="~/lingo20" `

To have this variable set automatically, add the above line 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.1

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.1
File Actions
lingo_api-23.0.1-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for lingo_api-23.0.1-cp315-cp315-win_amd64.whl
lingo_api-23.0.1-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.34+ x86-64, Linux glibc 2.31+ x86-64 Details for lingo_api-23.0.1-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for lingo_api-23.0.1-cp314-cp314-win_amd64.whl
lingo_api-23.0.1-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.1-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lingo_api-23.0.1-cp313-cp313-win_amd64.whl
lingo_api-23.0.1-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.31+ x86-64, Linux glibc 2.34+ x86-64 Details for lingo_api-23.0.1-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for lingo_api-23.0.1-cp312-cp312-win_amd64.whl
lingo_api-23.0.1-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.31+ x86-64, Linux glibc 2.34+ x86-64 Details for lingo_api-23.0.1-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for lingo_api-23.0.1-cp311-cp311-win_amd64.whl
lingo_api-23.0.1-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.1-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for lingo_api-23.0.1-cp310-cp310-win_amd64.whl
lingo_api-23.0.1-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.1-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
lingo_api-23.0.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for lingo_api-23.0.1-cp39-cp39-win_amd64.whl
lingo_api-23.0.1-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.1-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Total release size: 263.9 MB

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

Download URL lingo_api-23.0.1-cp315-cp315-win_amd64.whl
Size 20.4 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
ee0dc2e9c34c9c93bd8d457c710e24dd5240f3323438f0e189df26ba3aef7f24
BLAKE2b-256 checksum
How to use checksums
b5150b77bee8a9373f53a60b6fd771f3e500c89eb1dc4de34a7178d8a0535e43
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.1-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
8d83aaa8afec625b54242c51dfb158317262c80f078317adebe0f3316f8101ee
BLAKE2b-256 checksum
How to use checksums
873f2ed07791a588ed174646fd297aee1c86f458274cc27d346261ffff04f77c
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.1-cp314-cp314-win_amd64.whl

Download URL lingo_api-23.0.1-cp314-cp314-win_amd64.whl
Size 20.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
482dec663902a3971b3c65d9b3bc7369c3b65eb6ba54a2a6f75bcf9b9a524698
BLAKE2b-256 checksum
How to use checksums
049510adbb8f06d43a2103837df00f6efd88fc56497f5790dc795aebca09c31c
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.1-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
d43c550321be5f7d5a3f7f4ef739e60d594943c9994819c3e33a8cad775840d0
BLAKE2b-256 checksum
How to use checksums
a6ea5351d4edfa123d9da9e38399fe312422515525c788001c2f7789eb6851d3
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.1-cp313-cp313-win_amd64.whl

Download URL lingo_api-23.0.1-cp313-cp313-win_amd64.whl
Size 20.1 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
40dd8f977b9aa150e77fe08663942f449aa3f7f676481672b12c5a423956f6be
BLAKE2b-256 checksum
How to use checksums
5098f1961b3be639ac6f721f39762f6a966a86d69a00379179ae941863a7aa11
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.1-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
ca0eaac9ab87504f68e2956694f037129bab9b8d02e755a353a7cb5d2fefb105
BLAKE2b-256 checksum
How to use checksums
845d607b5ad3800d596de52eb05c21ebf06b27e328965256f56573e20e6f71de
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.1-cp312-cp312-win_amd64.whl

Download URL lingo_api-23.0.1-cp312-cp312-win_amd64.whl
Size 20.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ea25d0da510dea684b256de91db880853b0029ecb652c34c570ea5e388533bd4
BLAKE2b-256 checksum
How to use checksums
6411b5fbd9e817d04851d01a2598d37522ebc66eda4a69f40cb4c9433106263f
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.1-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
6ff13de97328c7a261d6102d446e7848809fed0a425482e171fc332ec8028e87
BLAKE2b-256 checksum
How to use checksums
a338673d4535115f176ace953fc217e07d95a10e54686933ee72eac6540fad95
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.1-cp311-cp311-win_amd64.whl

Download URL lingo_api-23.0.1-cp311-cp311-win_amd64.whl
Size 20.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3b7585bc7b3645a40c20643130f7d19f3c1a77c373c1ac3cba88f8406ecfe79f
BLAKE2b-256 checksum
How to use checksums
9419c311cbd9632fbac9f2b03bf4001420632ff5c481fd23bf0a93f571a96674
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.1-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
3d912b6158bc676ce676b5a2f19719847a038029bcc9c7c5d80c2c439faba184
BLAKE2b-256 checksum
How to use checksums
407563b04a4548ff4ab103aaa3ea5c7467d3059632528ee5ea9300e78992f977
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.1-cp310-cp310-win_amd64.whl

Download URL lingo_api-23.0.1-cp310-cp310-win_amd64.whl
Size 20.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
8b86a8ae73b280eb53a93a1c7c7361c609da8c9133e384a7e3f75e548e42d0ca
BLAKE2b-256 checksum
How to use checksums
2d908ad629c1b33771c25d3a3b1b65c2a764a5e81508e252b91b1f3cb0a6705e
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.1-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
700519919504dc039bfc04687d1a09c9bb0a5083fa47aca7e217573306c5e8ed
BLAKE2b-256 checksum
How to use checksums
52db2a5e149b993ae759bb6f602b5f104d0fbddae35c2e65f731af7a1f4cc86d
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.1-cp39-cp39-win_amd64.whl

Download URL lingo_api-23.0.1-cp39-cp39-win_amd64.whl
Size 20.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
17798e6abba27b07db740302153f2754cab120b440e658882430ea2b57922dff
BLAKE2b-256 checksum
How to use checksums
c6f1f407a905968a9ac51ad7fb0a6499e41441de9a7e3e4dfd2762ca5d8dcb4f
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.1-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.1-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
d817a1e714d5894a74031376ea916dc4e247b55ca530346bc2a7587138c0db84
BLAKE2b-256 checksum
How to use checksums
ed2ba30aeaf8ecb3dc9a1578226d311227d564296d0486f7fd6561cd98ef9714
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.1

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