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-2025 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:

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) 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.6.x series are 3.10.x-3.14.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.1a3.tar.gz (5.3 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.1a3-cp314-cp314t-macosx_13_0_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ x86-64

passagemath_topcom-10.8.1a3-cp314-cp314t-macosx_13_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_x86_64.whl (15.8 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file passagemath_topcom-10.8.1a3.tar.gz.

File metadata

  • Download URL: passagemath_topcom-10.8.1a3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for passagemath_topcom-10.8.1a3.tar.gz
Algorithm Hash digest
SHA256 099a447e5917f7dd244c382b5c091a6cf9606b9c4e277163965c01ff3cafe570
MD5 c22508d543738aee7b2b2e28a9f3308f
BLAKE2b-256 d215ae286d6c8f29014c9b0aa959fda8d69b5c0d5004ffe34b65ea48827a4255

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp314-cp314t-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 d5f0ebcde6de87082f85fdb3f2cc0ec3b0b5b001ea75f4198c7866f35134bc2b
MD5 985e9db68bfeb9a81d5918806b82e743
BLAKE2b-256 d65dacb32ed2d46f62bb820d98063ff53c8f96b4f4f60531d4505daeff72b492

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 13426ecc1fac78fca7d26a299de924defdd7c05ffe875f708bda7a1c67957512
MD5 8a58487d64c1108028656d3f110acb91
BLAKE2b-256 72fba801f612df8ab164834e8672bc0ac91d257f090eb6b791257526305ceb1c

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 1affcc78c230e4a169d641f9dab23d4e28302b94409932eb04faaa60979a3d0b
MD5 ecaaeaa4ea5859f3d25d42b32718e4c1
BLAKE2b-256 c5ab8e2e495f261bfb4444e49a3238051be36d1fd7c6f3211c9e2748c9490fcf

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 4edafaf5b2e197834a426b7701ee3054eb6873f81a6a24594698922a3b20b01d
MD5 57c62b560bcf02c26ae065f00a2499b4
BLAKE2b-256 58c57775bdae337817550043968a70653f3732b67ba619191e43af05be350495

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f3cbca7550b05251f372087f1f17d82fdeaf8f67628ca62a8eba326aeb2c9a37
MD5 7205e9722dbed4786b4c60012470aa41
BLAKE2b-256 17201b9edc61f07dd401bfaa85c1af32cb06d963e153e925e4a14fa1023337fa

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.8.1a3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 38f9f7ab3c2ba9236b65a581956b2b4534a196f8df6225684ce575418310ad3b
MD5 fb1164ef299e88512a9b28c6f2e61d3c
BLAKE2b-256 a1db097e0c473882031f33e7cea5860dab34bc04fcf78f154a2edc7e7d4d900c

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