Shapely is an open source Python package for construction and analysis of 2D planar geometric objects common to geographic information systems.
Python package for manipulation and analysis of geometric objects in the Cartesian plane
Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. It is based on the widely deployed GEOS (the engine of PostGIS) and JTS (from which GEOS is ported) libraries. Shapely is not concerned with data formats or coordinate systems, but can be readily integrated with packages that are.