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.2rc3.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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-cp314-cp314t-macosx_13_0_arm64.whl (7.7 MB view details)

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3-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.2rc3.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3.tar.gz
Algorithm Hash digest
SHA256 5562c4c768289d86d30987d4482337c7a2cc712e55e80ebb7654dc7dd3c67cfe
MD5 358e9c3817e5cd5f592063bf1b356499
BLAKE2b-256 657cedefefdc333a16c26e74d05f5d7c5222ce27a96e0e3d945dff2a230da8c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4da16cb33f8823c830dab3c0fda6cb8420cc89e5ea3d2c43d0735f9bf2371f0
MD5 b6982f6ab3621a2e5f86d9d681d72d44
BLAKE2b-256 bbab9186774cfa8953746c3fd36709c4c63baf3a175eaa326a9017bf91024750

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3a821bf7321ce8751967f672e8b3bafed753c7691f8741f91ad8e1db4eb2866c
MD5 9305f89ba4c4ee74776472aa75b8df1a
BLAKE2b-256 d9f113e1502a3cb4e52f01fd8c11dd305c079af65a943b4f4be38effb1fcd803

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64228b2023838856dfca4c1d3699aa8f2d5537548fe9ec78d257456748e6db4d
MD5 db23d29c5ac6a79c662114ae6e6c03b4
BLAKE2b-256 0f5b513b4679d3fd3b5bc89586c125a19438c5f72f1b6bf27f6c0fa8e14acf59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2e82f0c02cfccad562c8e8e7ae1462b74906ef120c33e08467990b3913f08fac
MD5 7c0c351b4c1c385c9fed85d5392d246f
BLAKE2b-256 1db1354ec20ff6bbc3cf5678c7961543466c1d68b5cdb137b1960f84bc41235c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 a176d221b9ce644dea328ac9f838eb2ddbc2e1ceea1a4d07810d3ae54cbfe4f9
MD5 6f6531a981f362b026081efa03040e18
BLAKE2b-256 99b55cbd7e58e15ffe45653ed5cce1b31a16860ed2934a8c0eb5542fbf1677db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 ff6a656f151dc31ea017f5cd6484ae34e8cb06c12e33166c5b8a3dc2a10a1b96
MD5 c888b50efea0d31caa7d3cd105f80e18
BLAKE2b-256 d8d46c2df2acf6ff6633dfe9121692a9a876402b57738aea5a42dcfd9d04c980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 94f3bb4e1c55e8cda962c66b640f139630308bd220aad8716fbec884ba1fb100
MD5 741e9ee338514b1d32f2951926c73682
BLAKE2b-256 af1da80b31b9fd92328e5066f8a7c52b813c1db58866959efb61e1c0561908c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2d4b12c2e3314de2e500cb92ba0628acd6d0b31d36e7114910f36471427dba9a
MD5 06eaa39250679ea6d1f447e81d201e89
BLAKE2b-256 6adb2ef86ee9fcf4f807d1cd374aa07f9d2da3c2156f1a3476b2c5bcb3a77c41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebb2b5fbe13bde5002cb8cfa58458578981874b56865de6f91be77e1371b921a
MD5 f252d9d5b100fc4d0f852822c72c89cf
BLAKE2b-256 7a46d21ed4609ddc4d18d87a977d7b878cc9adf3c94b1288f31b7bcffdd12512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2388849cd7f90170504ae456413019fc4104155e65c6af302606f667ef4fdb0e
MD5 5cb5496d09fe3668b473fb5dd9a0e839
BLAKE2b-256 c25c26f2bcb498877840d23e6e619aff77b6fb76307a42fc00d81e07a0b88d29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ab04d6c1acc6b38d0f93087ba29e30398039363f5b637eb54359e056660a1312
MD5 23b685b9051c59e5e8d217b69631f980
BLAKE2b-256 63c3ab54002d52c9cd76c96e62694b101cc93ae024984f7be9208802adccfd2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 6d78d953247567b08541dc3ac1a5836b2fe4acb04ae5d956407d282d0608abaf
MD5 c4b18bb5023c8c779445f15cb3eb0746
BLAKE2b-256 d6d18545923a5daf71f8f07becefbcd67b94aa66379a7b786c970532bcf99297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c70359e9396e696627433e54e31005534f1bccc531136b38f0aeda59aa227b79
MD5 2b285e87bd930d671581a5ef2df29a89
BLAKE2b-256 1751686b701501fa8aba1e6eca2c9e19128adad4e118cfd0eebcd71e9460beda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 97d6d56c12efb309caf1522a267ed1e941ba6c09a627b20746142afd461140f2
MD5 bed01259b18603b67100e8594eb5e7f0
BLAKE2b-256 3bd36575e12add85a4ff7ac5090b9ceffe3d5a8546310432b6b67a15944cbe72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e75e620bba2787c61ae73de53a235b59b7eac066a57af41f3a1c51596554615
MD5 5065a085caf50bfa32f7441fbb49f856
BLAKE2b-256 d84db131ed17374d51fcf0556857c68d64933b9b0ec89b2c28c75e48ddb65a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 abaadf240ed2a950bb93231ce39eefa8dde0f2610bb4f9fa194f4fab2bebe008
MD5 224f00a24f2498391253c507f63c4140
BLAKE2b-256 db477a9084ed1ce9d44382bbcb25e9e2705e11e3af9c833833bcc6f4803d93f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e1f9df7d679b5fd1fd892b185a0d767ee4b12dd41b892ffba3a7b58f6141075e
MD5 b6714da89e35475f54ea553d2d2f5506
BLAKE2b-256 f0ade3ef224ddc9768e66475b55cc8dd80ba2090789d41c28a9267f4927368ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.2rc3-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 82e77069b341923220a352b91830fc51d369e2f7253c2d0498cde95a2b24ccac
MD5 ef5373bf234c7ed5f9f6dc9627f2cd8f
BLAKE2b-256 a713d62dbb7b5a8adef26e015da8d2057af02e85842533d06cbfca50324284a1

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