pixel-map 0.2.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pixel-map
3
- Version: 0.2.4
3
+ Version: 0.4.0
4
4
  Summary: A Python CLI tool for plotting geo files in the terminal
5
5
  Author-Email: Kamil Raczycki <kraczycki@kraina.ai>
6
6
  License: MIT
@@ -10,26 +10,25 @@ Classifier: Topic :: Scientific/Engineering :: GIS
10
10
  Classifier: Intended Audience :: Science/Research
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
13
  Classifier: Programming Language :: Python :: 3.11
16
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
17
16
  Classifier: Operating System :: Unix
18
17
  Classifier: Operating System :: MacOS
19
18
  Classifier: Operating System :: Microsoft :: Windows
20
19
  Project-URL: Homepage, https://github.com/RaczeQ/pixel-map
21
20
  Project-URL: Repository, https://github.com/RaczeQ/pixel-map
21
+ Project-URL: Documentation, https://raczeq.github.io/pixel-map/
22
22
  Project-URL: Changelog, https://github.com/RaczeQ/pixel-map/blob/main/CHANGELOG.md
23
- Requires-Python: >=3.9
23
+ Requires-Python: >=3.11
24
24
  Requires-Dist: rich>=12.0.0
25
- Requires-Dist: typer[all]>=0.9.0
26
- Requires-Dist: img2unicode[n2]>=0.1a11; sys_platform != "win32" and sys_platform != "darwin"
27
- Requires-Dist: img2unicode>=0.1a11; sys_platform == "win32" or sys_platform == "darwin"
28
- Requires-Dist: geopandas>=0.8
25
+ Requires-Dist: typer[all]>=0.16.0
26
+ Requires-Dist: geopandas>=0.14
29
27
  Requires-Dist: numpy>=1.26.0
30
- Requires-Dist: contextily>=1
28
+ Requires-Dist: basemaplibre>=0.1.1
31
29
  Requires-Dist: matplotlib>=3.2.0
32
30
  Requires-Dist: pyarrow>=16.0.0
31
+ Requires-Dist: pillow>=10.1.0
33
32
  Description-Content-Type: text/markdown
34
33
 
35
34
  # pixel-map
@@ -43,25 +42,17 @@ Python CLI tool for plotting geo data in the terminal
43
42
  <p align="center">
44
43
  <img alt="GitHub" src="https://img.shields.io/github/license/raczeq/pixel-map?logo=mit&logoColor=%23fff">
45
44
  <img src="https://img.shields.io/github/checks-status/raczeq/pixel-map/main?logo=GitHubActions&logoColor=%23fff" alt="Checks">
46
- <a href="https://github.com/raczeq/pixel-map/actions/workflows/ci-prod.yml" target="_blank">
47
- <img alt="GitHub Workflow Status - PROD" src="https://img.shields.io/github/actions/workflow/status/raczeq/pixel-map/ci-prod.yml?label=build-prod&logo=GitHubActions&logoColor=%23fff">
48
- </a>
49
- <a href="https://results.pre-commit.ci/latest/github/raczeq/pixel-map/main" target="_blank">
50
- <img src="https://results.pre-commit.ci/badge/github/raczeq/pixel-map/main.svg" alt="pre-commit.ci status">
51
- </a>
45
+ <a href="https://github.com/raczeq/pixel-map/actions/workflows/ci-prod.yml" target="_blank"><img alt="GitHub Workflow Status - PROD" src="https://img.shields.io/github/actions/workflow/status/raczeq/pixel-map/ci-prod.yml?label=build-prod&logo=GitHubActions&logoColor=%23fff"></a>
46
+ <a href="https://results.pre-commit.ci/latest/github/raczeq/pixel-map/main" target="_blank"><img src="https://results.pre-commit.ci/badge/github/raczeq/pixel-map/main.svg" alt="pre-commit.ci status"></a>
52
47
  <a href="https://www.codefactor.io/repository/github/raczeq/pixel-map"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/raczeq/pixel-map?logo=codefactor&logoColor=%23fff"></a>
53
48
  <a href="https://app.codecov.io/gh/raczeq/pixel-map/tree/main"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/raczeq/pixel-map?logo=codecov&token=PRS4E02ZX0&logoColor=%23fff"></a>
