Skip to main content

⚡ Overview

Clingo is a cross-platform solver for Answer Set Programming (ASP), developed as part of the Potassco project. It runs on Linux, macOS, Windows, and can also be compiled to JavaScript for use in browsers and JavaScript environments.

ASP offers a simple and powerful modeling language for describing combinatorial problems as logic programs. Clingo takes such a logic program and computes answer sets representing solutions to the given problem.

To get started, check out our Getting Started page or try the Online Demo.

📝 Resources

📦 Binary Packages

💚 Conda

Binary packages are available from Anaconda:

# stable
conda install -c potassco -c conda-forge clingo
# development
conda install -c potassco/label/dev-20 -c conda-forge clingo

Packages have to be installed on top of the conda-forge channel. The Miniforge distribution ships a conda version configured to use this channel by default (see Miniforge installation instructions).

🐍 PyPI

Python packages are available from PyPI:

# stable
pip install clingo
# development
pip install --extra-index-url https://test.pypi.org/simple clingo

Development packages are available on the separate package index at Test PyPI.

☁️ Cloudsmith

Packages for Debian and Ubuntu are available on Cloudsmith:

# stable
curl -1sLf 'https://dl.cloudsmith.io/public/potassco/stable/setup.deb.sh' | sudo -E bash
sudo apt update
sudo apt install clingo python3-clingo
# development
curl -1sLf 'https://dl.cloudsmith.io/public/potassco/wip-20/setup.deb.sh' | sudo -E bash
sudo apt update
sudo apt install clingo python3-clingo

Note that only Ubuntu 24.04 and 26.04, and Debian 13 are supported at the moment. For these distributions, only development (wip-20) packages are available at the moment. Newer distributions or additional architectures might be added later if there is demand.

🐧 Ubuntu PPA

For Ubuntu users, a PPA is available for easy installation and updates:

# stable
sudo add-apt-repository ppa:potassco/stable
sudo apt update
sudo apt install clingo python3-clingo
# development
sudo add-apt-repository ppa:potassco/wip-20
sudo apt update
sudo apt install clingo python3-clingo

Note that only Ubuntu 24.04 and 26.04 development versions are supported for now. The packages are more or less the same as the ones for Cloudsmith but built and shipped via Ubuntu's Launchpad.

🛠️ Building the Application

📋 Requirements

  • a C++20 compiler
  • re2c
  • cmake
  • ninja (recommended, optional)
  • python (recommended, optional)

🏗️ Building

The instructions below work for both single-config and multi-config generators. For faster builds, consider using the Ninja generator by adding -G Ninja to the cmake command.

mkdir -p build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

📥 Installation

The install target copies the built files to standard system locations, as determined by GNUInstallDirs.

cmake --build build --config Release --target install

Avoid running the install target as root or administrator; instead, set a local prefix using the CMAKE_INSTALL_PREFIX variable when running cmake. If Python support is important, installing into a virtual environment is a good idea.

🐍 Building the Python Module

It is also possible to just build a Python module for Clingo, which allows you to use Clingo from Python without needing to build the entire application.

📋 Requirements

  • a C++20 compiler
  • python 3.12+
  • pipx (recommended)

🏗️ Building

Assuming pipx is installed, build the Python module with:

pipx run build .

📥 Installation

It is strongly recommended to install the package into a virtual environment to avoid potential conflicts with other packages or system-wide Python installations. To create and activate a virtual environment, you can use the following commands:

python -m venv .venv
source .venv/bin/activate # Unix-based systems
.venv/Scripts/activate    # Windows

After building, install the generated wheel file from the dist folder:

pip install dist/clingo*.whl

Metadata

Release files for clingo-funasp 6.0.0.post24

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

Source distribution (sdist)

