You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

postgis

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgis - pypi Package Compare versions

Comparing version
1.0.0
to
1.0.1
+9
-2
PKG-INFO
Metadata-Version: 1.1
Name: postgis
Version: 1.0.0
Version: 1.0.1
Summary: Pyscopg and asyncpg helpers to work with PostGIS.

@@ -49,3 +49,3 @@ Home-page: https://github.com/yohanboniface/python-postgis

## Example
## Example with psycopg2

@@ -72,2 +72,9 @@ > import psycopg2

## Example with asyncpg
from postgis.asyncpg import register
pool = await create_pool(**DB_CONFIG, loop=loop, max_size=100,
init=register)
Keywords: psycopg postgis gis asyncpg

@@ -74,0 +81,0 @@ Platform: UNKNOWN

Metadata-Version: 1.1
Name: postgis
Version: 1.0.0
Version: 1.0.1
Summary: Pyscopg and asyncpg helpers to work with PostGIS.

@@ -49,3 +49,3 @@ Home-page: https://github.com/yohanboniface/python-postgis

## Example
## Example with psycopg2

@@ -72,2 +72,9 @@ > import psycopg2

## Example with asyncpg
from postgis.asyncpg import register
pool = await create_pool(**DB_CONFIG, loop=loop, max_size=100,
init=register)
Keywords: psycopg postgis gis asyncpg

@@ -74,0 +81,0 @@ Platform: UNKNOWN

+2
-2

@@ -18,4 +18,4 @@ from .geometry import Geometry

self.y = float(y)
self.z = int(z) if z else None
self.m = int(m) if m else None
self.z = int(z) if z is not None else None
self.m = int(m) if m is not None else None
if srid is not None:

@@ -22,0 +22,0 @@ self.srid = srid

@@ -41,3 +41,3 @@ [![Circle CI](https://img.shields.io/circleci/project/yohanboniface/psycopg-postgis.svg)](https://circleci.com/gh/yohanboniface/psycopg-postgis) [![PyPI](https://img.shields.io/pypi/v/psycopg-postgis.svg)](https://pypi.python.org/pypi/psycopg-postgis) [![PyPI](https://img.shields.io/pypi/pyversions/psycopg-postgis.svg)](https://pypi.python.org/pypi/psycopg-postgis) [![PyPI](https://img.shields.io/pypi/implementation/psycopg-postgis.svg)](https://pypi.python.org/pypi/psycopg-postgis) [![PyPI](https://img.shields.io/pypi/status/psycopg-postgis.svg)](https://pypi.python.org/pypi/psycopg-postgis)

## Example
## Example with psycopg2

@@ -63,1 +63,8 @@ > import psycopg2

'{"type": "LineString", "coordinates": [[1, 2], [3, 4]]}'
## Example with asyncpg
from postgis.asyncpg import register
pool = await create_pool(**DB_CONFIG, loop=loop, max_size=100,
init=register)

@@ -49,3 +49,3 @@ """Pyscopg and asyncpg helpers to work with PostGIS."""

VERSION = (1, 0, 0)
VERSION = (1, 0, 1)

@@ -52,0 +52,0 @@ setup(