Skip to main content
A lightweight Python library that enables ordinal hashing of multidimensonal data via [Morton coding / Z-ordering](https://en.wikipedia.org/wiki/Z-order_curve), along with support for geospatial indexing.
<p align="center">
<img src="https://i.imgur.com/WlMKO20r.jpg" height=10% width=100%>
</p>
In mathematical analysis and computer science, *Z-order*, *Morton-order*, or a *Morton-code* is a function which maps multidimensional data to one dimension while preserving locality of the data points. It was introduced in 1966 by IBM researcher, *[G. M. Morton](https://domino.research.ibm.com/library/cyberdig.nsf/papers/0DABF9473B9C86D48525779800566A39/$File/Morton1966.pdf)*. *The z-value* of a point in multidimensions is calculated by interleaving the binary representations of its coordinate values. Once the data are sorted into this ordering, any one-dimensional data structure can be used, such as binary search trees, B-trees, skip lists, or hash tables. The resulting ordering can equivalently be described as the order one would achieve from a depth-first traversal of a quadtree,
where `{x, y, ..., K}` are combined into a single ordinal value that is easily compared, searched, and indexed against other *Morton numbers*.


Metadata

Release files for pymorton 1.0.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pymorton 1.0.0
File Interpreter ABI Platform Actions
pymorton-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pymorton-1.0.0-py2.py3-none-any.whl
pymorton-1.0.0-py2.7.egg Legacy Egg format - - Details for pymorton-1.0.0-py2.7.egg

Total release size: 13.2 kB

Release files / pymorton-1.0.0-py2.py3-none-any.whl

Download URL pymorton-1.0.0-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d5958bbaec746a7174f6ff87761483c5ba3ddea670b2f7e383c2fcb7a8b88cdd
BLAKE2b-256 checksum
How to use checksums
da79d1a6955e566c9dc627f2372f7cab395b99b2cdd0b040e5847d5ef8e3e91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymorton-1.0.0-py2.7.egg

Download URL pymorton-1.0.0-py2.7.egg
Size 7.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
0059fcc23c67498fe2de48080dd4916f2d38f00ceb15eb4a3c24467eb2c3e26c
BLAKE2b-256 checksum
How to use checksums
8f757d827d91ee3f942d2a43fa7b2cef9d075e7fd09b1f8cd7663efdac757392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pymorton 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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