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

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.post23
File Size Uploaded Provenance Actions
clingo_funasp-6.0.0.post23.tar.gz 9.2 MB With provenance Details for clingo_funasp-6.0.0.post23.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for clingo-funasp 6.0.0.post23
File Actions
clingo_funasp-6.0.0.post23-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.post23-pp312-pypy312_pp80-manylinux_2_34_x86_64.whl
clingo_funasp-6.0.0.post23-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for clingo_funasp-6.0.0.post23-cp311-abi3-win_amd64.whl
clingo_funasp-6.0.0.post23-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.post23-cp311-abi3-musllinux_1_2_x86_64.whl
clingo_funasp-6.0.0.post23-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.post23-cp311-abi3-manylinux_2_34_x86_64.whl
clingo_funasp-6.0.0.post23-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.post23-cp311-abi3-manylinux_2_34_ppc64le.whl
clingo_funasp-6.0.0.post23-cp311-abi3-manylinux_2_34_aarch64.whl CPython 3.11 abi3 Linux glibc 2.34+ ARM64 Details for clingo_funasp-6.0.0.post23-cp311-abi3-manylinux_2_34_aarch64.whl
clingo_funasp-6.0.0.post23-cp311-abi3-macosx_14_0_x86_64.whl CPython 3.11 abi3 macOS 14.0+ x86-64 Details for clingo_funasp-6.0.0.post23-cp311-abi3-macosx_14_0_x86_64.whl
clingo_funasp-6.0.0.post23-cp311-abi3-macosx_14_0_arm64.whl CPython 3.11 abi3 macOS 14.0+ ARM64 Details for clingo_funasp-6.0.0.post23-cp311-abi3-macosx_14_0_arm64.whl

Total release size: 39.7 MB

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

Download URL clingo_funasp-6.0.0.post23.tar.gz
Size 9.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1ae88d61729a514838212c779befe70c6d38dcf68ef90e57e0aa01e34961e2b2
BLAKE2b-256 checksum
How to use checksums
4eb7946687e83eb225349549753e18cc16249b73a26263123777d48e5e6a4e5c
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
8f88c1375cf50c3a03716b1b50c484d158296b1b722cc4cbbbb250b1a0597026
BLAKE2b-256 checksum
How to use checksums
219b2bd71971b897fbf19bad988926e98863241d373d2b5219447184d5d905a6
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-cp311-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c5debaa582c6e5c02c674b27f2d5eddc90107164944d32f996934d5b9486506f
BLAKE2b-256 checksum
How to use checksums
f89135bce0050638a123258706c0a1a12b0ae49dee0b40ddf738937fc264e6e0
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
6f5c9478f0cf5aba6fc1d102fab0cfc7c1538d1e39dafbcb6c807a697d6db224
BLAKE2b-256 checksum
How to use checksums
11d478dcf6c78641cc07f1da68b386c9b3ed6ce3176eb840dc4463832e053f01
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
c685b8c663d69a66d288c4d9d0518bd31273de3f9f35c6128a731fc3be6223f2
BLAKE2b-256 checksum
How to use checksums
179ac190fa838cf9c4a56f3e16bc74e588029b3ca348003b262d5863a6d89a13
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
c0709fb38f3246f462bc85cbf0954f1599ce02e4d7a031d9854cd843ab9a0807
BLAKE2b-256 checksum
How to use checksums
4ff1ef1e67aaee4f0bc3d707179b66eeff0c5d97c02f0a2cd00e176467911298
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
fb06d0a2ccdca9fa192268b4ad9346d37068af3572ded065774e1030ff97ab15
BLAKE2b-256 checksum
How to use checksums
eb37db57d9627c7581e649c27418cdac3f0cd24f2c848146f4e6896c0432e8ef
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
4ab34bbcf2a8c9e3753fbad47936651766bc00c7f486605789e19e6941521c37
BLAKE2b-256 checksum
How to use checksums
5d0bca8013dc9693b063bc438c24c4706e893927bce83a1c1422cb91876a8658
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 26, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post23-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
d153b6db7c53928fa628d18cd533e957801a60070b7a055847f73ee0cb4e31e4
BLAKE2b-256 checksum
How to use checksums
0a38e5c678a792824a535c3cf8a382fca7d425269d8361c176aeedd9b313b466
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 26, 2026.

Transparency log

Security for clingo-funasp 6.0.0.post23

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.post23.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 26, 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