File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed
Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ test = ["pytest"]
3636[project .urls ]
3737Repository = " https://github.com/GeospatialPython/pyshp"
3838
39+ [project .scripts ]
40+ shapefile =" __init__:main"
41+
3942[tool .hatch .build .targets .sdist ]
4043only-include = [" src" , " shapefiles" , " test_shapefile.py" ]
4144
Original file line number Diff line number Diff line change 1313
1414from .__version__ import __version__
1515from ._doctest_runner import _test
16+ from .classes import Field , ShapeRecord , ShapeRecords , Shapes
17+ from .constants import (
18+ MULTIPATCH ,
19+ MULTIPOINT ,
20+ MULTIPOINTM ,
21+ MULTIPOINTZ ,
22+ NULL ,
23+ POINT ,
24+ POINTM ,
25+ POINTZ ,
26+ POLYGON ,
27+ POLYGONM ,
28+ POLYGONZ ,
29+ POLYLINE ,
30+ POLYLINEM ,
31+ POLYLINEZ ,
32+ REPLACE_REMOTE_URLS_WITH_LOCALHOST ,
33+ SHAPETYPE_LOOKUP ,
34+ )
35+ from .exceptions import GeoJSON_Error , RingSamplingError , ShapefileException
36+ from .geometric_calculations import bbox_overlap
1637from .helpers import _Array , fsdecode_if_pathlike
1738from .reader import Reader
1839from .shapes import (
6586 WriteSeekableBinStream ,
6687 ZBox ,
6788)
89+ from .writer import Writer
6890
6991__all__ = [
7092 "__version__" ,
93+ "NULL" ,
94+ "POINT" ,
95+ "POLYLINE" ,
96+ "POLYGON" ,
97+ "MULTIPOINT" ,
98+ "POINTZ" ,
99+ "POLYLINEZ" ,
100+ "POLYGONZ" ,
101+ "MULTIPOINTZ" ,
102+ "POINTM" ,
103+ "POLYLINEM" ,
104+ "POLYGONM" ,
105+ "MULTIPOINTM" ,
106+ "MULTIPATCH" ,
107+ "SHAPETYPE_LOOKUP" ,
108+ "REPLACE_REMOTE_URLS_WITH_LOCALHOST" ,
71109 "Reader" ,
110+ "Writer" ,
72111 "fsdecode_if_pathlike" ,
73112 "_Array" ,
74113 "Shape" ,
117156 "FIELD_TYPE_ALIASES" ,
118157 "RecordValueNotDate" ,
119158 "RecordValue" ,
159+ "ShapefileException" ,
160+ "RingSamplingError" ,
161+ "GeoJSON_Error" ,
162+ "Field" ,
163+ "Shapes" ,
164+ "ShapeRecord" ,
165+ "ShapeRecords" ,
166+ "bbox_overlap" ,
120167]
121168
122169logger = logging .getLogger (__name__ )
@@ -131,5 +178,3 @@ def main() -> None:
131178 sys .exit (failure_count )
132179
133180
134- if __name__ == "__main__" :
135- main ()
You can’t perform that action at this time.
0 commit comments