lanestyle 0.3.2__tar.gz → 0.4.0__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.
- {lanestyle-0.3.2/src/lanestyle.egg-info → lanestyle-0.4.0}/PKG-INFO +22 -22
- {lanestyle-0.3.2 → lanestyle-0.4.0}/README.md +2 -2
- {lanestyle-0.3.2 → lanestyle-0.4.0}/pyproject.toml +12 -10
- lanestyle-0.4.0/rust/Cargo.lock +2879 -0
- lanestyle-0.4.0/rust/Cargo.toml +22 -0
- lanestyle-0.4.0/rust/lanestyle/Cargo.toml +32 -0
- lanestyle-0.4.0/rust/lanestyle/examples/area_roads.rs +8 -0
- lanestyle-0.4.0/rust/lanestyle/examples/golden.rs +144 -0
- lanestyle-0.4.0/rust/lanestyle/examples/lane_page.rs +18 -0
- lanestyle-0.4.0/rust/lanestyle/src/arrows.rs +128 -0
- lanestyle-0.4.0/rust/lanestyle/src/editor.rs +270 -0
- lanestyle-0.4.0/rust/lanestyle/src/geo.rs +629 -0
- lanestyle-0.4.0/rust/lanestyle/src/gmns.rs +443 -0
- lanestyle-0.4.0/rust/lanestyle/src/items.rs +473 -0
- lanestyle-0.4.0/rust/lanestyle/src/lanes.rs +134 -0
- lanestyle-0.4.0/rust/lanestyle/src/lib.rs +17 -0
- lanestyle-0.4.0/rust/lanestyle/src/page.rs +160 -0
- lanestyle-0.4.0/rust/lanestyle/src/settings.rs +117 -0
- lanestyle-0.4.0/rust/lanestyle/src/strokes.rs +208 -0
- lanestyle-0.4.0/rust/lanestyle/tests/rules.rs +247 -0
- lanestyle-0.4.0/rust/lanestyle-py/Cargo.toml +17 -0
- lanestyle-0.4.0/rust/lanestyle-py/build.py +19 -0
- lanestyle-0.4.0/rust/lanestyle-py/src/lib.rs +133 -0
- {lanestyle-0.3.2 → lanestyle-0.4.0}/src/lanestyle/__init__.py +4 -3
- lanestyle-0.4.0/src/lanestyle/_rust_call.py +11 -0
- lanestyle-0.4.0/src/lanestyle/editor.py +30 -0
- lanestyle-0.4.0/src/lanestyle/gmns.py +80 -0
- lanestyle-0.4.0/src/lanestyle/page.py +35 -0
- lanestyle-0.4.0/src/lanestyle/settings.py +10 -0
- lanestyle-0.3.2/PKG-INFO +0 -110
- lanestyle-0.3.2/setup.cfg +0 -4
- lanestyle-0.3.2/src/lanestyle/arrows.py +0 -84
- lanestyle-0.3.2/src/lanestyle/editor.py +0 -189
- lanestyle-0.3.2/src/lanestyle/gmns.py +0 -292
- lanestyle-0.3.2/src/lanestyle/items.py +0 -392
- lanestyle-0.3.2/src/lanestyle/levels.py +0 -22
- lanestyle-0.3.2/src/lanestyle/page.py +0 -29
- lanestyle-0.3.2/src/lanestyle/settings.py +0 -87
- lanestyle-0.3.2/src/lanestyle/strokes.py +0 -180
- lanestyle-0.3.2/src/lanestyle.egg-info/SOURCES.txt +0 -21
- lanestyle-0.3.2/src/lanestyle.egg-info/dependency_links.txt +0 -1
- lanestyle-0.3.2/src/lanestyle.egg-info/requires.txt +0 -13
- lanestyle-0.3.2/src/lanestyle.egg-info/top_level.txt +0 -1
- lanestyle-0.3.2/tests/test_lanestyle.py +0 -299
- lanestyle-0.3.2/tests/test_roads_and_items.py +0 -185
- lanestyle-0.3.2/tests/test_strokes.py +0 -148
- {lanestyle-0.3.2 → lanestyle-0.4.0}/LICENSE +0 -0
- {lanestyle-0.3.2/src → lanestyle-0.4.0/rust}/lanestyle/data/lanestyle.json +0 -0
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lanestyle
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Lane-level road maps on roadstyle: every road as wide as its lanes, with bus and bike lanes, lane lines, turn arrows, zebra crossings and sidewalks, from duckOSM's GMNS lanes
|
|
5
|
-
Author: Kaveh
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/Khoshkhah/lanestyle
|
|
8
|
-
Project-URL: Repository, https://github.com/Khoshkhah/lanestyle
|
|
9
|
-
Project-URL: Issues, https://github.com/Khoshkhah/lanestyle/issues
|
|
10
|
-
Project-URL: roadstyle, https://github.com/Khoshkhah/roadstyle
|
|
11
|
-
Project-URL: duckOSM, https://github.com/Khoshkhah/duckOSM
|
|
12
|
-
Keywords: lanes,lane-level map,GMNS,OpenStreetMap,roadstyle,duckOSM,MapLibre,traffic
|
|
3
|
+
Version: 0.4.0
|
|
13
4
|
Classifier: Development Status :: 4 - Beta
|
|
14
5
|
Classifier: Intended Audience :: Science/Research
|
|
15
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -19,21 +10,29 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
11
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
21
12
|
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
22
|
-
Requires-Python: >=3.10
|
|
23
|
-
Description-Content-Type: text/markdown
|
|
24
|
-
License-File: LICENSE
|
|
25
|
-
Requires-Dist: roadstyle>=0.24.2
|
|
26
13
|
Requires-Dist: geopandas
|
|
27
14
|
Requires-Dist: shapely>=2
|
|
28
|
-
Requires-Dist: duckdb
|
|
29
15
|
Requires-Dist: pandas
|
|
16
|
+
Requires-Dist: pytest ; extra == 'dev'
|
|
17
|
+
Requires-Dist: duckdb>=1.5,<1.6 ; extra == 'dev'
|
|
18
|
+
Requires-Dist: roadstyle>=0.29 ; extra == 'dev'
|
|
19
|
+
Requires-Dist: mkdocs>=1.6,<2 ; extra == 'docs'
|
|
20
|
+
Requires-Dist: mkdocs-material>=9.5,<10 ; extra == 'docs'
|
|
21
|
+
Requires-Dist: mkdocs-llmstxt>=0.5,<0.6 ; extra == 'docs'
|
|
30
22
|
Provides-Extra: dev
|
|
31
|
-
Requires-Dist: pytest; extra == "dev"
|
|
32
23
|
Provides-Extra: docs
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Summary: Lane-level road maps on roadstyle: every road as wide as its lanes, with bus and bike lanes, lane lines, turn arrows, zebra crossings and sidewalks, from duckOSM's GMNS lanes
|
|
26
|
+
Keywords: lanes,lane-level map,GMNS,OpenStreetMap,roadstyle,duckOSM,MapLibre,traffic
|
|
27
|
+
Author: Kaveh
|
|
28
|
+
License-Expression: MIT
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
31
|
+
Project-URL: Homepage, https://github.com/Khoshkhah/lanestyle
|
|
32
|
+
Project-URL: Issues, https://github.com/Khoshkhah/lanestyle/issues
|
|
33
|
+
Project-URL: Repository, https://github.com/Khoshkhah/lanestyle
|
|
34
|
+
Project-URL: duckOSM, https://github.com/Khoshkhah/duckOSM
|
|
35
|
+
Project-URL: roadstyle, https://github.com/Khoshkhah/roadstyle
|
|
37
36
|
|
|
38
37
|
<p align="center">
|
|
39
38
|
<img src="https://raw.githubusercontent.com/Khoshkhah/lanestyle/master/docs/img/logo.svg" alt="lanestyle" width="96">
|
|
@@ -94,8 +93,8 @@ or `python lane_page.py monaco.levels monaco_gmns.duckdb monaco.duckdb monaco.ht
|
|
|
94
93
|
A road cars do not use (a footway, a cycleway) is drawn in the colour of who uses it.
|
|
95
94
|
|
|
96
95
|
lanestyle draws nothing of its own: roadstyle draws every road, lanestyle only reads duckOSM's GMNS lanes and adds them to the roads
|
|
97
|
-
as items. Settings (colours, widths, dashes, marks): `
|
|
98
|
-
current folder.
|
|
96
|
+
as items. Settings (colours, widths, dashes, marks): `rust/lanestyle/data/lanestyle.json`, overridden by a `lanestyle.json` in the
|
|
97
|
+
current folder. The rules are Rust (the crate `rust/lanestyle`); the Python package calls them.
|
|
99
98
|
|
|
100
99
|
## For AI agents
|
|
101
100
|
|
|
@@ -108,3 +107,4 @@ More: [AI agents](https://khoshkhah.github.io/lanestyle/guides/agents/).
|
|
|
108
107
|
## License
|
|
109
108
|
|
|
110
109
|
MIT
|
|
110
|
+
|
|
@@ -57,8 +57,8 @@ or `python lane_page.py monaco.levels monaco_gmns.duckdb monaco.duckdb monaco.ht
|
|
|
57
57
|
A road cars do not use (a footway, a cycleway) is drawn in the colour of who uses it.
|
|
58
58
|
|
|
59
59
|
lanestyle draws nothing of its own: roadstyle draws every road, lanestyle only reads duckOSM's GMNS lanes and adds them to the roads
|
|
60
|
-
as items. Settings (colours, widths, dashes, marks): `
|
|
61
|
-
current folder.
|
|
60
|
+
as items. Settings (colours, widths, dashes, marks): `rust/lanestyle/data/lanestyle.json`, overridden by a `lanestyle.json` in the
|
|
61
|
+
current folder. The rules are Rust (the crate `rust/lanestyle`); the Python package calls them.
|
|
62
62
|
|
|
63
63
|
## For AI agents
|
|
64
64
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# one wheel with the Rust engine in it (rust/lanestyle-py, abi3: the module lanestyle._rust), as roadstyle
|
|
3
|
+
requires = ["maturin>=1.8,<2"]
|
|
4
|
+
build-backend = "maturin"
|
|
4
5
|
|
|
5
6
|
[project]
|
|
6
7
|
name = "lanestyle"
|
|
7
|
-
version = "0.
|
|
8
|
+
version = "0.4.0"
|
|
8
9
|
description = "Lane-level road maps on roadstyle: every road as wide as its lanes, with bus and bike lanes, lane lines, turn arrows, zebra crossings and sidewalks, from duckOSM's GMNS lanes"
|
|
9
10
|
readme = "README.md"
|
|
10
11
|
requires-python = ">=3.10"
|
|
@@ -23,10 +24,11 @@ classifiers = [
|
|
|
23
24
|
"Topic :: Scientific/Engineering :: GIS",
|
|
24
25
|
"Topic :: Scientific/Engineering :: Visualization",
|
|
25
26
|
]
|
|
26
|
-
|
|
27
|
+
# roadstyle (its Rust engine) and DuckDB are in the extension module; Python makes the tables
|
|
28
|
+
dependencies = ["geopandas", "shapely>=2", "pandas"]
|
|
27
29
|
|
|
28
30
|
[project.optional-dependencies]
|
|
29
|
-
dev = ["pytest"]
|
|
31
|
+
dev = ["pytest", "duckdb>=1.5,<1.6", "roadstyle>=0.29"] # the tests make small GMNS files (duckdb) and level areas (roadstyle)
|
|
30
32
|
docs = ["mkdocs>=1.6,<2", "mkdocs-material>=9.5,<10", "mkdocs-llmstxt>=0.5,<0.6"]
|
|
31
33
|
|
|
32
34
|
[project.urls]
|
|
@@ -36,8 +38,8 @@ Issues = "https://github.com/Khoshkhah/lanestyle/issues"
|
|
|
36
38
|
roadstyle = "https://github.com/Khoshkhah/roadstyle"
|
|
37
39
|
duckOSM = "https://github.com/Khoshkhah/duckOSM"
|
|
38
40
|
|
|
39
|
-
[tool.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
[tool.maturin]
|
|
42
|
+
python-source = "src"
|
|
43
|
+
module-name = "lanestyle._rust"
|
|
44
|
+
manifest-path = "rust/lanestyle-py/Cargo.toml"
|
|
45
|
+
exclude = ["src/lanestyle/_rust.abi3.so", "src/lanestyle/**/__pycache__/**"]
|