Source distribution for clingo-funasp 6.0.0.post24
File Size Uploaded Provenance Actions
clingo_funasp-6.0.0.post24.tar.gz 9.2 MB With provenance Details for clingo_funasp-6.0.0.post24.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for clingo-funasp 6.0.0.post24
File Actions
clingo_funasp-6.0.0.post24-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl PyPy 3.12 PyPy 3.12 8.0 Linux glibc 2.34+ x86-64 Details for clingo_funasp-6.0.0.post24-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-win_amd64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-musllinux_1_2_x86_64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_x86_64.whl CPython 3.11 abi3 Linux glibc 2.34+ x86-64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_x86_64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_ppc64le.whl CPython 3.11 abi3 Linux glibc 2.34+ PowerPC 64-le Details for clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_ppc64le.whl
clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_aarch64.whl CPython 3.11 abi3 Linux glibc 2.34+ ARM64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_aarch64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_x86_64.whl CPython 3.11 abi3 macOS 14.0+ x86-64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_x86_64.whl
clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_arm64.whl CPython 3.11 abi3 macOS 14.0+ ARM64 Details for clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_arm64.whl

Total release size: 39.7 MB

Release files / clingo_funasp-6.0.0.post24.tar.gz

Download URL clingo_funasp-6.0.0.post24.tar.gz
Size 9.2 MB
Tags Source
SHA-256 checksum
How to use checksums
92dc97d4fb7bc102b40c5bdfb0982244261f1258a32bda93051a4cb2ba8dc268
BLAKE2b-256 checksum
How to use checksums
ad1e1e72f1a9f34049a2fba6cbaf4c2811a1330a3c49e075e82df38a59db5c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl

Download URL clingo_funasp-6.0.0.post24-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl
Size 4.1 MB
Tags Linux glibc 2.34+ x86-64 PyPy 3.12 PyPy 3.12 8.0
SHA-256 checksum
How to use checksums
dae38c2b617bb1b8e9517fff12588a29a690ee350cf0bb4a2b16a5b9be37a6f5
BLAKE2b-256 checksum
How to use checksums
efadab6d615c591744bf1b5840a8d1815d96d9e036969392c463d4daa23a3cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-win_amd64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a5367eb3d6479f4a823429f47b4760b8339294a53bc556f0373b2d90d360cd2d
BLAKE2b-256 checksum
How to use checksums
ab519b504fd109444692d20bd9cc701a8a56aaeda4c8d8c95da6a3dcb90f176c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-musllinux_1_2_x86_64.whl
Size 5.3 MB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
60da2423f558a239ac0722cd3a1576613ffc4a1cc734e2c90c5aa3f87adbb716
BLAKE2b-256 checksum
How to use checksums
a73d71e8cd5da35e7accfac03283148207795ed2a44f7c787a315b433a2804f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_x86_64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_x86_64.whl
Size 4.1 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
ab7cf8694a40aa5208a1ce80f931e78e78ffc5f7bb2977b203de357c9bbefe83
BLAKE2b-256 checksum
How to use checksums
c351547cb16cca9c8a3641f0b2a7d25cabdfe646f2374a574b8ad720df367436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_ppc64le.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_ppc64le.whl
Size 4.6 MB
Tags CPython 3.11 Linux glibc 2.34+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
70f3bc2eaf66cbb3e4a297b248969b0a05b42ac2037af72377c4ca4282688112
BLAKE2b-256 checksum
How to use checksums
0923a5d6454796d00056a5dd85aad5bd066049a2650b99be24aed235c2a25cca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_aarch64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-manylinux_2_34_aarch64.whl
Size 3.8 MB
Tags CPython 3.11 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
4fcb78fdb8c0214f476e572ae279da846e0b88cf4654be0096ba5aa9e0bda8f7
BLAKE2b-256 checksum
How to use checksums
4b0d3ebd5266bbb268a273223839b5a98e005c063d997f69f2b7dd84c3723c1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_x86_64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_x86_64.whl
Size 3.0 MB
Tags CPython 3.11 abi3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
ff291b188e0ae65fd400aeec4d091412de8a601d56f48e8a2990ca9bfef157db
BLAKE2b-256 checksum
How to use checksums
7e4062a732de549dfc44fe9330fe7fa06190991aad863935475fe15310ddafd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_arm64.whl

Download URL clingo_funasp-6.0.0.post24-cp311-abi3-macosx_14_0_arm64.whl
Size 2.8 MB
Tags CPython 3.11 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cc02344df9dd26e880d846cfb1ecebb1efee71b14bbbb45253871934811e8208
BLAKE2b-256 checksum
How to use checksums
fd08de811a676f1fef22519acb617974110c8e60b35b7dcace094c6bc2eeb2aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for clingo-funasp 6.0.0.post24

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.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for clingo_funasp-6.0.0.post24.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

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