A python client for accessing and querying geospatial open data portals.
Project description
kapipy
A python client for accessing and querying datasets from geospatial open data portals such as LINZ, Stats NZ and LRIS.
Overview
kapipy is a Python package that provides a python interface to the Koordinates geospatial content management system. It allows users to connect to a data portal, retrieve metadata, and query vector layers and tables.
Github repository: https://github.com/phaakma/kapipy
Documentation: https://phaakma.github.io/kapipy/
Installation
pip install kapipy
Basic Usage
- Import kapipy.
- Create a GISK object, passing in an api key.
- Get a reference to an item using {gis}.content.get({layer_id})
- Perform actions on the item.
Basic example:
from kapipy.gis import GISK
linz = GISK(name="linz", api_key="my-linz-api-key")
rail_station_layer_id = "50318"
itm = linz.content.get(rail_station_layer_id)
data = itm.query()
data.df.head()
Disclaimer
Kapipy is provided as-is. The author has no affiliation with either Koordinates nor LINZ, Stats NZ or LRIS. As such, the underlying API's and services may change at any time without warning and break these modules.
This project does not cover the full spectrum of the Koordinates API and probably never will. It focuses currently on basic workflows such as connecting using an api key, getting references to datasets and downloading them.
Suggestions and bug reports can be made by submitting issues via the GitHub page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kapipy-0.2.1.tar.gz.
File metadata
- Download URL: kapipy-0.2.1.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e630644f5071924015141ea246c85aa97753ca10ef30ce6e28959dffbeaa23
|
|
| MD5 |
cba84b42b290b5a7c99614a49c1b45f1
|
|
| BLAKE2b-256 |
36db7689331f4a800b70395a1a25a32254f964d38e9100a9aa9a6bdd45d6e55c
|
Provenance
The following attestation bundles were made for kapipy-0.2.1.tar.gz:
Publisher:
python-publish.yml on phaakma/kapipy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kapipy-0.2.1.tar.gz -
Subject digest:
c4e630644f5071924015141ea246c85aa97753ca10ef30ce6e28959dffbeaa23 - Sigstore transparency entry: 361727698
- Sigstore integration time:
-
Permalink:
phaakma/kapipy@333ac313d1ebd2103b353a67147d883ec529446f -
Branch / Tag:
refs/tags/v0.2.1_beta - Owner: https://github.com/phaakma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@333ac313d1ebd2103b353a67147d883ec529446f -
Trigger Event:
release
-
Statement type:
File details
Details for the file kapipy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: kapipy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
845ba89c2f7f5b7a663ccda5914677d428cdea7f88b5e934c9d53850e1dd7af8
|
|
| MD5 |
c21db85da4e78e05195816571b29b849
|
|
| BLAKE2b-256 |
88a1480139c16b317017ef62530b778e08ad939541c4562cde313f6c3e0396c1
|
Provenance
The following attestation bundles were made for kapipy-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on phaakma/kapipy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kapipy-0.2.1-py3-none-any.whl -
Subject digest:
845ba89c2f7f5b7a663ccda5914677d428cdea7f88b5e934c9d53850e1dd7af8 - Sigstore transparency entry: 361727721
- Sigstore integration time:
-
Permalink:
phaakma/kapipy@333ac313d1ebd2103b353a67147d883ec529446f -
Branch / Tag:
refs/tags/v0.2.1_beta - Owner: https://github.com/phaakma
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@333ac313d1ebd2103b353a67147d883ec529446f -
Trigger Event:
release
-
Statement type: