ndslive-math
Python version of ndsmath, math utilities for NDS.Live.
Installation
pip install ndslive-math
Development
For development, install in editable mode with the version workaround since the Python package is in a subdirectory:
SETUPTOOLS_SCM_PRETEND_VERSION=$(cd .. && python -m setuptools_scm) pip install --config-settings editable-mode=strict -e .
This workaround is needed because the git repository is at the parent level, not in the python/ directory.
Usage
from ndslive.math import Wgs84, PackedTileId, MortonCode
# Create WGS84 coordinates
coord = Wgs84(lon=13.404954, lat=52.520008)
# Convert to NDS coordinates
x_nds, y_nds = coord.to_nds_coordinates()
# Create packed tile ID
tile = PackedTileId(level=13, x=4567, y=2345)
# Create Morton code
morton = MortonCode.from_nds_coordinates(x_nds, y_nds)
Metadata
Release files for ndslive-math 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ndslive_math-1.1.0.tar.gz | 43.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ndslive_math-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.5 kB
Release files / ndslive_math-1.1.0.tar.gz
| Download URL | ndslive_math-1.1.0.tar.gz |
|---|---|
| Size | 43.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bc4e0e298b80cd4595a01c507b7fd006d89c9fc818f88d577d93e6c423abdb9
|
|
BLAKE2b-256 checksum How to use checksums |
f1e5d32590d637d73040b1b100d61a39a0b0e8585522828ab6236a1cbbde89cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 6, 2026.
Transparency logRelease files / ndslive_math-1.1.0-py3-none-any.whl
| Download URL | ndslive_math-1.1.0-py3-none-any.whl |
|---|---|
| Size | 29.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5100d9100530a43bc8fbe26e6a9e91abba91d8dcfad2ce332b7e6ec3b9f3032c
|
|
BLAKE2b-256 checksum How to use checksums |
db651a0ee0780bcc2d42eedf99dbbea123a0b7f69510f447c99d9b216a0be0a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 6, 2026.
Transparency logSecurity for ndslive-math 1.1.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for ndslive_math-1.1.0.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 Jul 6, 2026.
Transparency logA 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.