Skip to main content
Pre-release

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

passagemath: Combinatorial matrix recognition

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.10.x series is adding support for Python 3.15.

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}}}

Metadata

Release files for passagemath-cmr 10.8.16rc0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for passagemath-cmr 10.8.16rc0
File Actions
passagemath_cmr-10.8.16rc0-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details for passagemath_cmr-10.8.16rc0-cp314-cp314t-win_arm64.whl
passagemath_cmr-10.8.16rc0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for passagemath_cmr-10.8.16rc0-cp314-cp314t-win_amd64.whl
passagemath_cmr-10.8.16rc0-cp314-cp314-win_arm64.whl CPython 3.14 CPython 3.14 Windows ARM64 Details for passagemath_cmr-10.8.16rc0-cp314-cp314-win_arm64.whl
passagemath_cmr-10.8.16rc0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for passagemath_cmr-10.8.16rc0-cp314-cp314-win_amd64.whl
passagemath_cmr-10.8.16rc0-cp313-cp313-win_arm64.whl CPython 3.13 CPython 3.13 Windows ARM64 Details for passagemath_cmr-10.8.16rc0-cp313-cp313-win_arm64.whl
passagemath_cmr-10.8.16rc0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for passagemath_cmr-10.8.16rc0-cp313-cp313-win_amd64.whl
passagemath_cmr-10.8.16rc0-cp312-cp312-win_arm64.whl CPython 3.12 CPython 3.12 Windows ARM64 Details for passagemath_cmr-10.8.16rc0-cp312-cp312-win_arm64.whl
passagemath_cmr-10.8.16rc0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for passagemath_cmr-10.8.16rc0-cp312-cp312-win_amd64.whl
passagemath_cmr-10.8.16rc0-cp311-cp311-win_arm64.whl CPython 3.11 CPython 3.11 Windows ARM64 Details for passagemath_cmr-10.8.16rc0-cp311-cp311-win_arm64.whl
passagemath_cmr-10.8.16rc0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for passagemath_cmr-10.8.16rc0-cp311-cp311-win_amd64.whl

Total release size: 26.0 MB

Release files / passagemath_cmr-10.8.16rc0-cp314-cp314t-win_arm64.whl

Download URL passagemath_cmr-10.8.16rc0-cp314-cp314t-win_arm64.whl
Size 2.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
e73b9cccd7d073632943dadc3dcf74726b769929fc64855f2be5fee321ff471e
BLAKE2b-256 checksum
How to use checksums
05134ae5264649db3a0f55627f1367673398ec46efe64828aff90bc5fb2c143c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp314-cp314t-win_amd64.whl

Download URL passagemath_cmr-10.8.16rc0-cp314-cp314t-win_amd64.whl
Size 3.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
763d07b09ed83d80cfa08b8ccd984fcf7986806924e6ff28ce16e61f7e03448a
BLAKE2b-256 checksum
How to use checksums
cbbb9ab438bda6eb967b5b89ad1e27ed68823eea88431bbcccd24448071f2cf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp314-cp314-win_arm64.whl

Download URL passagemath_cmr-10.8.16rc0-cp314-cp314-win_arm64.whl
Size 2.2 MB
Tags CPython 3.14 Windows ARM64
SHA-256 checksum
How to use checksums
a8c97bb8a9b380503c81332f5b05a7d1917d42d0e9c96cabc2cd418cc6d55f0e
BLAKE2b-256 checksum
How to use checksums
823e475a377188d9812c6302823d6a574e124127173932a9fe6f61fb219b4d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp314-cp314-win_amd64.whl

Download URL passagemath_cmr-10.8.16rc0-cp314-cp314-win_amd64.whl
Size 3.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
f3b0f1756ef77d89f7eec602ac75b65f6eca5b81daeb646a938ecbafe6335a87
BLAKE2b-256 checksum
How to use checksums
6cdd3a90ba05497fdb5603da04b5aaf1a2bb123b306ba432ed4c6fc0d9099cae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp313-cp313-win_arm64.whl

Download URL passagemath_cmr-10.8.16rc0-cp313-cp313-win_arm64.whl
Size 2.1 MB
Tags CPython 3.13 Windows ARM64
SHA-256 checksum
How to use checksums
5b6e412560d88e9c69d968e8f62466838fa36866a6c5f288c30d15db23accb51
BLAKE2b-256 checksum
How to use checksums
420bb3aea35ec95c9dd6a7ce478992f2ae1485c4665414a82b05c23b7bd1dc8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp313-cp313-win_amd64.whl

Download URL passagemath_cmr-10.8.16rc0-cp313-cp313-win_amd64.whl
Size 3.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
78479eb4d16e6dd833caa91b7a297d9de430bf786b15f520980c8a4dc0e765fa
BLAKE2b-256 checksum
How to use checksums
8f39e09cae3fa949e89f2cd3518661eab041273876b55f5d329ae125ed1ea144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp312-cp312-win_arm64.whl

Download URL passagemath_cmr-10.8.16rc0-cp312-cp312-win_arm64.whl
Size 2.1 MB
Tags CPython 3.12 Windows ARM64
SHA-256 checksum
How to use checksums
9a1f4a8cfe1d5b6d7ec72d9464ad4bd9ade141f605154297b086b702c2aad341
BLAKE2b-256 checksum
How to use checksums
1646cddcdef53ad32eb745a9fbed2a2de6fb5b7b50af19815a6095e81d104338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp312-cp312-win_amd64.whl

Download URL passagemath_cmr-10.8.16rc0-cp312-cp312-win_amd64.whl
Size 3.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
3b808c26be3396158fda7fdbbc39f850949027d8100e7028fcc231cdac44c9cc
BLAKE2b-256 checksum
How to use checksums
86157037c2282982df4e4be6c8ae8da173b1c8ab3899eaa888552a54a7f7b388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp311-cp311-win_arm64.whl

Download URL passagemath_cmr-10.8.16rc0-cp311-cp311-win_arm64.whl
Size 2.1 MB
Tags CPython 3.11 Windows ARM64
SHA-256 checksum
How to use checksums
3527796ded805737be8135a5c0bfc3afeefcc5eba1ff7700c73de5807ae3597e
BLAKE2b-256 checksum
How to use checksums
cfd3759f6bc4e437d124b81dcc74ca0a3d0fc46f0c8fe95c76b5dd146fcf3676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / passagemath_cmr-10.8.16rc0-cp311-cp311-win_amd64.whl

Download URL passagemath_cmr-10.8.16rc0-cp311-cp311-win_amd64.whl
Size 3.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
73107b60dd942e82db9ef2a84386bee3a54d8a57442bb0f7375c00feaa8703c5
BLAKE2b-256 checksum
How to use checksums
d38049910e72b8fe8c4c5bef4d91a5295f34bc5460cc8f51e7e41d8e04709355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for passagemath-cmr 10.8.16rc0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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