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

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

Built distributions (wheels)

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

Total release size: 39.5 MB

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

Download URL clingo_funasp-6.0.0.post22.tar.gz
Size 9.1 MB
Tags Source
SHA-256 checksum
How to use checksums
e405eddf07783796adc7b6dcdff1279c20d14bb20dbd3d16010b83c39b0f8c4a
BLAKE2b-256 checksum
How to use checksums
7decb6ee30e4c92b10605fb1f0a84009507c028e2b1a968707bd639545de1858
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-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
6966e5dee419ea33d3ccaa9b180828a7f46f94612a723685294cfe7e2daebb9c
BLAKE2b-256 checksum
How to use checksums
3c90a2c866d394f13cb1afe8076dc25d424055112db683a1ac77e762f232a1a0
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-cp311-abi3-win_amd64.whl
Size 2.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5eb9569d0e7f664ae0b71a0dc4c870c87a4459298a010e65dc2c279dab4dde26
BLAKE2b-256 checksum
How to use checksums
3663da5cdcc97e2ce467a6ded8bbc66501bb5cdef46b9270ccf23fd2f8c1eff4
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-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
95734b7b9ea47310c8ce6413384f57b3bb98f107fd27811d7d7e55ecd387d1f6
BLAKE2b-256 checksum
How to use checksums
492603e26caf50a4323d6d3889a8f0da180bd296f88dbcdca1bf59e8b2d07f2a
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-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
79773e205022521862897db88d18eae296e532091700436628c3dab404b0a1d7
BLAKE2b-256 checksum
How to use checksums
350c93f3d525b4654f0f582e9ecf6bde2f030e32f681848fd5e8f9b6472df9ae
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-cp311-abi3-manylinux_2_34_ppc64le.whl
Size 4.5 MB
Tags CPython 3.11 Linux glibc 2.34+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
ba1bed0fcae2899dd61f842c13d44f619622beec5f2d372231006df2923088bb
BLAKE2b-256 checksum
How to use checksums
008f099e1b2cbb6495fe749332c7c6dc9050c8207bc311db9a96ecef4ce98678
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-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
37776596227cad43d6c9eb8f5f1aed0d6be32ff3321c95582686b48b88083b67
BLAKE2b-256 checksum
How to use checksums
708003de80b9d8e5603dd91f44c29cd27a060c0821b4e8cf0075a593cbb295eb
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-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
7a75823550ecfaf2fc0589accea207ff87caa3862921cb346a2d790480a82717
BLAKE2b-256 checksum
How to use checksums
1e8928054b0347214b2424d7db6a812b8b60c9a1155415d4e056e2caeb269067
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 25, 2026.

Transparency log

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

Download URL clingo_funasp-6.0.0.post22-cp311-abi3-macosx_14_0_arm64.whl
Size 2.7 MB
Tags CPython 3.11 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
31d217a26dd0c1ca2f6c421f05392052363dc46b20ea471911ae9310b9975eff
BLAKE2b-256 checksum
How to use checksums
859c46452f3d223a345884e2caaa23218e69c6c2ade68e6195b21be63ffb0caf
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 25, 2026.

Transparency log

Security for clingo-funasp 6.0.0.post22

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.post22.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 25, 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