Skip to main content

passagemath: Triangulations of point configurations and oriented matroids with TOPCOM

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-topcom provides an interface to TOPCOM, a package for computing triangulations of point configurations and oriented matroids by Jörg Rambau.

What is included

  • Raw access to all executables from Python using sage.features.topcom

  • The binary wheels published on PyPI include a prebuilt copy of TOPCOM.

Examples

Using TOPCOM programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-topcom" sage -sh -c 'cube 4 | points2facets'
Evaluating Commandline Options ...
... done.
16,5:
{
{0,1,2,3,4,5,6,7}
{0,1,2,3,8,9,10,11}
{0,1,4,5,8,9,12,13}
{0,2,4,6,8,10,12,14}
{1,3,5,7,9,11,13,15}
{2,3,6,7,10,11,14,15}
{4,5,6,7,12,13,14,15}
{8,9,10,11,12,13,14,15}
}

Finding the installation location of a TOPCOM program:

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

In [1]: from sage.features.topcom import TOPCOMExecutable

In [2]: TOPCOMExecutable('points2allfinetriangs').absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/cef1668ecbdb8cf/lib/python3.11/site-packages/sage_wheels/bin/points2allfinetriangs'

Using sage.geometry.triangulation.point_configuration:

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

In [1]: from passagemath_topcom import *

In [2]: p = PointConfiguration([[-1,QQ('-5/9')], [0,QQ('10/9')], [1,QQ('-5/9')], [-2,QQ('-10/9')], [0,QQ('20/9')], [2,QQ('-10/9')]])

In [3]: PointConfiguration.set_engine('topcom')

In [4]: p_regular = p.restrict_to_regular_triangulations(True)

In [5]: regular = p_regular.triangulations_list()

In [6]: len(regular)
Out[6]: 16

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 Distribution

passagemath_topcom-10.8.5rc5.tar.gz (5.6 kB view details)

Uploaded Source

Built Distributions

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

passagemath_topcom-10.8.5rc5-cp314-cp314t-macosx_13_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_topcom-10.8.5rc5-cp312-abi3-macosx_13_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

passagemath_topcom-10.8.5rc5-cp311-cp311-macosx_13_0_arm64.whl (14.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file passagemath_topcom-10.8.5rc5.tar.gz.

File metadata

  • Download URL: passagemath_topcom-10.8.5rc5.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for passagemath_topcom-10.8.5rc5.tar.gz
Algorithm Hash digest
SHA256 45634e9f94b16339dc59ce72d37fb8cb737bd92a555c453fd8416ecb0b1371d0
MD5 d6728b63800150b1e1e795da220b5ab3
BLAKE2b-256 f45bf6994c70e270572d84101f0acafaec278101355c281b0738e0811c26e3c8

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.5rc5-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.5rc5-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 d6b7998256a906c180dc03136a29d6d2065d1625bf758f3267db86e047426021
MD5 187367fe5e0f4139e3ca7358b47bd514
BLAKE2b-256 599e7a5fd4603725e4e81d4b7186c316777fa485f8e13d3e5512144bbed4a166

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.5rc5-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.5rc5-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 30bdc8f1ff13c87e0a5170add18c17361498b8a2db8a727a4338fbead0916194
MD5 c659dfdacc04dc7eae791a446dc25144
BLAKE2b-256 fee44b8709820fe83ee216b865e9e7d8355f6142202b60958a149f0bccdd7c29

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.5rc5-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.5rc5-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6a671a805726d34e24c3ca72b4785f421fa83e5b7fa68d6a03c2e53e4632b222
MD5 be990988068478e3966831df2d65b091
BLAKE2b-256 27ea4227ef94f2c017f35614649127066db6ef9707472196d8a9cac3fe6cfc26

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