Skip to main content

A python client for accessing and querying geospatial open data portals.

Project description

kapipy

A python client for accessing and querying datasets from Koordinates sites 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kapipy-0.4.2.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kapipy-0.4.2-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file kapipy-0.4.2.tar.gz.

File metadata

  • Download URL: kapipy-0.4.2.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapipy-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c6367fa6bb27564f61bf0f579cc0df0f717f841ebf2d9a5f2f7c472b0f5aae3b
MD5 7c874bc7ee5590cb139152ec80b6997c
BLAKE2b-256 b8ee61747e2cfd8ef47cdd04d1e94b04690d3abb20af4b8aaab7d66054ae3d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapipy-0.4.2.tar.gz:

Publisher: python-publish.yml on phaakma/kapipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kapipy-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: kapipy-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kapipy-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a5015f19b643c4a807f3c58dd908f77c8c923e5dc4679dc4e024d47570b6af
MD5 8e0819071aac813749eff336e15e74cf
BLAKE2b-256 423ee77f015155653b3f80ba888c3b522bbf8d809b59df7b183b2b650f0ecf25

See more details on using hashes here.

Provenance

The following attestation bundles were made for kapipy-0.4.2-py3-none-any.whl:

Publisher: python-publish.yml on phaakma/kapipy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page