Skip to main content

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.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 ndslive-math 1.1.1
File Size Uploaded Provenance Actions
ndslive_math-1.1.1.tar.gz 44.5 kB With provenance Details for ndslive_math-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ndslive-math 1.1.1
File Interpreter ABI Platform Actions
ndslive_math-1.1.1-py3-none-any.whl Python 3 none any Details for ndslive_math-1.1.1-py3-none-any.whl

Total release size: 75.3 kB

Release files / ndslive_math-1.1.1.tar.gz

Download URL ndslive_math-1.1.1.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bb27023600e6f37290a622a619f55b1ee4664b4370418b7e716505b0fd2917aa
BLAKE2b-256 checksum
How to use checksums
d9183a91c47b5197096664c24b09ad7186d4eea0adab1c87665cf8e67ecc0f90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / ndslive_math-1.1.1-py3-none-any.whl

Download URL ndslive_math-1.1.1-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2fbab95e8008cf162c0068e6cbf289a8588ab526fdf18b78f52a20f1a0da166
BLAKE2b-256 checksum
How to use checksums
1b584a2e70f9696468b43a126e314812940902c96dc1fbb23869f888bc90a59e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Security for ndslive-math 1.1.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 ndslive_math-1.1.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 Nov 11, 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.

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