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.0 requires LINGO 23 and Python 3.8 or newer. Python 3.7 is no longer supported. The current build matrices cover Python 3.8 through 3.13; Python 3.14 and 3.15 have not yet been validated.

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

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.0
File
lingo_api-23.0.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
lingo_api-23.0.0-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
lingo_api-23.0.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
lingo_api-23.0.0-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

Total release size: 263.9 MB

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

Download URL lingo_api-23.0.0-cp315-cp315-win_amd64.whl
Size 20.3 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
b0a6784f3208ab0892a3827e2cf30385a293926dcfdeabca8ac580edddb6fb28
BLAKE2b-256 checksum
How to use checksums
2a137f616698b944f38a2357f5579e77df1ef74ea378e61bf26834122b61ceae
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.0-cp315-cp315-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
b501a974964b3060c22d327848faa0397a485542b13c1859872ca7a75019a71d
BLAKE2b-256 checksum
How to use checksums
3bc625eb5e4971325185af32776b173ea6dc9c1b912f9117fc4ecea4efd5954c
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.0-cp314-cp314-win_amd64.whl

Download URL lingo_api-23.0.0-cp314-cp314-win_amd64.whl
Size 20.3 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
ae8431f80b84d2a02b3f1c14494cdb358a8970ef636f7f57ec9c25dc7205ac4c
BLAKE2b-256 checksum
How to use checksums
e318dc592db20fba5c9a8b188b92f04d9d8b15077cdbdcd8cb2f42b1bdc304bb
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.0-cp314-cp314-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
6c260f7fc91c44d606f3c4f0b96b9eaa2f695e028fe938652762da386c42dd9d
BLAKE2b-256 checksum
How to use checksums
10ac8f683e2b81b461d29af02b48275fbcc54ed133aabd295686ea26f183d979
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.0-cp313-cp313-win_amd64.whl

Download URL lingo_api-23.0.0-cp313-cp313-win_amd64.whl
Size 20.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
0efc106b0f2b840a24e1900f266e8b827bc4c115670fc6a3088696eba8856e63
BLAKE2b-256 checksum
How to use checksums
4c2ece72e8756e528e0a40a2ad02e5429b24bcc6313ec5074637759023b3e044
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.0-cp313-cp313-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
999613f001d5a5dcbe9be77b10c3d51d4f117c8fbc7e34d983df5cfe402f2e2a
BLAKE2b-256 checksum
How to use checksums
628c6d6061e64c676f91a7eb2df999b82f1bddf340d366fb5a8306e6a46bc57e
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.0-cp312-cp312-win_amd64.whl

Download URL lingo_api-23.0.0-cp312-cp312-win_amd64.whl
Size 20.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
4f60758342cb1bfedba0a39b8c2f018e273466503bec8fdb14e9b9f439d5d493
BLAKE2b-256 checksum
How to use checksums
8bb4f6260c939e1dde28f0780a1e5be5a1aac35b5860764416bb0326ef04ec4c
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.0-cp312-cp312-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
cf83c4292d4e37608c98f5686885695ca683d8b3cbc2326ffdf9738ce52c7f88
BLAKE2b-256 checksum
How to use checksums
06d35cf3ebc7404a7b13ac14938f29b9ff965d675f72f3c3be3593527ae80baf
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.0-cp311-cp311-win_amd64.whl

Download URL lingo_api-23.0.0-cp311-cp311-win_amd64.whl
Size 19.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8be8cbb215edaebbb5b4a5a815dbf8bf3896fa76df5bfa650aa747ed1db72543
BLAKE2b-256 checksum
How to use checksums
46fe7a35723df78368bf0ca965e7dbe7e6ca5a470e8efac0c649225a73b547f9
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.0-cp311-cp311-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
8c242a2770e7bbf0b07bad1796a2cdd73291d61919f397885a71c1b0bb50806a
BLAKE2b-256 checksum
How to use checksums
48000f00a58f4619e48b7cf787d1444b79317510105e7cddce3f89bf7103bcdd
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.0-cp310-cp310-win_amd64.whl

Download URL lingo_api-23.0.0-cp310-cp310-win_amd64.whl
Size 20.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
2734cdbef6f123c818c5f4ca7010138c28e0007e5d5e7c20360b33dc45a668a5
BLAKE2b-256 checksum
How to use checksums
cf75725879e532f4c4dae2a7fa9f61979c9888cd72be7f55932c28672ec2c598
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.0-cp310-cp310-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
4b13179986dd96dc1b8142f364c8098e77d04b4c8ef2aeeef79b029f5dd62218
BLAKE2b-256 checksum
How to use checksums
e499227f01a5354244cda25521cc395b677da87f2ef227dbdbda790295600756
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.0-cp39-cp39-win_amd64.whl

Download URL lingo_api-23.0.0-cp39-cp39-win_amd64.whl
Size 19.9 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
092cfaf8305806a2c5f7e65d100c44add05f99948c236afc879b2a5e75983aff
BLAKE2b-256 checksum
How to use checksums
9b9f4f309a07dbbf2c905cbbc48f4a224b39984fdcccf72b3f11563cb1da9a3f
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.0-cp39-cp39-manylinux_2_31_x86_64.manylinux_2_34_x86_64.whl

Download URL lingo_api-23.0.0-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
2be7b7cf584867b64a0a03fddd81793b97b51fbba63c6897efabaea3fa7ed5ac
BLAKE2b-256 checksum
How to use checksums
6c597eee057e46a321df87664b1aa27686afa6bdfacc5fc8482714fa2ea090e0
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.0

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