scigraphs-core 0.2.1__tar.gz
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.
- scigraphs_core-0.2.1/LICENSE +21 -0
- scigraphs_core-0.2.1/PKG-INFO +111 -0
- scigraphs_core-0.2.1/README.md +16 -0
- scigraphs_core-0.2.1/pyproject.toml +92 -0
- scigraphs_core-0.2.1/scigraphs_core/__init__.py +56 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/__init__.py +28 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/analysis.py +696 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/graph.py +9 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/network_flow.py +209 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/pathfinding.py +220 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/spanning.py +183 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/statistics.py +284 -0
- scigraphs_core-0.2.1/scigraphs_core/algorithms/topology.py +543 -0
- scigraphs_core-0.2.1/scigraphs_core/city2graph/__init__.py +32 -0
- scigraphs_core-0.2.1/scigraphs_core/city2graph/get_c2g.py +11 -0
- scigraphs_core-0.2.1/scigraphs_core/city2graph/metapaths.py +276 -0
- scigraphs_core-0.2.1/scigraphs_core/city2graph/mobility.py +87 -0
- scigraphs_core-0.2.1/scigraphs_core/city2graph/overture_api.py +379 -0
- scigraphs_core-0.2.1/scigraphs_core/coloring/__init__.py +24 -0
- scigraphs_core-0.2.1/scigraphs_core/coloring/attributes.py +240 -0
- scigraphs_core-0.2.1/scigraphs_core/coloring/colormaps.py +676 -0
- scigraphs_core-0.2.1/scigraphs_core/data_io/__init__.py +26 -0
- scigraphs_core-0.2.1/scigraphs_core/data_io/db_connector.py +323 -0
- scigraphs_core-0.2.1/scigraphs_core/data_io/export_utils.py +231 -0
- scigraphs_core-0.2.1/scigraphs_core/data_io/sql_importer.py +216 -0
- scigraphs_core-0.2.1/scigraphs_core/data_io/suitesparse_importer.py +355 -0
- scigraphs_core-0.2.1/scigraphs_core/feature_tags.py +109 -0
- scigraphs_core-0.2.1/scigraphs_core/geo/__init__.py +26 -0
- scigraphs_core-0.2.1/scigraphs_core/geo/dem_download.py +279 -0
- scigraphs_core-0.2.1/scigraphs_core/geo/georaster.py +253 -0
- scigraphs_core-0.2.1/scigraphs_core/geo/imagery.py +584 -0
- scigraphs_core-0.2.1/scigraphs_core/logger.py +15 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/__init__.py +26 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/edge_styles.py +516 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layout.py +3 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/__init__.py +11 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/basic.py +107 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/circle_packing.py +547 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/common.py +206 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/dispatcher.py +163 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/forceatlas.py +152 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/hierarchical.py +275 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/igraph_layouts.py +448 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/interactive.py +391 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/networkx_layouts.py +150 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/simulation.py +352 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/splitter.py +352 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/layouts/yifan_hu.py +240 -0
- scigraphs_core-0.2.1/scigraphs_core/mesh/mesh_utils.py +239 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/__init__.py +216 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/accessibility.py +190 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/analysis.py +64 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/bearing.py +119 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/centrality.py +317 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/convert.py +116 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/distance.py +79 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/edge_attributes.py +222 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/elevation.py +155 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/features.py +162 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/geocoder.py +45 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/get_osmnx.py +11 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/io.py +32 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/mesh_bridge.py +239 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/metadata.py +92 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/projection.py +55 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/routing.py +330 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/simplification.py +91 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/spatial_queries.py +151 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/stats.py +183 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/truncate.py +123 -0
- scigraphs_core-0.2.1/scigraphs_core/osmnx/utils_geo.py +84 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/__init__.py +73 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/determinism.py +145 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/digest.py +100 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/parser.py +313 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/provenance.py +405 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/schema.py +704 -0
- scigraphs_core-0.2.1/scigraphs_core/repro/untrusted.py +195 -0
- scigraphs_core-0.2.1/scigraphs_core/visualization/__init__.py +23 -0
- scigraphs_core-0.2.1/scigraphs_core/visualization/animation.py +94 -0
- scigraphs_core-0.2.1/scigraphs_core.egg-info/PKG-INFO +111 -0
- scigraphs_core-0.2.1/scigraphs_core.egg-info/SOURCES.txt +84 -0
- scigraphs_core-0.2.1/scigraphs_core.egg-info/dependency_links.txt +1 -0
- scigraphs_core-0.2.1/scigraphs_core.egg-info/requires.txt +66 -0
- scigraphs_core-0.2.1/scigraphs_core.egg-info/top_level.txt +1 -0
- scigraphs_core-0.2.1/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 José Marín
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: scigraphs-core
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Blender-free SciGraphs library: graphs, layouts, colormaps, OSM/geo, pipeline schema.
|
|
5
|
+
Author: José Marín
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 José Marín
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/SciBlend/SciGraphs
|
|
29
|
+
Project-URL: Repository, https://github.com/SciBlend/SciGraphs
|
|
30
|
+
Project-URL: Issues, https://github.com/SciBlend/SciGraphs/issues
|
|
31
|
+
Project-URL: Documentation, https://github.com/SciBlend/SciGraphs/tree/main/docs
|
|
32
|
+
Keywords: graph,network,layout,osm,geospatial,blender
|
|
33
|
+
Classifier: Development Status :: 3 - Alpha
|
|
34
|
+
Classifier: Intended Audience :: Science/Research
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
38
|
+
Requires-Python: >=3.10
|
|
39
|
+
Description-Content-Type: text/markdown
|
|
40
|
+
License-File: LICENSE
|
|
41
|
+
Requires-Dist: numpy>=1.23
|
|
42
|
+
Provides-Extra: networkx
|
|
43
|
+
Requires-Dist: networkx>=2.8; extra == "networkx"
|
|
44
|
+
Provides-Extra: scipy
|
|
45
|
+
Requires-Dist: scipy>=1.9; extra == "scipy"
|
|
46
|
+
Provides-Extra: igraph
|
|
47
|
+
Requires-Dist: python-igraph>=0.10; extra == "igraph"
|
|
48
|
+
Provides-Extra: rustworkx
|
|
49
|
+
Requires-Dist: rustworkx>=0.13; extra == "rustworkx"
|
|
50
|
+
Provides-Extra: geo
|
|
51
|
+
Requires-Dist: geopandas>=0.13; extra == "geo"
|
|
52
|
+
Requires-Dist: shapely>=2.0; extra == "geo"
|
|
53
|
+
Requires-Dist: pyproj>=3.4; extra == "geo"
|
|
54
|
+
Requires-Dist: osmnx>=1.6; extra == "geo"
|
|
55
|
+
Provides-Extra: raster
|
|
56
|
+
Requires-Dist: rasterio>=1.3; extra == "raster"
|
|
57
|
+
Requires-Dist: pillow>=9; extra == "raster"
|
|
58
|
+
Requires-Dist: GDAL>=3.6; extra == "raster"
|
|
59
|
+
Provides-Extra: urban
|
|
60
|
+
Requires-Dist: city2graph>=0.3; extra == "urban"
|
|
61
|
+
Provides-Extra: sql
|
|
62
|
+
Requires-Dist: pandas>=2.0; extra == "sql"
|
|
63
|
+
Requires-Dist: psycopg[binary]>=3.1; extra == "sql"
|
|
64
|
+
Requires-Dist: mysql-connector-python>=8.0; extra == "sql"
|
|
65
|
+
Requires-Dist: pymssql>=2.2; extra == "sql"
|
|
66
|
+
Provides-Extra: pipeline
|
|
67
|
+
Requires-Dist: PyYAML>=6.0; extra == "pipeline"
|
|
68
|
+
Provides-Extra: net
|
|
69
|
+
Requires-Dist: requests>=2.28; extra == "net"
|
|
70
|
+
Provides-Extra: cluster
|
|
71
|
+
Requires-Dist: pysurprise>=1.1; extra == "cluster"
|
|
72
|
+
Requires-Dist: scikit-learn>=1.2; extra == "cluster"
|
|
73
|
+
Provides-Extra: colormaps
|
|
74
|
+
Requires-Dist: matplotlib>=3.6; extra == "colormaps"
|
|
75
|
+
Provides-Extra: all
|
|
76
|
+
Requires-Dist: networkx>=2.8; extra == "all"
|
|
77
|
+
Requires-Dist: scipy>=1.9; extra == "all"
|
|
78
|
+
Requires-Dist: python-igraph>=0.10; extra == "all"
|
|
79
|
+
Requires-Dist: rustworkx>=0.13; extra == "all"
|
|
80
|
+
Requires-Dist: geopandas>=0.13; extra == "all"
|
|
81
|
+
Requires-Dist: shapely>=2.0; extra == "all"
|
|
82
|
+
Requires-Dist: pyproj>=3.4; extra == "all"
|
|
83
|
+
Requires-Dist: osmnx>=1.6; extra == "all"
|
|
84
|
+
Requires-Dist: city2graph>=0.3; extra == "all"
|
|
85
|
+
Requires-Dist: pandas>=2.0; extra == "all"
|
|
86
|
+
Requires-Dist: psycopg[binary]>=3.1; extra == "all"
|
|
87
|
+
Requires-Dist: mysql-connector-python>=8.0; extra == "all"
|
|
88
|
+
Requires-Dist: pymssql>=2.2; extra == "all"
|
|
89
|
+
Requires-Dist: PyYAML>=6.0; extra == "all"
|
|
90
|
+
Requires-Dist: requests>=2.28; extra == "all"
|
|
91
|
+
Requires-Dist: pysurprise>=1.1; extra == "all"
|
|
92
|
+
Requires-Dist: scikit-learn>=1.2; extra == "all"
|
|
93
|
+
Requires-Dist: matplotlib>=3.6; extra == "all"
|
|
94
|
+
Dynamic: license-file
|
|
95
|
+
|
|
96
|
+
# scigraphs-core
|
|
97
|
+
|
|
98
|
+
Graph algorithms, layouts, colormaps, OSM/geo helpers, and pipeline schema —
|
|
99
|
+
the SciGraphs bits that never touch Blender.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
pip install ./core
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Needs only numpy. Optional extras (`networkx`, `geo`, `sql`, …) are in
|
|
106
|
+
`pyproject.toml`. Import as `scigraphs_core`.
|
|
107
|
+
|
|
108
|
+
The add-on uses this package; this package never imports the add-on. Mesh
|
|
109
|
+
building, scene I/O, and rendering stay in the add-on / `scigraphs-engine`.
|
|
110
|
+
|
|
111
|
+
MIT. See `LICENSES.md` at the repo root.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# scigraphs-core
|
|
2
|
+
|
|
3
|
+
Graph algorithms, layouts, colormaps, OSM/geo helpers, and pipeline schema —
|
|
4
|
+
the SciGraphs bits that never touch Blender.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
pip install ./core
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Needs only numpy. Optional extras (`networkx`, `geo`, `sql`, …) are in
|
|
11
|
+
`pyproject.toml`. Import as `scigraphs_core`.
|
|
12
|
+
|
|
13
|
+
The add-on uses this package; this package never imports the add-on. Mesh
|
|
14
|
+
building, scene I/O, and rendering stay in the add-on / `scigraphs-engine`.
|
|
15
|
+
|
|
16
|
+
MIT. See `LICENSES.md` at the repo root.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "scigraphs-core"
|
|
7
|
+
version = "0.2.1"
|
|
8
|
+
description = "Blender-free SciGraphs library: graphs, layouts, colormaps, OSM/geo, pipeline schema."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
# Match scigraphs-engine so both wheels install into the same interpreter.
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
license = { file = "LICENSE" }
|
|
13
|
+
authors = [{ name = "José Marín" }]
|
|
14
|
+
keywords = ["graph", "network", "layout", "osm", "geospatial", "blender"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Science/Research",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Visualization",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
# Only hard dep. Everything else is optional and guarded at import.
|
|
24
|
+
dependencies = ["numpy>=1.23"]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://github.com/SciBlend/SciGraphs"
|
|
28
|
+
Repository = "https://github.com/SciBlend/SciGraphs"
|
|
29
|
+
Issues = "https://github.com/SciBlend/SciGraphs/issues"
|
|
30
|
+
Documentation = "https://github.com/SciBlend/SciGraphs/tree/main/docs"
|
|
31
|
+
|
|
32
|
+
[project.optional-dependencies]
|
|
33
|
+
# Names match what the code prints ("install the 'networkx' extra", etc.).
|
|
34
|
+
networkx = ["networkx>=2.8"]
|
|
35
|
+
scipy = ["scipy>=1.9"]
|
|
36
|
+
igraph = ["python-igraph>=0.10"]
|
|
37
|
+
rustworkx = ["rustworkx>=0.13"]
|
|
38
|
+
geo = ["geopandas>=0.13", "shapely>=2.0", "pyproj>=3.4", "osmnx>=1.6"]
|
|
39
|
+
# GDAL wheels are flaky; keep out of `all`. Use [all,raster] for everything.
|
|
40
|
+
raster = ["rasterio>=1.3", "pillow>=9", "GDAL>=3.6"]
|
|
41
|
+
urban = ["city2graph>=0.3"]
|
|
42
|
+
sql = [
|
|
43
|
+
"pandas>=2.0",
|
|
44
|
+
"psycopg[binary]>=3.1",
|
|
45
|
+
"mysql-connector-python>=8.0",
|
|
46
|
+
"pymssql>=2.2",
|
|
47
|
+
]
|
|
48
|
+
pipeline = ["PyYAML>=6.0"]
|
|
49
|
+
net = ["requests>=2.28"]
|
|
50
|
+
cluster = ["pysurprise>=1.1", "scikit-learn>=1.2"]
|
|
51
|
+
colormaps = ["matplotlib>=3.6"]
|
|
52
|
+
|
|
53
|
+
all = [
|
|
54
|
+
"networkx>=2.8",
|
|
55
|
+
"scipy>=1.9",
|
|
56
|
+
"python-igraph>=0.10",
|
|
57
|
+
"rustworkx>=0.13",
|
|
58
|
+
"geopandas>=0.13",
|
|
59
|
+
"shapely>=2.0",
|
|
60
|
+
"pyproj>=3.4",
|
|
61
|
+
"osmnx>=1.6",
|
|
62
|
+
"city2graph>=0.3",
|
|
63
|
+
"pandas>=2.0",
|
|
64
|
+
"psycopg[binary]>=3.1",
|
|
65
|
+
"mysql-connector-python>=8.0",
|
|
66
|
+
"pymssql>=2.2",
|
|
67
|
+
"PyYAML>=6.0",
|
|
68
|
+
"requests>=2.28",
|
|
69
|
+
"pysurprise>=1.1",
|
|
70
|
+
"scikit-learn>=1.2",
|
|
71
|
+
"matplotlib>=3.6",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
# Not listed: fa2 (unmaintained), scigraphs_utils (cp313-only), scigraphs_engine
|
|
75
|
+
# (add-on glue, not this wheel).
|
|
76
|
+
|
|
77
|
+
[tool.setuptools]
|
|
78
|
+
# Explicit list so stray dirs cannot sneak into the wheel.
|
|
79
|
+
packages = [
|
|
80
|
+
"scigraphs_core",
|
|
81
|
+
"scigraphs_core.algorithms",
|
|
82
|
+
"scigraphs_core.city2graph",
|
|
83
|
+
"scigraphs_core.coloring",
|
|
84
|
+
"scigraphs_core.data_io",
|
|
85
|
+
"scigraphs_core.geo",
|
|
86
|
+
"scigraphs_core.mesh",
|
|
87
|
+
"scigraphs_core.mesh.layouts",
|
|
88
|
+
"scigraphs_core.osmnx",
|
|
89
|
+
"scigraphs_core.repro",
|
|
90
|
+
"scigraphs_core.visualization",
|
|
91
|
+
]
|
|
92
|
+
license-files = ["LICENSE"]
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""SciGraphs core: analysis with no Blender. Graph algorithms, layouts, color,
|
|
2
|
+
I/O, OSMnx and city2graph; mesh and scene code stays in the add-on, which this
|
|
3
|
+
package must never import (``scripts/extract/test_core_standalone.py``). numpy is
|
|
4
|
+
required and the rest optional. Submodules load on first use, and ``_LAZY`` values
|
|
5
|
+
must stay plain strings: the purity test reads the table with ``literal_eval``."""
|
|
6
|
+
|
|
7
|
+
_LAZY = {
|
|
8
|
+
'algorithms': '.algorithms',
|
|
9
|
+
'analysis': '.algorithms.analysis',
|
|
10
|
+
'animation': '.visualization.animation',
|
|
11
|
+
'city2graph': '.city2graph',
|
|
12
|
+
'coloring': '.coloring',
|
|
13
|
+
'data_io': '.data_io',
|
|
14
|
+
'db_connector': '.data_io.db_connector',
|
|
15
|
+
'dem_download': '.geo.dem_download',
|
|
16
|
+
'edge_styles': '.mesh.edge_styles',
|
|
17
|
+
'export_utils': '.data_io.export_utils',
|
|
18
|
+
'feature_tags': '.feature_tags',
|
|
19
|
+
'geo': '.geo',
|
|
20
|
+
'georaster': '.geo.georaster',
|
|
21
|
+
'graph': '.algorithms.graph',
|
|
22
|
+
'layout': '.mesh.layout',
|
|
23
|
+
'logger': '.logger',
|
|
24
|
+
'mesh': '.mesh',
|
|
25
|
+
'mesh_utils': '.mesh.mesh_utils',
|
|
26
|
+
'network_flow': '.algorithms.network_flow',
|
|
27
|
+
'osmnx': '.osmnx',
|
|
28
|
+
'osmnx_analysis': '.osmnx.analysis',
|
|
29
|
+
'pathfinding': '.algorithms.pathfinding',
|
|
30
|
+
'repro': '.repro',
|
|
31
|
+
'spanning': '.algorithms.spanning',
|
|
32
|
+
'sql_importer': '.data_io.sql_importer',
|
|
33
|
+
'statistics': '.algorithms.statistics',
|
|
34
|
+
'suitesparse_importer': '.data_io.suitesparse_importer',
|
|
35
|
+
'topology': '.algorithms.topology',
|
|
36
|
+
'visualization': '.visualization',
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
__all__ = list(_LAZY)
|
|
40
|
+
|
|
41
|
+
__version__ = "0.2.1"
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def __getattr__(name):
|
|
45
|
+
target = _LAZY.get(name)
|
|
46
|
+
if target is None:
|
|
47
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
48
|
+
import importlib
|
|
49
|
+
|
|
50
|
+
module = importlib.import_module(target, __name__)
|
|
51
|
+
globals()[name] = module
|
|
52
|
+
return module
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def __dir__():
|
|
56
|
+
return sorted(set(globals()) | set(_LAZY))
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Graph algorithms, imported lazily so a missing optional backend costs nothing.
|
|
2
|
+
|
|
3
|
+
_LAZY = {
|
|
4
|
+
"analysis": ".analysis",
|
|
5
|
+
"graph": ".graph",
|
|
6
|
+
"network_flow": ".network_flow",
|
|
7
|
+
"pathfinding": ".pathfinding",
|
|
8
|
+
"spanning": ".spanning",
|
|
9
|
+
"statistics": ".statistics",
|
|
10
|
+
"topology": ".topology",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
__all__ = list(_LAZY)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(name):
|
|
17
|
+
target = _LAZY.get(name)
|
|
18
|
+
if target is None:
|
|
19
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
20
|
+
import importlib
|
|
21
|
+
|
|
22
|
+
module = importlib.import_module(target, __name__)
|
|
23
|
+
globals()[name] = module
|
|
24
|
+
return module
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def __dir__():
|
|
28
|
+
return sorted(set(globals()) | set(_LAZY))
|