pyshp-stubs 0.0.0


pip install pyshp-stubs

  Latest version

Released: Nov 28, 2025

Project Links

Meta
Author: James Parrott
Maintainer: James Parrott
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only

Topic
  • Scientific/Engineering :: GIS
  • Software Development :: Libraries
  • Software Development :: Libraries :: Python Modules

PyShp-stubs

Nominal type stubs for PyShp.

PyShp 3 is statically typed. PyShp has historically been a single file library (shapefile.py).

According to PEP 561, and the spec in order to add a py.typed marker file (without indicating to type checkers that every package the user has installed adajacent to PyShp should also be type checked, regardless of whether all such packages support that or not), "The single-file module should be refactored into a package".

Myself and several other project contributers are reluctant to give up the single-file module (shapefile.py). We quite like it.

The purpose of this package is purely to indicate to type-checkers that PyShp is typed. It just so happens to be primarily typed in-line in the main library, from which the stubs in shapefile.pyi are largely automatically generated by MyPy's stubgen.

Wheel compatibility matrix

Platform Python 3
any

Files in release

No dependencies