Kiwisolver
Kiwisolver is a fast implementation of the Cassowary constraint solver, designed to be lightweight and efficient. The current version is 1.5.0, released on March 9, 2026. The library is actively maintained and follows a regular release cadence, with updates approximately every few months.
Warnings
- breaking Kiwisolver requires Python 3.10 or higher.
- gotcha Ensure that the 'cppy' package is installed for Python bindings.
Install
-
pip install kiwisolver
Imports
- Solver
from kiwisolver import Solver
Quickstart
import os from kiwisolver import Solver solver = Solver() # Define variables and constraints here solver.update() # Solve the system solution = solver.solve() print(solution)