pyorps 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyorps/__init__.py ADDED
@@ -0,0 +1,33 @@
1
+ """PYORPS - Python for Optimal Routes in Power Systems."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+ # Import key components for easy access
6
+ from .io.geo_dataset import (
7
+ GeoDataset, VectorDataset, RasterDataset,
8
+ InMemoryVectorDataset, LocalVectorDataset,
9
+ WFSVectorDataset, LocalRasterDataset,
10
+ InMemoryRasterDataset, initialize_geo_dataset
11
+ )
12
+ from .raster.rasterizer import GeoRasterizer
13
+ from .graph.path_finder import PathFinder
14
+ from .core.path import Path, PathCollection # Fixed: import from core.path instead of graph
15
+ from .core.cost_assumptions import (CostAssumptions, get_zero_cost_assumptions, detect_feature_columns,
16
+ save_empty_cost_assumptions)
17
+
18
+ __all__ = [
19
+ # Core dataset classes
20
+ "GeoDataset", "VectorDataset", "RasterDataset",
21
+ "InMemoryVectorDataset", "LocalVectorDataset",
22
+ "WFSVectorDataset", "LocalRasterDataset",
23
+ "InMemoryRasterDataset", "initialize_geo_dataset",
24
+
25
+ # Rasterization
26
+ "GeoRasterizer",
27
+
28
+ # Graph and routing
29
+ "PathFinder", "Path", "PathCollection",
30
+
31
+ # Cost assumptions
32
+ "CostAssumptions", "get_zero_cost_assumptions", "detect_feature_columns", "save_empty_cost_assumptions",
33
+ ]
@@ -0,0 +1,39 @@
1
+ """Core types and base classes for geospatial data processing."""
2
+
3
+ from .cost_assumptions import (CostAssumptions, get_zero_cost_assumptions, detect_feature_columns,
4
+ save_empty_cost_assumptions)
5
+ from .types import (InputDataType, CostAssumptionsType, BboxType, GeometryMaskType, CoordinateTuple, CoordinateList, CoordinateInput,
6
+ NormalizedCoordinate)
7
+ from .path import Path, PathCollection
8
+ from .exceptions import (
9
+ # Cost assumption exceptions
10
+ CostAssumptionsError, FileLoadError, InvalidSourceError, FormatError,
11
+ FeatureColumnError, NoSuitableColumnsError, ColumnAnalysisError,
12
+ # WFS exceptions
13
+ WFSError, WFSConnectionError, WFSResponseParsingError, WFSLayerNotFoundError,
14
+ # Graph API exceptions
15
+ RasterShapeError, NoPathFoundError, AlgorthmNotImplementedError
16
+ )
17
+
18
+ __all__ = [
19
+ # Cost assumptions
20
+ "CostAssumptions", "get_zero_cost_assumptions", "detect_feature_columns", "save_empty_cost_assumptions",
21
+
22
+ # Types
23
+ "InputDataType", "CostAssumptionsType", "BboxType", "GeometryMaskType",
24
+ "CoordinateTuple", "CoordinateList", "CoordinateInput",
25
+ "NormalizedCoordinate",
26
+
27
+ # Path classes
28
+ "Path", "PathCollection",
29
+
30
+ # Exceptions - Cost assumptions
31
+ "CostAssumptionsError", "FileLoadError", "InvalidSourceError", "FormatError",
32
+ "FeatureColumnError", "NoSuitableColumnsError", "ColumnAnalysisError",
33
+
34
+ # Exceptions - WFS
35
+ "WFSError", "WFSConnectionError", "WFSResponseParsingError", "WFSLayerNotFoundError",
36
+
37
+ # Exceptions - Graph API
38
+ "RasterShapeError", "NoPathFoundError", "AlgorthmNotImplementedError"
39
+ ]