Skip to main content

passagemath: Lattice points in polyhedra with LattE integrale and 4ti2

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 source distribution passagemath-latte-4ti2 provides an interface to LattE integrale (for the problems of counting lattice points in and integration over convex polytopes) and 4ti2 (for algebraic, geometric and combinatorial problems on linear spaces).

What is included

Examples

Using LattE integrale and 4ti2 programs on the command line:

$ pipx run --pip-args="--prefer-binary" --spec "passagemath-latte-4ti2" sage -sh -c 'ppi 5'
...
### This makes 47 PPI up to sign
### Writing data file ppi5.gra and matrix file ppi5.mat done.

Finding the installation location of a LattE integrale or 4ti2 program in Python:

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

In [1]: from sage.features.latte import Latte_count

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

In [3]: from sage.features.four_ti_2 import FourTi2Executable

In [4]: FourTi2Executable('ppi').absolute_filename()
Out[2]: '/Users/mkoeppe/.local/pipx/.cache/2dc147a5e4863b4/lib/python3.11/site-packages/sage_wheels/bin/ppi'

Using the low-level Python interfaces:

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

In [1]: from sage.interfaces.latte import count

In [2]: cdd_Hrep = 'H-representation\nbegin\n 6 4 rational\n 2 -1 0 0\n 2 0 -1 0\n 2 0 0 -1\n 2 1 0 0\n 2 0 0 1\n 2 0 1 0\nend\n'

In [3]: count(cdd_Hrep, cdd=True)
Out[3]: 125

Use with sage.geometry.polyhedron:

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

In [1]: from passagemath_polyhedra import *

In [2]: P = Polyhedron(vertices=[[1,0,0], [0,0,1], [-1,1,1], [-1,2,0]])

