Metadata-Version: 2.4
Name: co-geoparquet
Version: 0.1.7
Summary: Cloud-optimized GeoParquet: build LOD-pyramid artifacts with a Hilbert-indexed manifest
Author: Ready
License-Expression: MIT
Project-URL: Homepage, https://github.com/ready/co-geoparquet
Project-URL: Source, https://github.com/ready/co-geoparquet/tree/master/packages/write
Project-URL: Changelog, https://github.com/ready/co-geoparquet/blob/master/packages/write/CHANGELOG.md
Project-URL: Issues, https://github.com/ready/co-geoparquet/issues
Keywords: geoparquet,parquet,gis,hilbert,lod,cloud-optimized,deck.gl
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=2.3
Requires-Dist: pyarrow>=23
Requires-Dist: duckdb>=1.5
Requires-Dist: geoarrow-pyarrow>=0.2
Requires-Dist: fastparquet>=2024.2
Provides-Extra: dev
Requires-Dist: pytest>=9; extra == "dev"
Requires-Dist: shapely>=2.1; extra == "dev"
Dynamic: license-file

# `co-geoparquet`

[![PyPI](https://img.shields.io/pypi/v/co-geoparquet)](https://pypi.org/project/co-geoparquet/)

Build cloud-optimized GeoParquet artifacts: a GeoParquet file whose rows are sorted along a
Hilbert curve and grouped into LOD levels, plus a small gzipped manifest (`.gpqm`) that
records each row group's Hilbert range and byte range. A browser turns a viewport into HTTP
range requests against that manifest and downloads only the row groups it needs, straight
from S3, GCS or any static host. The Parquet file stays ordinary GeoParquet that DuckDB,
GDAL and geopandas open unchanged.

Part of [co-geoparquet](https://github.com/ready/co-geoparquet). The companion npm package,
[`@ready.net/co-geoparquet-layers`](https://www.npmjs.com/package/@ready.net/co-geoparquet-layers),
reads these artifacts and draws them with deck.gl.

> **Developed with AI.** Most of this project's code, tests and documentation were written by AI coding assistants (Anthropic's Claude, through Claude Code), directed and reviewed by a human maintainer. It has a test suite and its performance numbers are measured, not estimated, but AI-written code can be wrong in ways that look right. Check its output against your own data, review it before you depend on it in production, and report anything that looks off.

## Install

```sh
pip install co-geoparquet
```

Requires Python 3.12 or later.

## Use

```sh
co-geoparquet build input.parquet out.parquet    # -> out.parquet + out.gpqm
co-geoparquet inspect out.gpqm
```

Upload **both** files to a bucket that serves HTTP Range requests with CORS.

From Python:

```python
import co_geoparquet

co_geoparquet.build("input.parquet", "out.parquet")  # writes out.gpqm beside it
```
