Skip to main content

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.

Metadata

Release files for geopins 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geopins 0.1.1
File Size Uploaded
geopins-0.1.1.tar.gz 341.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geopins 0.1.1
File Interpreter ABI Platform
geopins-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 361.3 kB

Release files / geopins-0.1.1.tar.gz

Download URL geopins-0.1.1.tar.gz
Size 341.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b055a35b1aebfc5c88575e1927f8161828cd6a5d283383193cdfcb5d64400f7c
BLAKE2b-256 checksum
How to use checksums
958e8d608320423d47330ff92951a4ba1ae5848ee6ea223dc6e8eb7222d9fdb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13

Release files / geopins-0.1.1-py3-none-any.whl

Download URL geopins-0.1.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a276f38422bf92c99cf848021a359317202cc00b47f4380103289d3facc590b
BLAKE2b-256 checksum
How to use checksums
6d8f0b0f82ffbfcdd2ba835ca5b369c8fc56cdda8cba26a4584a8b147f8b6c3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page