Kiwisolver

1.5.0 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

A basic example demonstrating how to set up and solve a constraint system using Kiwisolver.

import os
from kiwisolver import Solver

solver = Solver()
# Define variables and constraints here
solver.update()
# Solve the system
solution = solver.solve()
print(solution)

view raw JSON →