{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"},{"label":"GIS","url":"https://skillfed.io/packages/category/scientific-engineering-gis"}],"enrichment":{"capability":"Converts geometries between WKB/EWKB, WKT/EWKT, and GeoJSON formats with no external dependencies, designed for use in PostgreSQL PL/Python functions to work with PostGIS geometry objects.","skillfed_tags":["postgis","pl/python","geometry-conversion"],"use_cases":["Write PL/Python functions that accept PostGIS geometry arguments and manipulate them as Python objects before returning results to the database.","Integrate external geospatial services (elevation APIs, geocoding, etc.) with PostGIS by converting geometries to/from Python-friendly formats.","Convert PostGIS geometries to GeoJSON for serialization to web clients or APIs.","Parse WKB or WKT geometry strings into Python objects for analysis or transformation outside the database.","Build geometry objects programmatically in Python and insert them into PostGIS as EWKB or WKT."],"what_it_does":"plpygis is a pure-Python geometry format converter that bridges PostgreSQL's PL/Python environment and PostGIS. It translates between the binary and text representations that PostGIS uses (WKB, EWKB, WKT, EWKT) and GeoJSON, allowing PL/Python functions to receive PostGIS geometry objects as native Python objects and return them back to the database. The package implements geometry subclasses (Point, LineString, Polygon, MultiPolygon, etc.) that wrap these conversions transparently.\n\nThe primary use case is writing PL/Python stored procedures that accept or return PostGIS geometries. When a geometry is passed to a PL/Python function, plpygis converts it into a Python object with accessible properties (x, y, z coordinates, SRID); when the function returns a plpygis object, it is automatically converted back to a PostGIS geometry for storage. This eliminates the need to manually parse or construct binary geometry formats in Python code.","worth_installing":"Yes, if you are writing PL/Python functions for PostgreSQL with PostGIS. The package has no dependencies, is stable, and solves a specific problem well. No, if you do not use PostgreSQL PL/Python or do not work with PostGIS geometries\u2014the GPL-3.0-only license also makes it unsuitable for proprietary projects unless your entire codebase is copyleft-compatible."},"id":"plpygis","links":{"html":"https://skillfed.io/packages/plpygis","md":"https://skillfed.io/packages/plpygis.md","pypi":"https://pypi.org/project/plpygis/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-09-30","license_spdx":null,"license_treatment":"copyleft","name":"plpygis","python_support":"supports_current","summary":"Python tools for PostGIS"},"popularity":{"monthly_downloads":373010,"position":7157,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.6.1"}
