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

Uploaded CPython 3.14tmacOS 13.0+ ARM64

passagemath_latte_4ti2-10.8.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0-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.5rc0.tar.gz.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0.tar.gz
Algorithm Hash digest
SHA256 1d0e9298f59f9aa5b1083db1ebbe1eaafa945ef3878ca9c85d1384ccd3c58157
MD5 8c5c106da220e50153633d7bf8e8da39
BLAKE2b-256 ebbd913cd3ec458242e0069bf6363f81e2d560c9e98dac01b4faa32e9875176b

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b879a8cadd31b155f94694baa4a66bb1f713a9524d05186b2541f097a9b77cce
MD5 3cab3d19caa29835d04b5a5d9fc0d641
BLAKE2b-256 eac02295b478f8d229949865277d12d6a43904453d559db93aec382f3b83a7ca

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d9c5431efbd0ea06cb06b588cd1e10257b82fd745ad6313c5f699ff33987f439
MD5 2e6398d0504f75730b9ef1f51ea4af0e
BLAKE2b-256 23ab8b0e6094a5667633405638c1deb67442973689a26934a76d68744483c844

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b0a623b0998add2c67a7cfa4264196d6523ed3efd206e0dcfada70684ac77b49
MD5 537762da6669a59183e0311e13bda527
BLAKE2b-256 cb39e0d66407f23ddb09f6dae7213ce7b63cf5335b0f51effb08647a8c87973c

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 62b6d6146d391983672882d83942f60475b9368e0302f8ef040e27fc3ac8a80e
MD5 00852032dc397b282d5f1346c8961ac4
BLAKE2b-256 26406b215419b88ef363816b723c12f8d43b1a18a309b5dbb680a526c42c70b4

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 ba5c07b84590d3cc034e8a03c37810313a0cea1d57892b5da237d798d14db94a
MD5 fbfcd9a2e872e46ee0a0b4d7169b5cb1
BLAKE2b-256 451b19e6e7dc288300bb174ff545238e55cb9740e8a77c71372fa004b9c1b7b6

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp314-cp314t-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c2cb00c211bd0b6ef650c36c25df4ecab92fd136d66997b88128d621521f0f2d
MD5 bce8a30d81fdae011c30df49af3cfb99
BLAKE2b-256 e0b0bbb370741d823e991c52b9d983194977a6cf7735a2c0108fe5a6e424bd6f

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a39e9cb51e3c15c0e36960a754709de848bae70a67be9f85619ff03d42f2100
MD5 f03135526721a26790865a920cd399f0
BLAKE2b-256 4408eefa3e4e1ad6d46dc9615ba8a3d62b4953529c9576e1e37b3e99ab63e2ba

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 fe849162bfeafee9308d0edd3331f61551c855a06d7405b3730524f892c4cc3b
MD5 de31fbdcaf3fd9496b5bad920d1d04a4
BLAKE2b-256 7a49a7807b7fa32309dab5e6ca313bb70893d8c8db8841fc495c84eccdff4ef4

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 594c67bd504df2af5bf496f6370ec5eaabce35708b9525b15f87a693ac0b1197
MD5 aa20e77e3373b494af28f14c8cd4a6f9
BLAKE2b-256 c0bc60089a8ab78706dcae541978a47207f6d8623cee7be4452897930cb89e71

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aae4017aa65a294f7c11bb980568127703a5220132b6d0042f355803866887a8
MD5 c431e973e07dade51cac3bac94f2ca07
BLAKE2b-256 72dddeab8be2daddffc204975e14fc1e1e584426452695a1ab04fff5d0ec072e

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 e7b40c719fe4ca868a563455ee4c7e971e2d780daa389f3495576e34a954d3c1
MD5 c841f2153d80acc7faf0c79a2b003a3b
BLAKE2b-256 192deb5547a3c88cfa3f59bce597480e46990b4724340c2533118e7e400e310f

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp312-abi3-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 c9d43a999b802e5b97017c683282ff93ea5bae327f9df160ba2382f4244a0b84
MD5 81a2c1688a76988a14943c68b756a522
BLAKE2b-256 e660da00bb3a58c2ae57f9fb04418257036b50bab628e389345a377f9010a519

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a17994a82d8b49b4f2ba74557b35c0f66e627b237b8d9ac64a005f622166df28
MD5 7282de79570e91565e9b772eb2843f73
BLAKE2b-256 dac1a85d0e159ecdd1394d5a5c6d186acf94b348b915fa3c48dc0b26fad332d2

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3965e1d5727926f03b427e9eba2e06a9c6a3b7e2bc6cb0fb0890e094c1fe8204
MD5 6fe88f3e704d56a5e986ff4146bd7d68
BLAKE2b-256 2c3e4d2e8dde5faf5a9e9b2f59ba720ef14481d5ca8453ef72ae67cbc3a27d08

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd03932f80e34e3a45575d81a9813787be16fcbdeccea53f391a5dbba687e3f8
MD5 db907216e266cab0197ef3a52a19ecbd
BLAKE2b-256 9d120b82b0f997d151739f1e5b724e1c2d0d731dd03ecff6545f5f141a6dae83

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 951b6973df7fafbf1c23e1f70afee5e9ca59f582c3036c2bd0e06f4d44020b52
MD5 2c03a545dc93f114ae8ae67a4a53d6ee
BLAKE2b-256 ea73cdaf91b39bec62cfb0d2e6e2d4d3c831581fcfb31e79e701239a4b28e008

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-macosx_13_0_x86_64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-macosx_13_0_x86_64.whl
Algorithm Hash digest
SHA256 32b95effbbe4507d559f0d51294899a1d8d5f1131b65f637def46f4ab9c83cb5
MD5 36793ec55723b3a29c3971b645747828
BLAKE2b-256 38918444ae76dc4405e9fe945f69705db3b44adfbf3367676d5a91f8341fa529

See more details on using hashes here.

File details

Details for the file passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for passagemath_latte_4ti2-10.8.5rc0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 bd029923873ba4aac14fbbc6b0a697079904c685bba6092c219851f51a71fe05
MD5 25a59da00d51754afe2dda5694c803f2
BLAKE2b-256 33b982386a95def9fd1301837c7d78c3cbfb7427714c7b0aa9cfa03ef9ecae81

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