The Python shapefile library (pyshp) is a pure Python library and is used to read and write shapefiles. The pyshp
library's sole purpose is to work with shapefiles—it only uses the Python standard library. You cannot use it for geometric operations. If you're only working with shapefiles, this one-file-only library is simpler than using GDAL.
You can use pip
install, conda
, and Anaconda3 to install pyshp
:
>> pip install pyshp >>conda install pyshp
More documentation is available at PyPi: https://pypi.python.org/pypi/pyshp/1.2.3
The source code for pyshp
is available at https://github.com/GeospatialPython/pyshp.