scigraphs-core 0.2.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.
Files changed (81) hide show
  1. scigraphs_core/__init__.py +56 -0
  2. scigraphs_core/algorithms/__init__.py +28 -0
  3. scigraphs_core/algorithms/analysis.py +696 -0
  4. scigraphs_core/algorithms/graph.py +9 -0
  5. scigraphs_core/algorithms/network_flow.py +209 -0
  6. scigraphs_core/algorithms/pathfinding.py +220 -0
  7. scigraphs_core/algorithms/spanning.py +183 -0
  8. scigraphs_core/algorithms/statistics.py +284 -0
  9. scigraphs_core/algorithms/topology.py +543 -0
  10. scigraphs_core/city2graph/__init__.py +32 -0
  11. scigraphs_core/city2graph/get_c2g.py +11 -0
  12. scigraphs_core/city2graph/metapaths.py +276 -0
  13. scigraphs_core/city2graph/mobility.py +87 -0
  14. scigraphs_core/city2graph/overture_api.py +379 -0
  15. scigraphs_core/coloring/__init__.py +24 -0
  16. scigraphs_core/coloring/attributes.py +240 -0
  17. scigraphs_core/coloring/colormaps.py +676 -0
  18. scigraphs_core/data_io/__init__.py +26 -0
  19. scigraphs_core/data_io/db_connector.py +323 -0
  20. scigraphs_core/data_io/export_utils.py +231 -0
  21. scigraphs_core/data_io/sql_importer.py +216 -0
  22. scigraphs_core/data_io/suitesparse_importer.py +355 -0
  23. scigraphs_core/feature_tags.py +109 -0
  24. scigraphs_core/geo/__init__.py +26 -0
  25. scigraphs_core/geo/dem_download.py +279 -0
  26. scigraphs_core/geo/georaster.py +253 -0
  27. scigraphs_core/geo/imagery.py +584 -0
  28. scigraphs_core/logger.py +15 -0
  29. scigraphs_core/mesh/__init__.py +26 -0
  30. scigraphs_core/mesh/edge_styles.py +516 -0
  31. scigraphs_core/mesh/layout.py +3 -0
  32. scigraphs_core/mesh/layouts/__init__.py +11 -0
  33. scigraphs_core/mesh/layouts/basic.py +107 -0
  34. scigraphs_core/mesh/layouts/circle_packing.py +547 -0
  35. scigraphs_core/mesh/layouts/common.py +206 -0
  36. scigraphs_core/mesh/layouts/dispatcher.py +163 -0
  37. scigraphs_core/mesh/layouts/forceatlas.py +152 -0
  38. scigraphs_core/mesh/layouts/hierarchical.py +275 -0
  39. scigraphs_core/mesh/layouts/igraph_layouts.py +448 -0
  40. scigraphs_core/mesh/layouts/interactive.py +391 -0
  41. scigraphs_core/mesh/layouts/networkx_layouts.py +150 -0
  42. scigraphs_core/mesh/layouts/simulation.py +352 -0
  43. scigraphs_core/mesh/layouts/splitter.py +352 -0
  44. scigraphs_core/mesh/layouts/yifan_hu.py +240 -0
  45. scigraphs_core/mesh/mesh_utils.py +239 -0
  46. scigraphs_core/osmnx/__init__.py +216 -0
  47. scigraphs_core/osmnx/accessibility.py +190 -0
  48. scigraphs_core/osmnx/analysis.py +64 -0
  49. scigraphs_core/osmnx/bearing.py +119 -0
  50. scigraphs_core/osmnx/centrality.py +317 -0
  51. scigraphs_core/osmnx/convert.py +116 -0
  52. scigraphs_core/osmnx/distance.py +79 -0
  53. scigraphs_core/osmnx/edge_attributes.py +222 -0
  54. scigraphs_core/osmnx/elevation.py +155 -0
  55. scigraphs_core/osmnx/features.py +162 -0
  56. scigraphs_core/osmnx/geocoder.py +45 -0
  57. scigraphs_core/osmnx/get_osmnx.py +11 -0
  58. scigraphs_core/osmnx/io.py +32 -0
  59. scigraphs_core/osmnx/mesh_bridge.py +239 -0
  60. scigraphs_core/osmnx/metadata.py +92 -0
  61. scigraphs_core/osmnx/projection.py +55 -0
  62. scigraphs_core/osmnx/routing.py +330 -0
  63. scigraphs_core/osmnx/simplification.py +91 -0
  64. scigraphs_core/osmnx/spatial_queries.py +151 -0
  65. scigraphs_core/osmnx/stats.py +183 -0
  66. scigraphs_core/osmnx/truncate.py +123 -0
  67. scigraphs_core/osmnx/utils_geo.py +84 -0
  68. scigraphs_core/repro/__init__.py +73 -0
  69. scigraphs_core/repro/determinism.py +145 -0
  70. scigraphs_core/repro/digest.py +100 -0
  71. scigraphs_core/repro/parser.py +313 -0
  72. scigraphs_core/repro/provenance.py +405 -0
  73. scigraphs_core/repro/schema.py +704 -0
  74. scigraphs_core/repro/untrusted.py +195 -0
  75. scigraphs_core/visualization/__init__.py +23 -0
  76. scigraphs_core/visualization/animation.py +94 -0
  77. scigraphs_core-0.2.1.dist-info/METADATA +111 -0
  78. scigraphs_core-0.2.1.dist-info/RECORD +81 -0
  79. scigraphs_core-0.2.1.dist-info/WHEEL +5 -0
  80. scigraphs_core-0.2.1.dist-info/licenses/LICENSE +21 -0
  81. scigraphs_core-0.2.1.dist-info/top_level.txt +1 -0
@@ -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))