# GeoParquet-Pydantic
Motivation: This project started at the 2024 San Fransisco GeoParquet Community hackathon, and arose out of a simple observation: why must Python users install the massive GDAL dependency (typically via GeoPandas) to do simple GeoJSON<>GeoParquet conversions.
Is this library the right choice for you?: * Do you need to use a wide variety of Geospatial functions? If so, you will likely have to add GDAL/GeoPandas as a dependency anyways, making this ibrary’s conversion functions probably redundant. * Is your workflow command line centric? If so you may want to consider Planet Lab’s simular CLI tool [gpq](https://github.com/planetlabs/gpq), which is written in Go and substantially faster. * Otherwise, if you are using Python and want to avoid unnecessary bulky dependencies, this library will be a great choice!
Note: All user-exposed functions and schema classes are available at the top level (i.e., geoparquet_pydantic.validate_geoparquet_table(…)) of this library.
# Documentation is on GitHub [here](https://github.com/xaviernogueira/geoparquet-pydantic/blob/main/README.md)
# Getting Started
Install from [PyPi](https://pypi.org/project/geoparquet-pydantic): `bash pip install geoparquet-pydantic `
Or from source: `bash $ git clone https://github.com/xaviernogueira/geoparquet-pydantic.git $ cd geoparquet-pydantic $ pip install . `
Then import with an underscore: `python import geoparquet_pydantic `
Or just import the functions/classes you need from the top-level: `python from geoparquet_pydantic import GeometryColumnMetadata from geoparquet_pydantic import GeoParquetMetadata from geoparquet_pydantic import validate_geoparquet_table from geoparquet_pydantic import validate_geoparquet_file from geoparquet_pydantic import geojson_to_geoparquet from geoparquet_pydantic import geoparquet_to_geojson `
# Roadmap
[ ] Make CLI file<>file functions w/ click.
[ ] Add parrallelized Parquet read for geoparquet_pydantic.geoparquet_to_geojson().
# Contribute
We encourage contributions, feature requests, and bug reports!
Here is our recomended workflow:
Use dev-requirements.txt to install our development dependencies.
Make your edits using pyright as a linter.
Use pre-commit run –all-file before commiting your work.
If you add a new feature, we request that you add test coverage for it.
Happy coding!
Metadata
Release files for geoparquet-pydantic 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geoparquet_pydantic-0.0.1.tar.gz | 81.5 kB | Without provenance | Details for geoparquet_pydantic-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geoparquet_pydantic-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for geoparquet_pydantic-0.0.1-py3-none-any.whl |
Total release size: 90.6 kB
Release files / geoparquet_pydantic-0.0.1.tar.gz
| Download URL | geoparquet_pydantic-0.0.1.tar.gz |
|---|---|
| Size | 81.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a482ecef1c856da9fcaec82a052e477bbc559d6042749b59d24660bae659fbe
|
|
BLAKE2b-256 checksum How to use checksums |
b048600a04bae770448e0bb82635bed30667afaa8d26aaceb081214f82bb2025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Release files / geoparquet_pydantic-0.0.1-py3-none-any.whl
| Download URL | geoparquet_pydantic-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc0e3b15cd6a2063498c0b7bb0809dde7d9547b6c3a0d7a0e9fc116074391554
|
|
BLAKE2b-256 checksum How to use checksums |
008a7af4f6ea6b323de63756c13f9bd9fd2077fb50d7249a5c1406c30ad1a446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.8
|
Security for geoparquet-pydantic 0.0.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.
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.