Skip to main content

Geospatial support for the Python pins package.

Project description

geopins

PyPI Version uv Ruff usethis

The geopins package provides geospatial support for the Python pins package. The package publishes data, models, and other Python objects, making it easy to share them across projects and with your colleagues. With geopins, there is support for geospatial datatypes (e.g. geopandas.GeoDatFrame, and rastr.Raster) and filetypes (e.g. GeoPackage, and GeoTIFF), fully compatible with your existing pins boards.

The pins package provides drivers for standard Python tabular datatypes (e.g. pandas.DataFrame) and filetypes (e.g. CSV, Parquet, etc.). The geopins package brings the same experience to geospatial datatypes (e.g. geopandas.GeoDatFrame, and rastr.Raster and filetypes, fully compatible with your existing pins boards.

Installation

# With uv
uv add geopins

# With pip
pip install geopins

Quick Start

from pins import board_local

# Patch pins to support geospatial data
import geopins
geopins.patch()

# Define any pins board as usual
b = board_local()

# Save a GeoDataFrame
import geopandas as gpd
gdf = b.pin_write(
    gpd.GeoDataFrame({"x": [1, 2, 3]}, geometry=gpd.points_from_xy([1, 2, 3], [4, 5, 6])),
    "gdf_example",
)

# Read it back
gdf = b.pin_read("gdf_example")

# Save a raster
from rastr.raster import Raster
b.pin_write(Raster.example(), "raster_example")

# Read it back
raster = b.pin_read("raster_example")

Contributing

See the CONTRIBUTING.md file.

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

geopins-0.1.0.tar.gz (341.4 kB view details)

Uploaded Source

Built Distribution

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

geopins-0.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file geopins-0.1.0.tar.gz.

File metadata

  • Download URL: geopins-0.1.0.tar.gz
  • Upload date:
  • Size: 341.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for geopins-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d5b6fad83a27abdf116fe84bcb7153cfe5ccb2405e20927436c90829910c8e8
MD5 894007e054694725508ed89e3f3e821f
BLAKE2b-256 87a55dc7430f4cdb6c7f52ee45d6e8c103cfafdac6694cd321d2f815797066b3

See more details on using hashes here.

File details

Details for the file geopins-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geopins-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.13

File hashes

Hashes for geopins-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c885a5146cb73912f23bcc154baa2e3213ec9ed86950481519e5a6d3ca93f10
MD5 7edf1c59227d41af0b5bc5186040fe45
BLAKE2b-256 fd6430ef30347a4e7c6789784efefde18549713ec0efab57511f69f1ead9c494

See more details on using hashes here.

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