Skip to main content

passagemath: Interface to the SAT solver glucose

Project description

passagemath is open source mathematical software in Python, released under the GNU General Public Licence GPLv2+.

It is a fork of SageMath, which has been developed 2005-2026 under the motto “Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, and MATLAB”.

The passagemath fork uses the motto “Creating a Free Passage Between the Scientific Python Ecosystem and Mathematical Software Communities.” It was created in October 2024 with the following goals:

Moreover, the passagemath project:

  • provides a stable, frequently updated version of the Sage distribution,

  • integrates additional mathematical software, notably Macaulay2, a full set of GAP packages, and the Combinatorial Matrix Recognition library,

  • curates a library of Sage user packages.

Full documentation is available online.

passagemath attempts to support and provides binary wheels suitable for all major Linux distributions and recent versions of macOS.

Binary wheels for native Windows (x86_64, ARM) are are available for a subset of the passagemath distributions. Use of the full functionality of passagemath on Windows currently requires the use of Windows Subsystem for Linux (WSL) or virtualization.

The supported Python versions in the passagemath-10.8.x series are 3.11.x-3.14.x; the passagemath-10.6.x series (EOL 2026-10) still supports Python 3.10.x.

About this pip-installable distribution package

This pip-installable distribution passagemath-glucose provides an interface to the SAT solver glucose.

What is included

  • Binary wheels on PyPI contain prebuilt copies of glucose executables.

Examples

Using glucose programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-glucose" sage -sh -c glucose

Finding the installation location of a glucose program:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-glucose[test]" ipython

In [1]: from sage.features.sat import Glucose

In [2]: Glucose().absolute_filename()
Out[2]: '.../bin/glucose'

Use with sage.sat:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-glucose[test]" ipython

In [1]: from passagemath_glucose import *

In [2]: from sage.sat.solvers.dimacs import Glucose

In [3]: solver = Glucose(); solver.add_clause((1,2)); solver.add_clause((-1,2)); solver.add_clause((1,-2))

In [4]: solver()
Out[4]: (None, True, True)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_x86_64.whl (235.7 kB view details)

Uploaded CPython 3.14tmacOS 13.0+ x86-64

passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_arm64.whl (220.7 kB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_x86_64.whl (235.7 kB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_arm64.whl (220.3 kB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_x86_64.whl (235.0 kB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_arm64.whl (219.7 kB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 b61c7f447f104797ef6e363cc100f32c26aff064bb446c2128af15a6919bd5e8
MD5 1b065759a24fd1787dc72cb963dd5e99
BLAKE2b-256 7ec59b1a219a19101a0e2e4a638086a49e278bfee6750976ea301bca8690fde1

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 20de2a02e8765223553816b4429be7572956652c71601f46e3d8182f80216fcb
MD5 decc3753e3213aac4751cf407fd57a85
BLAKE2b-256 01abcc58e7dc76a12d825b582c5973533e477356fcad0e1fcf44642301c388e4

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 077937817c58f12826a41dda014dfe3308ad51a800720797b8a09b5e8332d2b1
MD5 c82d95740e18c7e0c797fe1dcb61cb60
BLAKE2b-256 295d8dac3c24de4121e15b6208aab699da9497db2e3a42559b78753736e5fbe4

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bd34abc001d2c59151bbbf63b9dd1693c30e2b8746db6dac5bf1abf51b24dc55
MD5 ba70e801c84ce3fbe082109c18ce0b7e
BLAKE2b-256 f0b0ee0aafc630132fc5fff68b9479b80238ad88a31ee062842e57bf1bbac5a3

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 34e5a9ff292bf80bd8bf740f7e330069c325f4230b9ff9fc06ac333e5296357d
MD5 f50e736a913d9633fb163e6be49c5ddc
BLAKE2b-256 cf3e66473efba16f084bd9428dc93da9a6833ecf8e760f115b5c9e6575bfb752

See more details on using hashes here.

File details

Details for the file passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_glucose-10.8.5rc1-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 dab29d4e1f8a4b2bc65cfcace2697910a761e2775d97cc9d3ad4d95016ca7597
MD5 60a380d27fa26dc3b7e0320ec766caa4
BLAKE2b-256 fc545cc07fbfec9d236c4d7173d28f5210f470f1e6a6a564daf9e082f547b78e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page