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.4 targets the LINGO 23.0.160 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 23 on windows 64-bit `dos > setx LINGO64_23_HOME "C:\path\to\LINGO64_23" ` LINGO 23 on windows 32-bit `dos > setx LINGO_23_HOME "C:\path\to\LINGO23" `

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

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

Total release size: 344.6 MB

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

Download URL lingo_api-23.0.4-cp315-cp315-win_amd64.whl
Size 22.3 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
de1a004342d04aaa4d53bcf36d650e10a5831279dad5372aa5891a8632239bfc
BLAKE2b-256 checksum
How to use checksums
5714a7b11d94bbb6f70d9e4e48345a30cab42a391404a1f5402fdfa73817037f
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.4-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.15 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
face83de9e378312d53b08cedbd4acfe82e69b91b8ea6bdc18d330c367c08d3c
BLAKE2b-256 checksum
How to use checksums
7cacdf81ddc0808e309b56095090d856f9da23acbba5ba5488e2ee70d24588a8
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.4-cp314-cp314-win_amd64.whl

Download URL lingo_api-23.0.4-cp314-cp314-win_amd64.whl
Size 22.3 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
e93d87354af9babc35ea2e08e4d89924f89768477b725bbc27298b295f3f2893
BLAKE2b-256 checksum
How to use checksums
57725685b2517ca638009254284beb904c220ac7d4dc04f750b9c98536cc499e
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.4-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.14 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
55e3c88c0d61c966153bab8a8e0d036b3dd675ff888e17928552b8a48ea9b2bb
BLAKE2b-256 checksum
How to use checksums
f8230dbaa1eb5f670b1e49cac2c3febea000e76dc5639a5249eb7294a1c2694b
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.4-cp313-cp313-win_amd64.whl

Download URL lingo_api-23.0.4-cp313-cp313-win_amd64.whl
Size 22.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
de23a9a213771cb003d928a427cbb7aa6d7674b29e3d136a592390c839aeff4d
BLAKE2b-256 checksum
How to use checksums
38f8a0c71a69e459e56775cdda821b92c1e4dff3a017ac99a3989c4c235e8bb5
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.4-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.13 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
b34d8ce275da2e002298ae981017b71a276d47f6a07f1aa4819f15fd7d3fd3cf
BLAKE2b-256 checksum
How to use checksums
2023dfa871b63b69590d29bf05b0fc2a804f13a4d7986a0ffc4c10ea3d2570e7
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.4-cp312-cp312-win_amd64.whl

Download URL lingo_api-23.0.4-cp312-cp312-win_amd64.whl
Size 22.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
812012ff1893ac6d947fb522d1101ea5da0b4e9fea0fb993f5b4e76f27fb8311
BLAKE2b-256 checksum
How to use checksums
cf1d4ebdfa8cac35e1c69c8672abf35db6647558954f47cb8a05c29c0c9a74c4
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.4-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.12 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
df35a1261dac4809c1494f0e8a5260493027be43ba46e2a5dc3fc7129344463f
BLAKE2b-256 checksum
How to use checksums
4241e6e1b9a7435bfc0ac4a4c29e9ded9a485bb30d40557a32944f927421264b
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.4-cp311-cp311-win_amd64.whl

Download URL lingo_api-23.0.4-cp311-cp311-win_amd64.whl
Size 21.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
75923c75d9013a40407a7f26fc096c56f6d83410a26466013596fc5f231f000e
BLAKE2b-256 checksum
How to use checksums
d5ca993e1e14387a684de21fee6b6e73cbbc7a2184e4e4db22b482791c6b8ad0
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.4-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.11 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
22178fdb68a54a35f501bc6709ffa47eb1d4f634f5a0062e7e2deac15c8b9b0a
BLAKE2b-256 checksum
How to use checksums
1f960218d032ad85457ef1ac27f3f23f7fe442a59a163488f44c241cc7770a2a
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.4-cp310-cp310-win_amd64.whl

Download URL lingo_api-23.0.4-cp310-cp310-win_amd64.whl
Size 22.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
da1e9f9628db6c68c039d6bfa0c86af17179c65c3ebe0252d431dfbf767c17cf
BLAKE2b-256 checksum
How to use checksums
0e312bb45ce4e5903e1eb61ee3576ea3fe0fa7b5bb84aaddebbaaa0e6b7e39f7
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.4-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.10 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
0b4ffc576fc0284e97880a9cb2ef46a95a31f33bbae0dc9ce31a036a8d943c39
BLAKE2b-256 checksum
How to use checksums
310808ba1c22c0683351379007c0dd9e7e933406cad9d00c831065c70bb66754
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.4-cp39-cp39-win_amd64.whl

Download URL lingo_api-23.0.4-cp39-cp39-win_amd64.whl
Size 22.0 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
1b3fa76c6d272443b284692db03cb333f0c2dcca0729393dcbb8684c488d73e9
BLAKE2b-256 checksum
How to use checksums
e4683ef82d5ce46c363d51183faf037d03b638acdfa84466538663004b53fefc
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.4-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.4-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl
Size 49.2 MB
Tags CPython 3.9 Linux glibc 2.31+ x86-64 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f2e444520e3cf4679b31aa43a28f6815101cda456eeb9970003f99da56d6de2c
BLAKE2b-256 checksum
How to use checksums
3c8cd250373d382536157edff2d7a2c2573652da500a35a321a4e27297591c38
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.4

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