networkforge 1.4.1__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.
@@ -0,0 +1,48 @@
1
+ """NetworkForge: integrate custom infrastructure into OpenStreetMap networks."""
2
+
3
+ import logging
4
+ from importlib.metadata import version
5
+
6
+ from .errors import (
7
+ InputError,
8
+ InvalidTagsError,
9
+ NetworkForgeError,
10
+ NetworkIntegrityError,
11
+ NoIntersectionError,
12
+ OSMDownloadError,
13
+ )
14
+ from .export import write_gpkg, write_osm, write_osm_xml
15
+ from .network import build_network
16
+ from .presets import PRESETS
17
+ from .traffic import (
18
+ TrafficBand,
19
+ add_traffic,
20
+ read_traffic_settings,
21
+ speed_table,
22
+ street_bands,
23
+ )
24
+
25
+ __version__ = version("networkforge") # single source: pyproject.toml
26
+
27
+ __all__ = [
28
+ "PRESETS",
29
+ "TrafficBand",
30
+ "InputError",
31
+ "InvalidTagsError",
32
+ "NetworkForgeError",
33
+ "NetworkIntegrityError",
34
+ "NoIntersectionError",
35
+ "OSMDownloadError",
36
+ "add_traffic",
37
+ "build_network",
38
+ "read_traffic_settings",
39
+ "speed_table",
40
+ "street_bands",
41
+ "write_gpkg",
42
+ "write_osm",
43
+ "write_osm_xml",
44
+ ]
45
+
46
+ # Libraries shouldn't print or configure logging; applications opt in
47
+ # with logging.basicConfig(level=logging.INFO).
48
+ logging.getLogger(__name__).addHandler(logging.NullHandler())
@@ -0,0 +1,7 @@
1
+ """`python -m networkforge` runs the command-line interface."""
2
+
3
+ import sys
4
+
5
+ from .cli import main
6
+
7
+ sys.exit(main())