Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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-cmr is a small optional distribution for use with passagemath-modules and passagemath-graphs.

It provides a Cython interface to the CMR library, which implements recognition and decomposition algorithms for:

  • Totally Unimodular Matrices

  • Network Matrices

  • Complementary Totally Unimodular Matrices

  • (Strongly) Equimodular and Unimodular Matrices

  • Regular Matroids

  • Graphic / Cographic / Planar Matrices

  • Series-Parallel Matroids

Examples

$ pipx run --spec "passagemath-cmr[test]" ipython

In [1]: from passagemath_cmr import *

In [2]: from sage.matrix.matrix_cmr_sparse import Matrix_cmr_chr_sparse

In [3]: M = Matrix_cmr_chr_sparse(MatrixSpace(ZZ, 3, 3, sparse=True), [[1, 0, 1], [0, 1, 1], [1, 2, 3]]); M
Out[3]:
[1 0 1]
[0 1 1]
[1 2 3]

In [4]: M.is_unimodular()
Out[4]: True

In [5]: M.is_strongly_unimodular()
Out[5]: False

Development

$ git clone --origin passagemath https://github.com/passagemath/passagemath.git  # or use your fork
$ cd passagemath
passagemath $ ./bootstrap
passagemath $ source ./.homebrew-build-env         # on macOS when homebrew is in use
passagemath $ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/wsl/lib  # on WSL
passagemath $ export PIP_CONSTRAINT="$(pwd)/constraints_cmr.txt"
passagemath $ export PIP_BUILD_CONSTRAINT="$(pwd)/constraints_cmr.txt"
passagemath $ echo "passagemath-categories @ file://$(pwd)/pkgs/sagemath-categories" >> constraints_cmr.txt
passagemath $ echo "passagemath-modules @ file://$(pwd)/pkgs/sagemath-modules" >> constraints_cmr.txt
passagemath $ python3 -m venv cmr-venv
passagemath $ source cmr-venv/bin/activate
(cmr-venv) passagemath $ pip install -v -e pkgs/sagemath-cmr        \
                                        -e pkgs/sagemath-modules    \
                                        -e pkgs/sagemath-categories

Modularized use:

(cmr-venv) passagemath $ pip install -v passagemath-repl
(cmr-venv) passagemath $ sage
... sage.all is not available ...
sage: from passagemath_modules import *
sage: matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

In plain Python:

(cmr-venv) passagemath $ python3
>>> from passagemath_modules import *
>>> matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

For full functionality of Sage:

(cmr-venv) passagemath $ pip install -v passagemath-standard
(cmr-venv) passagemath $ sage
sage: matroids.Uniform(3, 4)
U(3, 4): Matroid of rank 3 on 4 elements with circuit-closures
{3: {{0, 1, 2, 3}}}

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_cmr-10.8.9rc1-cp314-cp314t-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

passagemath_cmr-10.8.9rc1-cp314-cp314-win_amd64.whl (3.1 MB view details)

Uploaded CPython 3.14Windows x86-64

passagemath_cmr-10.8.9rc1-cp313-cp313-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.13Windows x86-64

passagemath_cmr-10.8.9rc1-cp312-cp312-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.12Windows x86-64

passagemath_cmr-10.8.9rc1-cp311-cp311-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.11Windows x86-64

File details

Details for the file passagemath_cmr-10.8.9rc1-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.9rc1-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 2880a80209d04a62af2799f5049c67a7d9416499f32d07ad97ae07484ee1f5c1
MD5 364e21c7b8912d62a95e973c4d74bcbe
BLAKE2b-256 20cfcec3c6adb7291a5d79e5c2a6023b9cab329cb167b6c3b84cb43f41e0341c

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.9rc1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.9rc1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 552551c360b1eae5cafb8e3968c7175412e62bdb89d542ca707395a8d5ef88cb
MD5 43d923f96f931ddb2168238e525ae832
BLAKE2b-256 f015f4f72095eb6cf35cec5985f78a53c18ef5e2495f7569281d43c6a67d6b01

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.9rc1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.9rc1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4298e74f378ed0fa1ff11415be0761b746a414c7dfbd24da72f1016154546061
MD5 978215aaeed7abd99bc80238811cb339
BLAKE2b-256 6aea9212a3e61846da305494422ee77d7ab0b172e461203476a84cc506e78dc3

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.9rc1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.9rc1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0cf8ef776a86264d65beedba290e3bf2cb7903f048c540dd496401078e6a40e2
MD5 a9892ed237ac37b728be2d359dbb090c
BLAKE2b-256 0c4f90ddfdbfb427ef5aaad3a32f5438d213b789db04c5d40cdc9663385791e7

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.9rc1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.9rc1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 789260f6c8fdd5c3430a620e647adbee8e5c555607d7007ec0abd3bdd5a23deb
MD5 337e80dbef0a686de7e9f1762732ca8d
BLAKE2b-256 53b0fee0f2e52c6fa3e8e02247efafbec9a78fcf02e4ee2979f01581489b3892

See more details on using hashes here.

Release history Release notifications | RSS feed

10.8.10

36 files

10.8.9

36 files

This release

10.8.9rc1 This release

5 files

10.8.8

36 files

10.8.7

36 files

10.8.6

36 files

10.8.5

36 files

10.8.4

41 files

10.8.3

41 files

10.8.2

41 files

10.8.1

41 files

10.6.48

43 files

10.6.47

43 files

10.6.42

43 files

10.6.28

29 files

10.5.49

31 files

10.5.29

11 files

10.5.24

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page