Python bindings to PicoSAT, a popular SAT solver written in C. Version 0.6.6 is the latest. The library is mature but receives infrequent updates; it is in maintenance mode.
pip install pycosatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Solve a simple CNF SAT problem using the generator itersolve.
Replace `pycosat.solve(...)` with `next(pycosat.itersolve(...))` for a single solution.
Upgrade to 0.6.4 or later: `pip install --upgrade pycosat`.
Convert your problem to DIMACS CNF (list of lists of non-zero integers, no 0).
Use `next(pycosat.itersolve(cnf))` or `list(pycosat.itersolve(cnf))`.
Upgrade to 0.6.4+ and consider splitting the problem into smaller chunks.
No dependency data recorded yet.