$npx skillfedfor your agent

pycosat

bindings to picosat (a SAT solver)

With conditionsPyPI UtilitiesReleased Oct 2023241.6K downloads / moMITSource build

Decision gist · record as of 2026-08-14

sdist only — pycosat-0.6.6.tar.gz · builds from source
v0.6.6 · released 2023-10-03

Yes, if you need a lightweight SAT solver integrated directly into Python and are willing to compile a C extension. The package is mature, actively maintained, permissively licensed, and has no known vulnerabilities. High install friction due to compilation is the main trade-off; avoid it if you prefer pure-Python dependencies or already have a preferred SAT solver.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a C compiler and build tools to compile the C extension during installation.
  • The picosat source is bundled, but compilation is necessary.
  • High install friction: the package requires compilation from source (C extension).

License · maintenance · safety

MIT (permissive) — MIT license is permissive and places no significant restrictions on use, modification, or redistribution in commercial or private projects.

last release 2023-10-03 (1046 days) · last repo commit 2026-07-13 · 194 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 241,612 downloads/mo, #8,873 on PyPI

Verify before relying

import pycosat
cnf = [[1, -5, 4], [-1, 5, 3, 4], [-3, -4]]
solution = pycosat.solve(cnf)
print(solution)  # [1, -2, -3, -4, 5]

# Or iterate over all solutions
for sol in pycosat.itersolve(cnf):
    print(sol)
  • Whether the package is actively maintained or in maintenance-only mode given the two-year gap since the last release.
  • Performance characteristics compared to other SAT solvers for large-scale problems.
  • Whether propagation limits and verbosity options are sufficient for typical use cases.
Same gist for agents: .md · .json

What it is and what it does

pycosat wraps PicoSAT, a mature C-based SAT solver, into Python bindings that run at the C level. When you import pycosat, the solver becomes part of your Python process, avoiding subprocess overhead. The package includes the picosat source code (from picosat-965.tar.gz) so no external installation is needed, but compilation during install is required.

You represent constraint problems as clauses—lists of integers where the sign indicates negation and the absolute value identifies a variable. The main API consists of `solve()`, which returns a single satisfying assignment or "UNSAT"/"UNKNOWN", and `itersolve()`, which yields all solutions as an iterator. Both support propagation limits, variable counts, and verbosity control. This makes it suitable for problems like configuration validation, logic puzzles, and constraint-based reasoning where you need to find or enumerate satisfying assignments.

Use it for

  • Solve constraint satisfaction problems like Sudoku or logic puzzles by encoding them as CNF clauses and finding valid variable assignments.
  • Enumerate all possible solutions to a satisfiability problem using itersolve() to explore solution spaces efficiently.
  • Validate software configurations or dependency constraints by encoding them as logical clauses and checking satisfiability.
  • Build automated reasoning or planning systems that need to find variable assignments satisfying a set of logical constraints.
  • Prototype SAT-based algorithms without the overhead of calling an external solver process.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need a lightweight SAT solver integrated directly into Python and are willing to compile a C extension.

The package is mature, actively maintained, permissively licensed, and has no known vulnerabilities. High install friction due to compilation is the main trade-off; avoid it if you prefer pure-Python dependencies or already have a preferred SAT solver.

Install

pycosat on PyPI

Before you install

High install friction: the package requires compilation from source (C extension). Maintenance is active with recent commits, but the latest release is over two years old, which may indicate a stable but not actively developed state.

Requires a C compiler and build tools to compile the C extension during installation. The picosat source is bundled, but compilation is necessary.

License in practice

MIT license is permissive and places no significant restrictions on use, modification, or redistribution in commercial or private projects.

Quickstart

import pycosat
cnf = [[1, -5, 4], [-1, 5, 3, 4], [-3, -4]]
solution = pycosat.solve(cnf)
print(solution)  # [1, -2, -3, -4, 5]

# Or iterate over all solutions
for sol in pycosat.itersolve(cnf):
    print(sol)

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode given the two-year gap since the last release.
  • Performance characteristics compared to other SAT solvers for large-scale problems.
  • Whether propagation limits and verbosity options are sufficient for typical use cases.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceActively maintained 1,046 days since the last release
Last repo commit
First released
Downloads241,612 / month, #8,873 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 6 - MatureIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: CProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Utilities

Evidence: pycosat-0.6.6.tar.gz

Tags

Capabilities
SAT solver pythonboolean satisfiability solverconstraint satisfaction pythonpicosat bindingsCNF formula solverlogic puzzle solver
Topics
sat-solverconstraint-satisfactionc-extension

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “picosat bindings”

  • pycosatProvides efficient Python bindings to PicoSAT, a C-based Boolean…
  • PyQt5-sipPyQt5-sip provides the runtime support module for PyQt5 bindings,…
  • PyGObjectPyGObject provides Python bindings for GObject-based libraries such…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also python-sat · simplesat · python-constraint · PyBoolector · cvc5 · trianglesolver · clingo · str2bool · z3-solver · paretoset