CFFI-based Python bindings to the clingo Answer Set Programming (ASP) solver. Version 5.8.0, released 2024-04-06. Cadence: irregular, roughly annual.
pip install clingoVerified import paths — ran on the pinned version, not inferred.
Basic ASP solving: add rules, ground, and iterate over stable models.
Use the context manager: `with ctl.solve(yield_=True) as handle:` instead of `result = ctl.solve()`.
After the `with` block, use `handle.get()` to get satisfiability (e.g., `print(handle.get().satisfiable)`).
Replace `ctl.load('file.lp')` with `with open('file.lp') as f: ctl.add('base', [], f.read()); ctl.ground([('base', [])])`.Always use `with ctl.solve(yield_=True) as handle: for model in handle: print(model)`.
Install via conda: `conda install -c potassco clingo`, or install from source with proper dependencies.
Use `#const` directives, or ground the program properly, or avoid arithmetic on variables without domain bounds.
No dependency data recorded yet.