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.11rc2-cp314-cp314t-win_amd64.whl (3.2 MB view details)

Uploaded CPython 3.14tWindows x86-64

passagemath_cmr-10.8.11rc2-cp314-cp314-win_amd64.whl (3.1 MB view details)

Uploaded CPython 3.14Windows x86-64

passagemath_cmr-10.8.11rc2-cp313-cp313-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.13Windows x86-64

passagemath_cmr-10.8.11rc2-cp312-cp312-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.12Windows x86-64

passagemath_cmr-10.8.11rc2-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.11rc2-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.11rc2-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 fd0b3cb86182b2cd05605bb92e53ef37487fd9b7dfaf0a11d62ce6b8ea5840a7
MD5 1336f82f385dc54ff75c9d08f1c07ce0
BLAKE2b-256 db9f9a4d19afd9af5195e3cf50b02b58db63c9e3c6fdf6bfcb323c67bae1ff47

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.11rc2-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.11rc2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ce4f51e2f80bf873a5d0ce3e15d911c51bd95b856836dccd0cf1215ab89a2941
MD5 d4a7331561fa8bee86eb5fe3f6dd075a
BLAKE2b-256 49392121deaa83e982d63b53f68913df55c1a1a4c20751c0e919580a47025d43

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.11rc2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.11rc2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 63844ae3e747fd0528f95e6c1dfc71fc42b42e256fc7b5b9ae393aca20d1c533
MD5 033a3e80509a2fe54646d3160e630e14
BLAKE2b-256 d24a64d15f8191a46b50dbcfdc8579f42300048b25be2256d860d1078fdddc17

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.11rc2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.11rc2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6038efa5cd69800c0bf912070a35e397a8c6222c20d2b0906c3627bdae86729c
MD5 b183d7abd54df1ceb2245cc6a07fa470
BLAKE2b-256 2e655b34f838e99a72fe8eb49242b20cc67685eca69b254dd882233426b02706

See more details on using hashes here.

File details

Details for the file passagemath_cmr-10.8.11rc2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for passagemath_cmr-10.8.11rc2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ede7ed02d7ba208b89562198a66e40e430faf1e5cfe7dd6321dea0289fcd80df
MD5 6cbed281aa06f2eabb2b5a4c6300f886
BLAKE2b-256 af00c34b6957c83d95f9f1d2bb1304f77505f7b7a7033320f183bdf021637b33

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

10.8.11rc2 This release

5 files

10.8.10

36 files

10.8.9

36 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