54
- <a href="https://pypi.org/project/pixel-map" target="_blank">
55
- <img src="https://img.shields.io/pypi/v/pixel-map?color=%2334D058&label=pypi%20package&logo=pypi&logoColor=%23fff" alt="Package version">
56
- </a>
57
- <a href="https://pypi.org/project/pixel-map" target="_blank">
58
- <img src="https://img.shields.io/pypi/pyversions/pixel-map.svg?color=%2334D058&logo=python&logoColor=%23fff" alt="Supported Python versions">
59
- </a>
60
- <a href="https://pypi.org/project/pixel-map" target="_blank">
61
- <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/pixel-map">
62
- </a>
49
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img src="https://img.shields.io/pypi/v/pixel-map?color=%2334D058&label=pypi%20package&logo=pypi&logoColor=%23fff" alt="Package version"></a>
50
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img src="https://img.shields.io/pypi/pyversions/pixel-map.svg?color=%2334D058&logo=python&logoColor=%23fff" alt="Supported Python versions"></a>
51
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/pixel-map"></a>
63
52
  </p>
64
53
 
54
+ [Documentation](https://raczeq.github.io/pixel-map/) · [Examples](https://raczeq.github.io/pixel-map/examples/) · [Basemaps](https://raczeq.github.io/pixel-map/basemaps/) · [Renderers](https://raczeq.github.io/pixel-map/renderers/)
55
+
65
56
  ## Installation
66
57
 
67
58
  PyPI:
@@ -94,38 +85,42 @@ See more examples below ⬇️
94
85
  <summary>CLI Help output (<code>pixel-map -h</code>)</summary>
95
86
 
96
87
  ```console
97
- Usage: pixel-map [OPTIONS] FILES...
88
+ Usage: pixel-map [OPTIONS] {files}...
98
89
 
99
90
  Plot the geo data into a terminal.
91
+
100
92
  Generates a Matplotlib canvas that is rendered to an image and later transformed into a list of
101
93
  unicode characters.
102
94
 
103
- ╭─ Arguments ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
104
- │ * files FILES... List of files to display. Those could be any that can be opened by GeoPandas. [required] │
105
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
106
- ╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
107
- │ --bbox -b BBOX Clip the map to a given bounding box. Expects 4 floating point numbers separated by commas. │
108
- │ --renderer -r TEXT Renderer used for generating terminal output. Possible values: all, ascii, ascii-bw, block, braille, braille-bw, half, quad, │
109
- │ space. │
110
- │ [default: (block)] │
111
- │ --dark --light Uses the predefined dark or light style. Can be overriden with user defined style. [default: dark] │
112
- │ --color -c COLOR Pass color or list of colours per each geo file. │
113
- │ --alpha,--opacity -a FLOAT Pass opacity or list of opacities per each geo file. │
114
- │ --basemap,--tileset -t TILES Set the basemap provider. Can be any value parsed by xyzservices library. Defaults to CartoDB.DarkMatterNoLabels if --dark │
115
- │ or CartoDB.PositronNoLabels if --light. │
116
- │ --no-border,--fullscreen -f Removes the border around the map. │
117
- │ --no-background,--no-bg Removes the background of the map and plots only geo data. │
118
- │ --background-color,--bg-color COLOR Set the background color. Can be used together with --no-background. │
119
- │ --width INT Override the current console width. │
120
- │ --height INT Override the current console height. │
121
- │ --dpi INT DPI used to get better quality matplotlib plot before rendering to terminal. [default: 10] │
122
- │ --example,--example-files Can be used to load one of example files based on name. Possible values: london_buildings, london_park, london_water, │
123
- │ monaco_buildings. │
124
- │ --version -v Show the application's version and exit. │
125
- │ --install-completion Install completion for the current shell. │
126
- │ --show-completion Show completion for the current shell, to copy it or customize the installation. │
127
- │ --help -h Show this message and exit. │
128
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
95
+ ╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
96
+ │ * files <str> List of files to display. Those could be any that can be opened by GeoPandas. [required] │
97
+ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
98
+ ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
99
+ │ --bbox -b BBOX Clip the map to a given bounding box. Expects 4 floating point numbers separated by commas. │
100
+ │ --renderer -r <str> Renderer used for generating terminal output. Possible values: all, ascii, ascii-bw, block, braille, braille-bw, half, │
101
+ │ quad, space. │
102
+ │ [default: (block)] │
103
+ │ --dark --light Uses the predefined dark or light style. Can be overriden with user defined style. [default: dark] │
104
+ │ --color -c COLOR Pass color or list of colours per each geo file. │
105
+ │ --alpha,--opacity -a FLOAT Pass opacity or list of opacities per each geo file. │
106
+ │ --basemap,--tileset -t TILES Set the basemap. Can be a name of a basemaplibre style, or a URL or a path of a MapLibre style JSON. Raster tiles (like │
107
+ │ names of xyzservices) need contextily to be installed. Defaults to OpenFreeMap.Dark if --dark or OpenFreeMap.Positron if │
108
+ │ --light. │
109
+ │ --no-border,--fullscreen -f Removes the border around the map. │
110
+ │ --no-background,--no-bg Removes the background of the map and plots only geo data. │
111
+ │ --background-color,--bg-color COLOR Set the background color. Can be used together with --no-background. │
112
+ │ --width INT Override the current console width. │
113
+ │ --height INT Override the current console height. │
114
+ │ --dpi INT DPI used to rasterise the matplotlib plot. Setting this to 8 (matching the renderer's subpixel width) skips the PIL resize │
115
+ │ for a faster path; higher values improve anti-aliasing quality. │
116
+ │ [default: 8] │
117
+ │ --example,--example-files Can be used to load one of example files based on name. Possible values: london_buildings, london_park, london_water, │
118
+ │ monaco_buildings. │
119
+ │ --version -v Show the application's version and exit. │
120
+ │ --install-completion Install completion for the current shell. │
121
+ │ --show-completion Show completion for the current shell, to copy it or customize the installation. │
122
+ │ --help -h Show this message and exit. │
123
+ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
129
124
  ```
130
125
  </details>
131
126
 
@@ -163,7 +158,7 @@ $ pixel-map --example london_buildings london_water london_park -c C1,C0,C2
163
158
  #### Different basemap and changed opacity (alpha)
164
159
 
165
160
  ```sh
166
- $ pixel-map --example london_water -c C0 -a 0.6 -t Esri.WorldImagery
161
+ $ pixel-map --example london_water -c C0 -a 0.6 -t VersaTiles.Satellite
167
162
  ```
168
163
  <p align="center">
169
164
  <img src="https://raw.githubusercontent.com/RaczeQ/pixel-map/main/images/london_satellite.jpg"><br/>
@@ -171,7 +166,7 @@ $ pixel-map --example london_water -c C0 -a 0.6 -t Esri.WorldImagery
171
166
 
172
167
  #### No background and different renderer
173
168
 
174
- You can explore multiple available renderers. Full list available in the `pixel-map` CLI help.
169
+ You can explore [multiple available renderers](https://raczeq.github.io/pixel-map/renderers/).
175
170
 
176
171
  ```sh
177
172
  $ pixel-map --example london_buildings --no-bg -r ascii-bw
@@ -192,11 +187,11 @@ $ pixel-map --example london_buildings --no-bg -r ascii-bw
192
187
 
193
188
  - `matplotlib (>=3.2.0)`: For generating the plot with styling and cropping
194
189
 
195
- - `contextily (>=1)`: For adding basemap to the plot
190
+ - `basemaplibre (>=0.1.1)`: For adding basemap to the plot (raster tiles need `contextily`, which is not installed by default)
196
191
 
197
192
  - `numpy (>=1.26.0)`: For transforming matplotlib array into an image
198
193
 
199
- - `img2unicode[n2] (>=0.1a11)`: For transforming generated plot image into a list of unicode characters for the terminal
194
+ - `pillow (>=10.1.0)`: For rasterising ASCII glyph templates and downscaling the canvas
200
195
 
201
196
  ## How does it work?
202
197
 
@@ -204,9 +199,12 @@ $ pixel-map --example london_buildings --no-bg -r ascii-bw
204
199
  2. `Matplotlib` figure is created with the size of the terminal (`pixel-map` expects a default monospace font with the ratio of 8 to 16 pixels. Figure canvas takes terminal height and multiplies it by two).
205
200
  3. GeoSerieses are plotted to the canvas.
206
201
  4. Plot bounding box is expanded to the canvas ratio (based on terminal size).
207
- 5. Basemap is loaded with `contextily`.
202
+ 5. Basemap is drawn with `basemaplibre` from a MapLibre style, without labels.
208
203
  6. Canvas is copied to the image as an `NumPy` array.
209
- 7. `img2unicode` is used to render image using unicode characters with color.
204
+ 7. Image is downsampled and converted to a grid of Unicode characters with
205
+ foreground/background colours using the native dual-colour engine in
206
+ `pixel_map/terminal_renderers.py` (Lab perceptual distance, BLAS-accelerated
207
+ character selection).
210
208
  8. `Rich` string output is generated using the list of unicode characters with background and foreground colors.
211
209
  9. Output is printed to the console.
212
210
 
@@ -9,25 +9,17 @@ Python CLI tool for plotting geo data in the terminal
9
9
  <p align="center">
10
10
  <img alt="GitHub" src="https://img.shields.io/github/license/raczeq/pixel-map?logo=mit&logoColor=%23fff">
11
11
  <img src="https://img.shields.io/github/checks-status/raczeq/pixel-map/main?logo=GitHubActions&logoColor=%23fff" alt="Checks">
12
- <a href="https://github.com/raczeq/pixel-map/actions/workflows/ci-prod.yml" target="_blank">
13
- <img alt="GitHub Workflow Status - PROD" src="https://img.shields.io/github/actions/workflow/status/raczeq/pixel-map/ci-prod.yml?label=build-prod&logo=GitHubActions&logoColor=%23fff">
14
- </a>
15
- <a href="https://results.pre-commit.ci/latest/github/raczeq/pixel-map/main" target="_blank">
16
- <img src="https://results.pre-commit.ci/badge/github/raczeq/pixel-map/main.svg" alt="pre-commit.ci status">
17
- </a>
12
+ <a href="https://github.com/raczeq/pixel-map/actions/workflows/ci-prod.yml" target="_blank"><img alt="GitHub Workflow Status - PROD" src="https://img.shields.io/github/actions/workflow/status/raczeq/pixel-map/ci-prod.yml?label=build-prod&logo=GitHubActions&logoColor=%23fff"></a>
13
+ <a href="https://results.pre-commit.ci/latest/github/raczeq/pixel-map/main" target="_blank"><img src="https://results.pre-commit.ci/badge/github/raczeq/pixel-map/main.svg" alt="pre-commit.ci status"></a>
18
14
  <a href="https://www.codefactor.io/repository/github/raczeq/pixel-map"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/raczeq/pixel-map?logo=codefactor&logoColor=%23fff"></a>
19
15
  <a href="https://app.codecov.io/gh/raczeq/pixel-map/tree/main"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/raczeq/pixel-map?logo=codecov&token=PRS4E02ZX0&logoColor=%23fff"></a>
20
- <a href="https://pypi.org/project/pixel-map" target="_blank">
21
- <img src="https://img.shields.io/pypi/v/pixel-map?color=%2334D058&label=pypi%20package&logo=pypi&logoColor=%23fff" alt="Package version">
22
- </a>
23
- <a href="https://pypi.org/project/pixel-map" target="_blank">
24
- <img src="https://img.shields.io/pypi/pyversions/pixel-map.svg?color=%2334D058&logo=python&logoColor=%23fff" alt="Supported Python versions">
25
- </a>
26
- <a href="https://pypi.org/project/pixel-map" target="_blank">
27
- <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/pixel-map">
28
- </a>
16
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img src="https://img.shields.io/pypi/v/pixel-map?color=%2334D058&label=pypi%20package&logo=pypi&logoColor=%23fff" alt="Package version"></a>
17
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img src="https://img.shields.io/pypi/pyversions/pixel-map.svg?color=%2334D058&logo=python&logoColor=%23fff" alt="Supported Python versions"></a>
18
+ <a href="https://pypi.org/project/pixel-map" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/pixel-map"></a>
29
19
  </p>
30
20
 
21
+ [Documentation](https://raczeq.github.io/pixel-map/) · [Examples](https://raczeq.github.io/pixel-map/examples/) · [Basemaps](https://raczeq.github.io/pixel-map/basemaps/) · [Renderers](https://raczeq.github.io/pixel-map/renderers/)
22
+
31
23
  ## Installation
32
24
 
33
25
  PyPI:
@@ -60,38 +52,42 @@ See more examples below ⬇️
60
52
  <summary>CLI Help output (<code>pixel-map -h</code>)</summary>
61
53
 
62
54
  ```console
63
- Usage: pixel-map [OPTIONS] FILES...
55
+ Usage: pixel-map [OPTIONS] {files}...
64
56
 
65
57
  Plot the geo data into a terminal.
58
+
66
59
  Generates a Matplotlib canvas that is rendered to an image and later transformed into a list of
67
60
  unicode characters.
68
61
 
69
- ╭─ Arguments ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
70
- │ * files FILES... List of files to display. Those could be any that can be opened by GeoPandas. [required] │
71
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
72
- ╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
73
- │ --bbox -b BBOX Clip the map to a given bounding box. Expects 4 floating point numbers separated by commas. │
74
- │ --renderer -r TEXT Renderer used for generating terminal output. Possible values: all, ascii, ascii-bw, block, braille, braille-bw, half, quad, │
75
- │ space. │
76
- │ [default: (block)] │
77
- │ --dark --light Uses the predefined dark or light style. Can be overriden with user defined style. [default: dark] │
78
- │ --color -c COLOR Pass color or list of colours per each geo file. │
79
- │ --alpha,--opacity -a FLOAT Pass opacity or list of opacities per each geo file. │
80
- │ --basemap,--tileset -t TILES Set the basemap provider. Can be any value parsed by xyzservices library. Defaults to CartoDB.DarkMatterNoLabels if --dark │
81
- │ or CartoDB.PositronNoLabels if --light. │
82
- │ --no-border,--fullscreen -f Removes the border around the map. │
83
- │ --no-background,--no-bg Removes the background of the map and plots only geo data. │
84
- │ --background-color,--bg-color COLOR Set the background color. Can be used together with --no-background. │
85
- │ --width INT Override the current console width. │
86
- │ --height INT Override the current console height. │
87
- │ --dpi INT DPI used to get better quality matplotlib plot before rendering to terminal. [default: 10] │
88
- │ --example,--example-files Can be used to load one of example files based on name. Possible values: london_buildings, london_park, london_water, │
89
- │ monaco_buildings. │
90
- │ --version -v Show the application's version and exit. │
91
- │ --install-completion Install completion for the current shell. │
92
- │ --show-completion Show completion for the current shell, to copy it or customize the installation. │
93
- │ --help -h Show this message and exit. │
94
- ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
62
+ ╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
63
+ │ * files <str> List of files to display. Those could be any that can be opened by GeoPandas. [required] │
64
+ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
65
+ ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
66
+ │ --bbox -b BBOX Clip the map to a given bounding box. Expects 4 floating point numbers separated by commas. │
67
+ │ --renderer -r <str> Renderer used for generating terminal output. Possible values: all, ascii, ascii-bw, block, braille, braille-bw, half, │
68
+ │ quad, space. │
69
+ │ [default: (block)] │
70
+ │ --dark --light Uses the predefined dark or light style. Can be overriden with user defined style. [default: dark] │
71
+ │ --color -c COLOR Pass color or list of colours per each geo file. │
72
+ │ --alpha,--opacity -a FLOAT Pass opacity or list of opacities per each geo file. │
73
+ │ --basemap,--tileset -t TILES Set the basemap. Can be a name of a basemaplibre style, or a URL or a path of a MapLibre style JSON. Raster tiles (like │
74
+ │ names of xyzservices) need contextily to be installed. Defaults to OpenFreeMap.Dark if --dark or OpenFreeMap.Positron if │
75
+ │ --light. │
76
+ │ --no-border,--fullscreen -f Removes the border around the map. │
77
+ │ --no-background,--no-bg Removes the background of the map and plots only geo data. │
78
+ │ --background-color,--bg-color COLOR Set the background color. Can be used together with --no-background. │
79
+ │ --width INT Override the current console width. │
80
+ │ --height INT Override the current console height. │
81
+ │ --dpi INT DPI used to rasterise the matplotlib plot. Setting this to 8 (matching the renderer's subpixel width) skips the PIL resize │
82
+ │ for a faster path; higher values improve anti-aliasing quality. │
83
+ │ [default: 8] │
84
+ │ --example,--example-files Can be used to load one of example files based on name. Possible values: london_buildings, london_park, london_water, │
85
+ │ monaco_buildings. │
86
+ │ --version -v Show the application's version and exit. │
87
+ │ --install-completion Install completion for the current shell. │
88
+ │ --show-completion Show completion for the current shell, to copy it or customize the installation. │
89
+ │ --help -h Show this message and exit. │
90
+ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
95
91
  ```
96
92
  </details>
97
93
 
@@ -129,7 +125,7 @@ $ pixel-map --example london_buildings london_water london_park -c C1,C0,C2
129
125
  #### Different basemap and changed opacity (alpha)
130
126
 
131
127
  ```sh
132
- $ pixel-map --example london_water -c C0 -a 0.6 -t Esri.WorldImagery
128
+ $ pixel-map --example london_water -c C0 -a 0.6 -t VersaTiles.Satellite
133
129
  ```
134
130
  <p align="center">
135
131
  <img src="https://raw.githubusercontent.com/RaczeQ/pixel-map/main/images/london_satellite.jpg"><br/>
@@ -137,7 +133,7 @@ $ pixel-map --example london_water -c C0 -a 0.6 -t Esri.WorldImagery
137
133
 
138
134
  #### No background and different renderer
139
135
 
140
- You can explore multiple available renderers. Full list available in the `pixel-map` CLI help.
136
+ You can explore [multiple available renderers](https://raczeq.github.io/pixel-map/renderers/).
141
137
 
142
138
  ```sh
143
139
  $ pixel-map --example london_buildings --no-bg -r ascii-bw
@@ -158,11 +154,11 @@ $ pixel-map --example london_buildings --no-bg -r ascii-bw
158
154
 
159
155
  - `matplotlib (>=3.2.0)`: For generating the plot with styling and cropping
160
156
 
161
- - `contextily (>=1)`: For adding basemap to the plot
157
+ - `basemaplibre (>=0.1.1)`: For adding basemap to the plot (raster tiles need `contextily`, which is not installed by default)
162
158
 
163
159
  - `numpy (>=1.26.0)`: For transforming matplotlib array into an image
164
160
 
165
- - `img2unicode[n2] (>=0.1a11)`: For transforming generated plot image into a list of unicode characters for the terminal
161
+ - `pillow (>=10.1.0)`: For rasterising ASCII glyph templates and downscaling the canvas
166
162
 
167
163
  ## How does it work?
168
164
 
@@ -170,9 +166,12 @@ $ pixel-map --example london_buildings --no-bg -r ascii-bw
170
166
  2. `Matplotlib` figure is created with the size of the terminal (`pixel-map` expects a default monospace font with the ratio of 8 to 16 pixels. Figure canvas takes terminal height and multiplies it by two).
171
167
  3. GeoSerieses are plotted to the canvas.
172
168
  4. Plot bounding box is expanded to the canvas ratio (based on terminal size).
173
- 5. Basemap is loaded with `contextily`.
169
+ 5. Basemap is drawn with `basemaplibre` from a MapLibre style, without labels.
174
170
  6. Canvas is copied to the image as an `NumPy` array.
175
- 7. `img2unicode` is used to render image using unicode characters with color.
171
+ 7. Image is downsampled and converted to a grid of Unicode characters with
172
+ foreground/background colours using the native dual-colour engine in
173
+ `pixel_map/terminal_renderers.py` (Lab perceptual distance, BLAS-accelerated
174
+ character selection).
176
175
  8. `Rich` string output is generated using the list of unicode characters with background and foreground colors.
177
176
  9. Output is printed to the console.
178
177
 
@@ -1,4 +1,4 @@
1
1
  """Pixel-map library."""
2
2
 
3
3
  __app_name__ = "pixel-map"
4
- __version__ = "0.2.4"
4
+ __version__ = "0.4.0"