Skip to main content

sagemath-data-polytopes

sagemath-data-polytopes packages the SageMath databases of two- and three-dimensional reflexive lattice polytopes as an ordinary, pure-Python distribution. It has no dependency on SageMath and never accesses the network at build time or run time.

The distribution contains two representations of the same catalogues:

  • plain-text lists containing 16 two-dimensional and 4,319 three-dimensional reflexive polytopes; and
  • the Full2d and Full3d databases used by PALP.

The much larger four-dimensional database is deliberately out of scope.

Installation

python -m pip install sagemath-data-polytopes

The Python import name is sage_data_polytopes.

Resource API

The API is based on importlib.resources, so callers do not need to know where the wheel was installed:

from sage_data_polytopes import (
    open_reflexive_polytopes,
    palp_database_path,
    reflexive_polytopes,
)

# A Traversable resource, suitable for read_bytes(), read_text(), and open().
catalogue = reflexive_polytopes(3)

with open_reflexive_polytopes(2) as stream:
    first_header = stream.readline()

# PALP needs a real filesystem directory. Keep the context open while PALP
# uses the path; resources from unusual zip importers may be temporary.
with palp_database_path(3) as directory:
    palp_basename = directory / "zzdb"

The lower-level data_root(), resource(), open_resource(), and resource_path() helpers are also public. Only dimensions 2 and 3 are accepted by the dimension-specific helpers.

Data provenance and licensing

The three-dimensional list was originally obtained by Maximilian Kreuzer and Harald Skarke using PALP. See DATA_LICENSES.md for the available provenance and an important licensing caveat that must be resolved before the first public release.

Releases

Publishing a GitHub Release runs the Release GitHub Actions workflow. It checks that the tag matches the package version, builds and validates the wheel and source distribution, smoke-tests the wheel in a clean environment, attaches both artifacts to the GitHub Release, and publishes them to PyPI through Trusted Publishing. The Release tag must be 20170220.1 or v20170220.1. Configure a PyPI Trusted Publisher for this repository, the release.yml workflow, and the pypi environment before the first release. The PyPI project name is sagemath-data-polytopes, the GitHub owner is sagemath, and the repository name is data-polytopes. Do not publish a release until the data-license caveat above has been resolved.

Development

python -m pip install -e .
python -m pytest
python -m build
python tools/check_artifacts.py dist/*.whl dist/*.tar.gz

Metadata

Release files for sagemath-data-polytopes 20170220.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sagemath-data-polytopes 20170220.1
File Size Uploaded Provenance Actions
sagemath_data_polytopes-20170220.1.tar.gz 61.4 kB With provenance Details for sagemath_data_polytopes-20170220.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sagemath-data-polytopes 20170220.1
File Interpreter ABI Platform Actions
sagemath_data_polytopes-20170220.1-py3-none-any.whl Python 3 none any Details for sagemath_data_polytopes-20170220.1-py3-none-any.whl

Total release size: 124.0 kB

Release files / sagemath_data_polytopes-20170220.1.tar.gz

Download URL sagemath_data_polytopes-20170220.1.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
78e742c0f7d46132cd874041094a5aaa64a7978c3d35ff7b9cecab4fe1f1814d
BLAKE2b-256 checksum
How to use checksums
69740a06131ee113a0022c52f4b6517fbeae6551e839472acc2264676167fea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / sagemath_data_polytopes-20170220.1-py3-none-any.whl

Download URL sagemath_data_polytopes-20170220.1-py3-none-any.whl
Size 62.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
269500292f058bc6299ad4613399183e884503c6df7f8ce09eebf5e0a19e2225
BLAKE2b-256 checksum
How to use checksums
142d406016b7506a10c730e2d6ec97708b498559035bdca6b3ba2543f0659791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Security for sagemath-data-polytopes 20170220.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sagemath_data_polytopes-20170220.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page