Metadata-Version: 2.4
Name: stac-hash
Version: 0.0.1
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
Classifier: Typing :: Typed
License-File: LICENSE-APACHE
License-File: LICENSE-MIT
Summary: Sortable spatio-temporal hashes for STAC items
Keywords: stac,geospatial
Author-email: Pete Gadomski <pete.gadomski@gmail.com>
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Issues, https://github.com/gadomski/stac-hash/issues
Project-URL: Repository, https://github.com/gadomski/stac-hash

# stac-hash

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/gadomski/stac-hash/pr.yml?branch=main&style=for-the-badge)](https://github.com/gadomski/stac-hash/actions/workflows/pr.yml)

Sortable spatio-temporal hashes for [STAC](https://stacspec.org/)
[items](https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md).

Our simple hashing algorithm turns a (datetime, point) pair into a single `u64`
hash. The hash is a [Morton code](https://en.wikipedia.org/wiki/Z-order_curve)
in space and time, which makes the hash useful as a sort key or an index prefix
for range scans.

## License

Licensed under either of

- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/gadomski/stac-hash/blob/main/LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT license ([LICENSE-MIT](https://github.com/gadomski/stac-hash/blob/main/LICENSE-MIT) or <http://opensource.org/licenses/MIT>)

at your option.

