postgis
Advanced tools
+9
-2
| 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 |
+8
-1
@@ -41,3 +41,3 @@ [](https://circleci.com/gh/yohanboniface/psycopg-postgis) [](https://pypi.python.org/pypi/psycopg-postgis) [](https://pypi.python.org/pypi/psycopg-postgis) [](https://pypi.python.org/pypi/psycopg-postgis) [](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) |
+1
-1
@@ -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( |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
35205
2.07%