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.

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.1.tar.gz (341.7 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.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geopins-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b055a35b1aebfc5c88575e1927f8161828cd6a5d283383193cdfcb5d64400f7c
MD5 359bf5430cc2a4ec7dd2aed4d18e2c08
BLAKE2b-256 958e8d608320423d47330ff92951a4ba1ae5848ee6ea223dc6e8eb7222d9fdb3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for geopins-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a276f38422bf92c99cf848021a359317202cc00b47f4380103289d3facc590b
MD5 2fde0661cbe9d54444c40c6d05acbfad
BLAKE2b-256 6d8f0b0f82ffbfcdd2ba835ca5b369c8fc56cdda8cba26a4584a8b147f8b6c3f

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