In [3]: P.volume(measure='induced_lattice', engine='latte')
Out[3]: 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passagemath_latte_4ti2-10.8.3rc3.tar.gz (15.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_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.12+macOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.12+macOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_x86_64.whl (62.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_aarch64.whl (61.0 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (64.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (63.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.11macOS 13.0+ x86-64

passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.11macOS 13.0+ ARM64

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3.tar.gz
Algorithm Hash digest
SHA256 1be30976c6c12a93c749014879caf7d14d6406ad9f603f1164ebe29f959a444e
MD5 a9f5e702fe46447eb63d95bb1c0931d7
BLAKE2b-256 87515a0d55a643b0a1c1c524ad31ac0a3f813ef8d9a95a00f06ac90712945e64

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 905af0d080fc552170b845490446c6fdcb3f16b0a3d39301540a949bc197aeff
MD5 80d8a5876200ac0e09e9312aec4c5274
BLAKE2b-256 4e45db899ea8ab5a29b51f26e067e13b883b47cf805ff50a1db994b4077d85e1

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 13fb6421b172bb6723c4ac4bcb09d52a1d9a475b5cb889c046d6e1d3fd526d12
MD5 7820c8926a991541882541102872ed07
BLAKE2b-256 1a48fb00c6a6d3829a7710df4c43d396c63603c608fc59cd5e81ef040b5b2c13

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 22f3813954b0280dd0eaa8bb6f5adca5d508b895bde67397bb61aba60e759456
MD5 fb62c4ad8d8099804d4fd9ae1a5408af
BLAKE2b-256 39ccfe4fda941a3987b9abca1b32a1463ee06718b98887d6b566ffbbd2b83dc1

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8cea3b0db0cd3dfd1d33e5b9de49c1c97a4c407d5a2e16eb4e9ead204960d3f6
MD5 5482f61bd042a85c1b8114111c28c9aa
BLAKE2b-256 cceb34053a6d1a36c8554da5e292ea1cd0689c25fb95c14ca24b1d10cebb7dfc

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 36f0c08a35e6b06fbd2732a7a880b531eeb571e662fef49626625b36520bf822
MD5 6be87da874561d8f1614bf245fc4e61f
BLAKE2b-256 808f6ff4c5e3aafe74145ba26e937b7d0b1e6dc9fc9e013979d5402efe15c782

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 73e81afa2358409969b3df94acd5e4c9e86f4326ddf46d6981f5f3f6b1a6edb1
MD5 e43a70a7a3682d8807663721bbdf9049
BLAKE2b-256 4bb1f51bc0d8e73175345e9bcf2f1113624d71331759edbd883c9f56f77184d8

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1007051d326287356f0990e87f0b115c70af992148475dc0acaf3a0ea3d134fc
MD5 4b201c8272a2ecf5f73bcd40f0e947c8
BLAKE2b-256 d07e5de488d95e8df37a5475b0151c33351b549dbec1c6f099bf86de37572d0d

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d30777caa51ad98e7e5b649a8d8bd7d58f3b83d48c3726a5d936e83d1d53ab48
MD5 6cf974bfa60c4f2fb9329ca9ff1b887b
BLAKE2b-256 a28d38e6edee542dd8b762c214948b58d7ab981a108db42fd7113851356947bb

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0fc26d9b57501abb9fe25766e3f012e2bba6f908414cd3a6480a9f51ad70d2eb
MD5 6746271862b945ee6dcb21724be0eea3
BLAKE2b-256 d62564df1d1499510991fb24f97a1d297a23707fd2dc0ba1d8bb72db0cdd4b3b

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a98f05cb135dda722f3e45683b6a92f9df3c17c10158a58b673682ffcc716da
MD5 af68a97ad294e36190fe82f7c1b7a380
BLAKE2b-256 9e149ed4e6b567c77651e69033f66d03bbb6cb80465d94a9b21b53d9e0a7e317

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 44852de3106067a731957620ff6fe4616a444cf65a4157970dfdaefe32cf3213
MD5 382e887d8e89c8d5dcbdbb16ff08235d
BLAKE2b-256 c504660cea09eeb6ffccd081e5abe8c614037d09ed5e9719a618cca321039632

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 2232759c14280cedf59d257a49a79b8d536eb6b2707c017951e2f110feb38f2b
MD5 798794a8a24c2917b3cdf2403b513d40
BLAKE2b-256 f9c665d9d25d45c6b53e057c29fe910c8627393a239b6696a3799d7d30db3378

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5eb5cd507387c2de4767aae5f7c9e7dd72ccc6cbaa0a4e85cc9bac6fc6e2748a
MD5 3d8c6a7cff33bc3e4d03819e2b087afb
BLAKE2b-256 7065effea674b69359167d688e792cfbac575bc2f10c08bf926e1f76f7d31579

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 bcedb759dc6c76db6f038a99be6a6c61242845d29dfbbc68ab9dbb359c408da5
MD5 721d07dd77f9f88ac94aff953633f47e
BLAKE2b-256 ddeee4acd9459c512e6408b70c2fa3ef3b6ca5a744faaac29edf564447ed4709

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5dfca413fe9429f2bde05a848ad90393ace419c8bd03a837cf830170ab4c9c6d
MD5 930e473123f02c67f1a221286c5bfdad
BLAKE2b-256 3f4021ddb793917e084e05e7651b56f13f304ee8842b4e98f08dec63a0c75bce

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c60dd2c79909e1131e8b79685454dd7e60deb9a0738b044078ba429e806bad7f
MD5 4be29873bdd9309a968b6c40826fbad6
BLAKE2b-256 275b2575a6999730e981950fc095b9c21e6db66e708a796788d7f56418a5a278

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 f238ed1b6d58f473cb0f0a864f118643d9461c8300ed499f3218c726ff0bcf75
MD5 5dd6babb4361efae529a836d6761990c
BLAKE2b-256 1468fe1533d3ce3901d9fe7ea861143cf14e18e9d40ebfb28c12e0d4264e1704

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.3rc3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 9a208241e301e219bbd25cec8e76c59a6c66c77e9b0918d205690c5771b6fad9
MD5 63afe0a45db0595560f898e7bbd41ba8
BLAKE2b-256 6c144fd48f5106f21b9722e63afb8b0d959a6a7b09ecad1a2dbcc82d627dcf15

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