Skip to content

Commit

Permalink
Add arrow-based API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jun 21, 2024
1 parent 35c091b commit 5ee4746
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/api/arrow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# `stac_geoparquet.arrow`

Arrow-based format conversions.

::: stac_geoparquet.arrow
2 changes: 2 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Usage

7 changes: 4 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ extra:
provider: mike

nav:
- "index.md"
- index.md
- usage.md
- Specification: spec/stac-geoparquet-spec.md
- API Reference:
- api/legacy.md
- api/arrow.md
- Legacy: api/legacy.md
# - api/pgstac.md

watch:
Expand Down Expand Up @@ -74,7 +76,6 @@ plugins:
enable_inventory: true
handlers:
python:
paths: [stac_geoparquet]
options:
docstring_section_style: list
docstring_style: google
Expand Down
13 changes: 13 additions & 0 deletions stac_geoparquet/arrow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@
)
from ._delta_lake import parse_stac_ndjson_to_delta_lake
from ._to_parquet import parse_stac_ndjson_to_parquet, to_parquet

__all__ = (
"DEFAULT_JSON_CHUNK_SIZE",
"DEFAULT_PARQUET_SCHEMA_VERSION",
"parse_stac_items_to_arrow",
"parse_stac_ndjson_to_arrow",
"parse_stac_ndjson_to_delta_lake",
"parse_stac_ndjson_to_parquet",
"stac_table_to_items",
"stac_table_to_ndjson",
"SUPPORTED_PARQUET_SCHEMA_VERSIONS",
"to_parquet",
)

0 comments on commit 5ee4746

Please sign in to comment.