multimodalrouter 0.1.14__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,131 @@
1
+ Metadata-Version: 2.4
2
+ Name: multimodalrouter
3
+ Version: 0.1.14
4
+ Summary: A graph-based routing library for dynamic routing.
5
+ Author-email: Tobias Karusseit <karusseittobi@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Tobias Karusseit
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+
16
+
17
+ Project-URL: Homepage, https://github.com/K-T0BIAS/MultiModalRouter
18
+ Project-URL: Repository, https://github.com/K-T0BIAS/MultiModalRouter
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE.md
22
+ License-File: NOTICE.md
23
+ Requires-Dist: colorama>=0.4.6
24
+ Requires-Dist: dill>=0.4.0
25
+ Requires-Dist: filelock>=3.19.1
26
+ Requires-Dist: fsspec>=2025.9.0
27
+ Requires-Dist: Jinja2>=3.1.6
28
+ Requires-Dist: MarkupSafe>=3.0.2
29
+ Requires-Dist: mpmath>=1.3.0
30
+ Requires-Dist: networkx>=3.5
31
+ Requires-Dist: numpy>=2.3.3
32
+ Requires-Dist: pandas>=2.3.2
33
+ Requires-Dist: parquet>=1.3.1
34
+ Requires-Dist: ply>=3.11
35
+ Requires-Dist: pyarrow>=21.0.0
36
+ Requires-Dist: python-dateutil>=2.9.0.post0
37
+ Requires-Dist: pytz>=2025.2
38
+ Requires-Dist: setuptools>=80.9.0
39
+ Requires-Dist: six>=1.17.0
40
+ Requires-Dist: sympy>=1.14.0
41
+ Requires-Dist: thriftpy2>=0.5.3
42
+ Requires-Dist: tqdm>=4.67.1
43
+ Requires-Dist: typing_extensions>=4.15.0
44
+ Requires-Dist: tzdata>=2025.2
45
+ Provides-Extra: torch
46
+ Requires-Dist: torch>=2.8.0; extra == "torch"
47
+ Provides-Extra: dev
48
+ Requires-Dist: pytest>=8.0; extra == "dev"
49
+ Requires-Dist: plotly>=6.3.0; extra == "dev"
50
+ Provides-Extra: plotly
51
+ Requires-Dist: plotly>=6.3.0; extra == "plotly"
52
+ Dynamic: license-file
53
+
54
+ # Multi Modal Router
55
+
56
+ The Multi Modal Router is a graph-based routing engine that allows you to build and query any hub-based network. It supports multiple transport modes like driving, flying, or shipping, and lets you optimize routes by distance, time, or custom metrics. It can be expanded to any n-dimensional space making it versatile in any coordinate space
57
+
58
+ > NOTE: This project is a work in progress and features might be added and or changed
59
+
60
+ # In depth Documentation
61
+
62
+ [installation guide](./docs/installation.md)
63
+
64
+ [graph module documentation](./docs/graph.md)
65
+
66
+ [code examples](./docs/examples/demo.py)
67
+
68
+ [command line interface documentation](./docs/cli.md)
69
+
70
+ [utilities documentation](./docs/utils.md)
71
+
72
+
73
+ # Features
74
+
75
+ ## Building Freedom / Unlimited Usecases
76
+
77
+ The graph can be build from any data aslong as the required fields are present ([example](./docs/examples/demoData.csv)). Whether your data contains real world places or you are working in a more abstract spaces with special coordinates and distance metrics the graph will behave the same (with minor limitations due to dynamic distance calculation, but not a problem when distances are already precomputed. [solutions](./docs/graph.md#advanced-options)).
78
+
79
+ #### Example Usecases
80
+
81
+ - real world flight router
82
+ - uses data with real flight data and actuall airport coordinates
83
+ - builds a graph with `airport` [Hubs](./docs/graph.md#hub)
84
+ - connects `airports` based on flight routes
85
+ - `finds` the `shortest flights` or `multi leg routes` to get from `A` to `B`
86
+ - simple example implementation [here](./docs/examples/flightRouter/main.py)
87
+
88
+ - social relation ship graph
89
+ - uses user data like a social network where users are connected through others via a group of other users
90
+ - builds a graph with `users` as Hubs
91
+ - connects users based on know interactions or any other connection meric
92
+ - `finds` users that are likely to `share`; `interests`, `friends`, `a social circle`, etc.
93
+
94
+ - coordinate based game AI and pathfinding
95
+ - uses a predefined path network (e.g. a simple maze)
96
+ - `builds` the garph representation of the network
97
+ - `finds` the shortest way to get from any point `A` to any other point `B` in the network
98
+ - you can checkout a simple example implementation for a maze pathfinder [here](./docs/examples/mazePathfinder/main.py)
99
+
100
+ ![example from the maze solver](./docs/solvedMaze1.png)
101
+
102
+ ## graph visualizations
103
+
104
+ Use the build-in [visualization](./docs/visualization.md) tool to plot any `2D` or `3D` Graph.
105
+
106
+ ![example plot of flight paths](./docs/FlightPathPlot.png)
107
+
108
+ ## Important considerations for your usecase
109
+
110
+ Depending on your usecase and datasets some features may not be usable see solutions below
111
+
112
+ ### potential problems based on use case
113
+
114
+ **Please check your data for the following**
115
+
116
+ | distance present | coordinate format | unusable features | special considerations |
117
+ |------------------|-------------------|-------------------|------------------------|
118
+ | YES | degrees | None | None|
119
+ | YES|not degrees| runtime distance calculations| set [drivingEnabled = False](./docs/graph.md#args) or do [this](./docs/graph.md#swap-distance-method)|
120
+ | NO | degrees | None | distances must be calculated when [preprocessing](./src/multimodalrouter/utils/preprocessor.py) |
121
+ | NO | not degrees | **ALL** | **U cant build the graph with neither distances or supported coordinates!** [**solution**](./docs/graph.md#swap-distance-method)
122
+
123
+ [**example dataframe with the required fields**](./docs/examples/demoData.csv)
124
+
125
+ ### License
126
+
127
+ [see here](./LICENSE.md)
128
+
129
+ [dependencies](./NOTICE.md)
130
+
131
+
@@ -0,0 +1,18 @@
1
+ multimodalrouter/__init__.py,sha256=8Tn-mK6YFGwNMZm_vA1HIuji-aVNjqo3wINSoGa4hd8,291
2
+ multimodalrouter/graph/__init__.py,sha256=5eKIbKI8HyRxNm0yzzWLZE2_B9ikgg1BOCxSfvjwlTQ,160
3
+ multimodalrouter/graph/dataclasses.py,sha256=1kZgacibpUtaF9cQWsMQDKJpCsaSsq6kQanWxb-yjWw,7226
4
+ multimodalrouter/graph/graph.py,sha256=UMmfvrPPGc642vJ2ZSCnfi9hBsvZS-4BHMvo62rt5os,28626
5
+ multimodalrouter/graphics/__init__.py,sha256=F_KttIwUySzJs_C9OCDR2Zptu-tsuaF3gauSZyZyimo,56
6
+ multimodalrouter/graphics/graphicsWrapper.py,sha256=8k6XidKINOVpe7sPQqjGkRNVsYgS78_ex4l-4iKCFGk,11850
7
+ multimodalrouter/router/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ multimodalrouter/router/build.py,sha256=jrGcFyVS7-Qg6CXAVVwiXM_krLBHBoRH85Slknmutns,2843
9
+ multimodalrouter/router/route.py,sha256=5RZGFgrTYm930RJX6i26d8f8_k7CGnp5lKZJBM1gcKk,1956
10
+ multimodalrouter/utils/__init__.py,sha256=jsZ7cBB-9otxzMiN9FVviGuknxnOPmaG2RBbZuiezeg,53
11
+ multimodalrouter/utils/preprocessor.py,sha256=45ya0cg0PGCV3YMk680_HZUve1QGJ7JHPSHoRvYdleY,6333
12
+ multimodalrouter-0.1.14.dist-info/licenses/LICENSE.md,sha256=CRtvaQsLnzHvSIzusV5sHHw-e8w8gytXq8R7AP1GBmE,1092
13
+ multimodalrouter-0.1.14.dist-info/licenses/NOTICE.md,sha256=Fv3AK0KmlZGgmf0_4yM8ZtOTbv2mIfQVHQkZ4hFZXb8,3313
14
+ multimodalrouter-0.1.14.dist-info/METADATA,sha256=DxAyIFvIBMh8GbQ6Q95jvUJziknAwYemf0PpxCTN6-I,6334
15
+ multimodalrouter-0.1.14.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
16
+ multimodalrouter-0.1.14.dist-info/entry_points.txt,sha256=vp177Z2KMWPGJkS_dVpX05LVtBYssdlyYhTCG0kYmjo,138
17
+ multimodalrouter-0.1.14.dist-info/top_level.txt,sha256=4RYMG9hyl8mDNJ_gTrlh8QdYjZNXLDBzFVK1PcTpAYg,17
18
+ multimodalrouter-0.1.14.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ multiModalRouter-build = multimodalrouter.router.build:main
3
+ multiModalRouter-route = multimodalrouter.router.route:main
@@ -0,0 +1,10 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tobias Karusseit
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
@@ -0,0 +1,44 @@
1
+ # Dependencies and Licenses
2
+
3
+ This project `MultiModalRouter` depends on the following libraries. All licenses are permissive and compatible with MIT licensing for this project.
4
+
5
+ | Package | Version | License | License Link |
6
+ |---------|---------|---------|--------------|
7
+ | colorama | >=0.4.6 | BSD 3-Clause | [License](https://github.com/tartley/colorama/blob/master/LICENSE) |
8
+ | dill | >=0.4.0 | BSD | [License](https://github.com/uqfoundation/dill/blob/main/LICENSE) |
9
+ | filelock | >=3.19.1 | MIT | [License](https://github.com/tox-dev/py-filelock/blob/main/LICENSE) |
10
+ | fsspec | >=2025.9.0 | Apache 2.0 | [License](https://github.com/fsspec/filesystem_spec/blob/main/LICENSE) |
11
+ | Jinja2 | >=3.1.6 | BSD-3-Clause | [License](https://github.com/pallets/jinja/blob/main/LICENSE) |
12
+ | MarkupSafe | >=3.0.2 | BSD-3-Clause | [License](https://github.com/pallets/markupsafe/blob/main/LICENSE) |
13
+ | mpmath | >=1.3.0 | BSD | [License](https://github.com/fredrik-johansson/mpmath/blob/master/LICENSE) |
14
+ | networkx | >=3.5 | BSD | [License](https://github.com/networkx/networkx/blob/main/LICENSE.txt) |
15
+ | numpy | >=2.3.3 | BSD | [License](https://github.com/numpy/numpy/blob/main/LICENSE.txt) |
16
+ | pandas | >=2.3.2 | BSD-3-Clause | [License](https://github.com/pandas-dev/pandas/blob/main/LICENSE) |
17
+ | parquet | >=1.3.1 | Apache 2.0 | [License](https://github.com/urschrei/parquet-python/blob/master/LICENSE) |
18
+ | ply | >=3.11 | BSD | [License](https://github.com/dabeaz/ply/blob/master/LICENSE.txt) |
19
+ | pyarrow | >=21.0.0 | Apache 2.0 | [License](https://github.com/apache/arrow/blob/master/LICENSE) |
20
+ | python-dateutil | >=2.9.0.post0 | BSD | [License](https://github.com/dateutil/dateutil/blob/master/LICENSE.txt) |
21
+ | pytz | >=2025.2 | MIT | [License](https://github.com/stub42/pytz/blob/master/LICENSE) |
22
+ | setuptools | >=80.9.0 | MIT | [License](https://github.com/pypa/setuptools/blob/main/LICENSE) |
23
+ | six | >=1.17.0 | MIT | [License](https://github.com/benjaminp/six/blob/master/LICENSE) |
24
+ | sympy | >=1.14.0 | BSD | [License](https://github.com/sympy/sympy/blob/master/LICENSE) |
25
+ | thriftpy2 | >=0.5.3 | MIT | [License](https://github.com/Thriftpy/thriftpy2/blob/master/LICENSE) |
26
+ | tqdm | >=4.67.1 | MPL 2.0 | [License](https://github.com/tqdm/tqdm/blob/master/LICENSE) |
27
+ | typing_extensions | >=4.15.0 | PSF | [License](https://github.com/python/typing_extensions/blob/main/LICENSE) |
28
+ | tzdata | >=2025.2 | Public Domain | [License](https://github.com/python/tzdata) |
29
+
30
+ ## Optional Dependencies
31
+
32
+ | Package | Version | License | License Link |
33
+ |---------|---------|---------|--------------|
34
+ | torch | >=2.8.0 | BSD | [License](https://github.com/pytorch/pytorch/blob/master/LICENSE) |
35
+ | plotly | >=6.3.0 | MIT | [License](https://github.com/plotly/plotly.py/blob/master/LICENSE) |
36
+ | pytest | >=8.0 | MIT | [License](https://github.com/pytest-dev/pytest/blob/main/LICENSE) |
37
+
38
+ ---
39
+
40
+ ### Notes
41
+
42
+ 1. All packages listed above are permissively licensed (MIT, BSD, Apache 2.0, or Public Domain), so they are compatible with MIT licensing for this project.
43
+ 2. If distributing this library, include this `DEPENDENCIES.md` file and your own MIT license file to give proper attribution.
44
+ 3. Optional dependencies should be listed in documentation or `pyproject.toml` extras.
@@ -0,0 +1 @@
1
+ multimodalrouter