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.

For the Linux aarch64 (ARM) platform, some third-party packages are still missing wheels; see ` <https://github.com/passagemath/passagemath?tab=readme-ov-file#full-installation-of-passagemath-from-binary-wheels-on-pypi>`__ for instructions for building them from source.

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.9.x-3.13.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 sage.all__sagemath_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.6.1.tar.gz (4.9 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.6.1-cp313-cp313-macosx_14_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

passagemath_topcom-10.6.1-cp313-cp313-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.13macOS 13.0+ x86-64

passagemath_topcom-10.6.1-cp312-cp312-macosx_14_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

passagemath_topcom-10.6.1-cp312-cp312-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.12macOS 13.0+ x86-64

passagemath_topcom-10.6.1-cp311-cp311-macosx_14_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

passagemath_topcom-10.6.1-cp311-cp311-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_topcom-10.6.1-cp310-cp310-macosx_14_0_arm64.whl (14.6 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

passagemath_topcom-10.6.1-cp310-cp310-macosx_13_0_x86_64.whl (16.5 MB view details)

Uploaded CPython 3.10macOS 13.0+ x86-64

File details

Details for the file passagemath_topcom-10.6.1.tar.gz.

File metadata

  • Download URL: passagemath_topcom-10.6.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for passagemath_topcom-10.6.1.tar.gz
Algorithm Hash digest
SHA256 755d595978ec2def67d6321863f02e5e1f2d500c1bda84a072efca18ba2e74b4
MD5 b7162b2234a0992acda9801fdc43b3d1
BLAKE2b-256 6a6370018b06357d36d37a0c749b57b7de71ce5800dd0ae799660b64377ac470

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dc3b1b1b20e56a176cc438d98667d1da33029d21855f0f45e97cfc6bf1ff9cf7
MD5 b02b2a416a769c87ceb7bf33f69fa776
BLAKE2b-256 c5165851ef37b306ea7bff5da89b85df1eaeb13379df0977ff3a6d1b9f184d24

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp313-cp313-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp313-cp313-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 030051130c646a35175e3ffb9d8574d7be7a59ff31646911f8646e35adc6d017
MD5 51d0353de537dff9262728c3ed461a94
BLAKE2b-256 2c2e8d1053c992803fb733027810e49a6ed76d668583909275e48f9cdcf99b07

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1b21e39d0d1d90f9b43066d5f1138111ca4587e0e8023837f351cdbf6754cf68
MD5 0fb54a1bdf3bd1daebe716c2f1b29888
BLAKE2b-256 92c89aa553219f71487a0e33957cb2e90bca0cb99b74dc228b35763a9aefbf2b

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp312-cp312-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp312-cp312-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 23226cd54e54f78b44ea240154dfde94c89240fdd10d2177f34ecac9722c5d5c
MD5 29579f6fe7b3267a005a7b7636d10630
BLAKE2b-256 5ac19c53d26b993bd66aef39b56c1eadbab2894de31fcc0a43b2f6793a227cf9

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c44c0f1659dd0248e70d08fad2025e44a97084fa4c693421537b7da2614eb751
MD5 28684a803c9fa0861289f44b9e27a841
BLAKE2b-256 5d3848528abc50d7c0f6e96f52efb47c6bd283820c2ca7d5687505338f709c1d

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 005ae75b4785a76d3ad761273dc55e4653e9941b38a324db2d98c0cddf519027
MD5 9f6ac4b55bb84f8ca74760a8bbc2c7aa
BLAKE2b-256 5861afe565ec260a3fac27ce691ef40b7643ef341372b285a40f6385e1481d1b

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 38ee0a7ffca9441561b24068ac1e6223e908bdfbd7a54d2f445142381a6c0312
MD5 22397c34cbf2662578b3979e67ff5936
BLAKE2b-256 ee300001c5cb50d892724ff2f1883fe6e41d97ac45cb13f7cc956f2e57ed62fe

See more details on using hashes here.

File details

Details for the file passagemath_topcom-10.6.1-cp310-cp310-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_topcom-10.6.1-cp310-cp310-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 91dccf6b4d75a84be3dc5b73e89bd675be8c18fb251146f777901ab857f285ba
MD5 372140b639253a48657f8eaf54b8ae07
BLAKE2b-256 c5b1be87714c7950f25df7a73d6521cd322b6510e329c382ca2df17e73e7dc4c

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