mlnative 0.2.0a0__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.
@@ -0,0 +1,68 @@
1
+ # Ignore all binaries but keep directory
2
+ mlnative/bin/*
3
+ !mlnative/bin/README.md
4
+ # Python
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.so
9
+ .Python
10
+ build/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+
26
+ # Virtual environments
27
+ venv/
28
+ ENV/
29
+ env/
30
+ .venv
31
+
32
+ # IDE
33
+ .vscode/
34
+ .idea/
35
+ *.swp
36
+ *.swo
37
+ *~
38
+
39
+ # Testing
40
+ .pytest_cache/
41
+ .coverage
42
+ htmlcov/
43
+
44
+ # OS
45
+ .DS_Store
46
+ Thumbs.db
47
+
48
+ # Output files from examples
49
+ *.png
50
+ *.jpg
51
+ *.jpeg
52
+
53
+ # Vendor binaries (these should be built separately)
54
+ mlnative/_vendor/*/node_modules/
55
+ mlnative/_vendor/*/build/
56
+ *.node
57
+
58
+ # Temporary files
59
+ *.tmp
60
+ *.log
61
+
62
+ # Lock files
63
+ uv.lock
64
+
65
+ # Symlinks for testing
66
+ lib_symlinks/
67
+ rust/target/
68
+ mlnative/bin/*
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to the Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright 2024 Adon Metcalfe
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,227 @@
1
+ Metadata-Version: 2.4
2
+ Name: mlnative
3
+ Version: 0.2.0a0
4
+ Summary: Simple Python wrapper for MapLibre GL Native using native Rust renderer
5
+ Project-URL: Homepage, https://github.com/adonm/mlnative
6
+ Project-URL: Repository, https://github.com/adonm/mlnative
7
+ Project-URL: Issues, https://github.com/adonm/mlnative/issues
8
+ Author: Adon Metcalfe
9
+ License: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: maplibre,maps,rendering,static-maps,tiles
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Rust
19
+ Classifier: Topic :: Scientific/Engineering :: GIS
20
+ Requires-Python: >=3.12
21
+ Provides-Extra: dev
22
+ Requires-Dist: cibuildwheel>=2.16; extra == 'dev'
23
+ Requires-Dist: httpx>=0.27; extra == 'dev'
24
+ Requires-Dist: mypy>=1.13.0; extra == 'dev'
25
+ Requires-Dist: pytest>=8.0; extra == 'dev'
26
+ Requires-Dist: ruff>=0.8.0; extra == 'dev'
27
+ Provides-Extra: web
28
+ Requires-Dist: fastapi>=0.115; extra == 'web'
29
+ Requires-Dist: jinja2>=3.1; extra == 'web'
30
+ Requires-Dist: python-multipart>=0.0.20; extra == 'web'
31
+ Requires-Dist: uvicorn[standard]>=0.32; extra == 'web'
32
+ Description-Content-Type: text/markdown
33
+
34
+ # mlnative ⚠️ ALPHA RELEASE
35
+
36
+ > **⚠️ Warning: This is an alpha release (v0.2.0-alpha). The API may change significantly. Not recommended for production use.**
37
+
38
+ Simple Python wrapper for MapLibre GL Native using a native Rust renderer.
39
+
40
+ A grug-brained library for rendering static map images with minimal complexity.
41
+
42
+ ## Features
43
+
44
+ - **Simple API**: One class, 4 methods, zero confusion
45
+ - **Native Performance**: Rust backend with MapLibre Native C++ core
46
+ - **No Runtime Dependencies**: Bundled native binaries, no system libraries needed
47
+ - **Batch Rendering**: Efficiently render hundreds of maps with one process
48
+ - **Mapbox-compatible**: Easy migration from Mapbox Static Images API
49
+ - **Default OpenFreeMap**: Uses Liberty style from OpenFreeMap by default
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ pip install mlnative
55
+ ```
56
+
57
+ Platform-specific wheels include the native renderer binary:
58
+ - Linux x86_64, aarch64
59
+ - macOS x86_64, arm64 (Apple Silicon)
60
+ - Windows x64
61
+
62
+ ## Quick Start
63
+
64
+ ```python
65
+ from mlnative import Map
66
+
67
+ # Render a single map
68
+ with Map(512, 512) as m:
69
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
70
+ png_bytes = m.render(center=[-122.4, 37.8], zoom=12)
71
+
72
+ with open("map.png", "wb") as f:
73
+ f.write(png_bytes)
74
+ ```
75
+
76
+ ## API
77
+
78
+ ### `Map(width, height, request_handler=None, pixel_ratio=1.0)`
79
+
80
+ Create a new map renderer.
81
+
82
+ **Parameters:**
83
+ - `width`: Image width in pixels (1-4096)
84
+ - `height`: Image height in pixels (1-4096)
85
+ - `request_handler`: Optional function for custom tile requests (not yet implemented)
86
+ - `pixel_ratio`: Pixel ratio for high-DPI rendering
87
+
88
+ ### `load_style(style)`
89
+
90
+ Load a map style. Accepts:
91
+ - URL string (http/https)
92
+ - File path to JSON file
93
+ - Style JSON dict
94
+
95
+ ### `render(center, zoom, bearing=0, pitch=0)`
96
+
97
+ Render the map to PNG bytes.
98
+
99
+ **Parameters:**
100
+ - `center`: `[longitude, latitude]` list
101
+ - `zoom`: Zoom level (0-24)
102
+ - `bearing`: Rotation in degrees (0-360)
103
+ - `pitch`: Tilt in degrees (0-85)
104
+
105
+ **Returns:** PNG image bytes
106
+
107
+ ### `render_batch(views)`
108
+
109
+ Render multiple map views efficiently.
110
+
111
+ **Parameters:**
112
+ - `views`: List of dicts with `center`, `zoom`, `bearing`, `pitch` keys
113
+
114
+ **Returns:** List of PNG image bytes
115
+
116
+ ### `close()`
117
+
118
+ Release resources. Called automatically with context manager.
119
+
120
+ ## Examples
121
+
122
+ ### Basic Usage
123
+
124
+ ```python
125
+ from mlnative import Map
126
+
127
+ # San Francisco
128
+ with Map(800, 600) as m:
129
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
130
+ png = m.render(
131
+ center=[-122.4194, 37.7749],
132
+ zoom=12,
133
+ bearing=45,
134
+ pitch=30
135
+ )
136
+ open("sf.png", "wb").write(png)
137
+ ```
138
+
139
+ ### Batch Rendering
140
+
141
+ ```python
142
+ from mlnative import Map
143
+
144
+ views = [
145
+ {"center": [0, 0], "zoom": 1},
146
+ {"center": [10, 10], "zoom": 5},
147
+ {"center": [-122.4, 37.8], "zoom": 12},
148
+ # ... more views
149
+ ]
150
+
151
+ with Map(512, 512) as m:
152
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
153
+ pngs = m.render_batch(views)
154
+
155
+ for i, png in enumerate(pngs):
156
+ with open(f"map_{i}.png", "wb") as f:
157
+ f.write(png)
158
+ ```
159
+
160
+ ### FastAPI Server
161
+
162
+ ```bash
163
+ pip install mlnative[web]
164
+ python examples/fastapi_server.py
165
+ ```
166
+
167
+ Then visit:
168
+ ```
169
+ http://localhost:8000/static/-122.4194,37.7749,12/512x512.png
170
+ ```
171
+
172
+ ## Supported Platforms
173
+
174
+ - Linux x86_64, aarch64
175
+ - macOS x86_64, arm64 (Apple Silicon)
176
+ - Windows x64
177
+
178
+ ## Architecture
179
+
180
+ ```
181
+ Python (mlnative)
182
+ ↓ JSON
183
+ Rust (mlnative-render daemon)
184
+ ↓ FFI
185
+ MapLibre Native (C++ core with statically linked dependencies)
186
+ ```
187
+
188
+ The native renderer uses pre-built "amalgam" libraries from MapLibre Native which include all dependencies (ICU, libjpeg, etc.) statically linked. This eliminates system dependency issues.
189
+
190
+ ## Development
191
+
192
+ ### Prerequisites
193
+
194
+ - Python 3.12+
195
+ - Rust toolchain (1.70+)
196
+ - uv (Python package manager)
197
+
198
+ ### Setup
199
+
200
+ ```bash
201
+ # Install Python dependencies
202
+ uv venv
203
+ uv pip install -e ".[dev,web]"
204
+
205
+ # Build Rust binary
206
+ cd rust && cargo build --release
207
+ ```
208
+
209
+ ### Run Tests
210
+
211
+ ```bash
212
+ just test
213
+ ```
214
+
215
+ ### Build Wheels
216
+
217
+ ```bash
218
+ # Local wheel (current platform only)
219
+ uv build
220
+
221
+ # All platforms (requires Docker)
222
+ just build-wheels
223
+ ```
224
+
225
+ ## License
226
+
227
+ Apache-2.0
@@ -0,0 +1,194 @@
1
+ # mlnative ⚠️ ALPHA RELEASE
2
+
3
+ > **⚠️ Warning: This is an alpha release (v0.2.0-alpha). The API may change significantly. Not recommended for production use.**
4
+
5
+ Simple Python wrapper for MapLibre GL Native using a native Rust renderer.
6
+
7
+ A grug-brained library for rendering static map images with minimal complexity.
8
+
9
+ ## Features
10
+
11
+ - **Simple API**: One class, 4 methods, zero confusion
12
+ - **Native Performance**: Rust backend with MapLibre Native C++ core
13
+ - **No Runtime Dependencies**: Bundled native binaries, no system libraries needed
14
+ - **Batch Rendering**: Efficiently render hundreds of maps with one process
15
+ - **Mapbox-compatible**: Easy migration from Mapbox Static Images API
16
+ - **Default OpenFreeMap**: Uses Liberty style from OpenFreeMap by default
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ pip install mlnative
22
+ ```
23
+
24
+ Platform-specific wheels include the native renderer binary:
25
+ - Linux x86_64, aarch64
26
+ - macOS x86_64, arm64 (Apple Silicon)
27
+ - Windows x64
28
+
29
+ ## Quick Start
30
+
31
+ ```python
32
+ from mlnative import Map
33
+
34
+ # Render a single map
35
+ with Map(512, 512) as m:
36
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
37
+ png_bytes = m.render(center=[-122.4, 37.8], zoom=12)
38
+
39
+ with open("map.png", "wb") as f:
40
+ f.write(png_bytes)
41
+ ```
42
+
43
+ ## API
44
+
45
+ ### `Map(width, height, request_handler=None, pixel_ratio=1.0)`
46
+
47
+ Create a new map renderer.
48
+
49
+ **Parameters:**
50
+ - `width`: Image width in pixels (1-4096)
51
+ - `height`: Image height in pixels (1-4096)
52
+ - `request_handler`: Optional function for custom tile requests (not yet implemented)
53
+ - `pixel_ratio`: Pixel ratio for high-DPI rendering
54
+
55
+ ### `load_style(style)`
56
+
57
+ Load a map style. Accepts:
58
+ - URL string (http/https)
59
+ - File path to JSON file
60
+ - Style JSON dict
61
+
62
+ ### `render(center, zoom, bearing=0, pitch=0)`
63
+
64
+ Render the map to PNG bytes.
65
+
66
+ **Parameters:**
67
+ - `center`: `[longitude, latitude]` list
68
+ - `zoom`: Zoom level (0-24)
69
+ - `bearing`: Rotation in degrees (0-360)
70
+ - `pitch`: Tilt in degrees (0-85)
71
+
72
+ **Returns:** PNG image bytes
73
+
74
+ ### `render_batch(views)`
75
+
76
+ Render multiple map views efficiently.
77
+
78
+ **Parameters:**
79
+ - `views`: List of dicts with `center`, `zoom`, `bearing`, `pitch` keys
80
+
81
+ **Returns:** List of PNG image bytes
82
+
83
+ ### `close()`
84
+
85
+ Release resources. Called automatically with context manager.
86
+
87
+ ## Examples
88
+
89
+ ### Basic Usage
90
+
91
+ ```python
92
+ from mlnative import Map
93
+
94
+ # San Francisco
95
+ with Map(800, 600) as m:
96
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
97
+ png = m.render(
98
+ center=[-122.4194, 37.7749],
99
+ zoom=12,
100
+ bearing=45,
101
+ pitch=30
102
+ )
103
+ open("sf.png", "wb").write(png)
104
+ ```
105
+
106
+ ### Batch Rendering
107
+
108
+ ```python
109
+ from mlnative import Map
110
+
111
+ views = [
112
+ {"center": [0, 0], "zoom": 1},
113
+ {"center": [10, 10], "zoom": 5},
114
+ {"center": [-122.4, 37.8], "zoom": 12},
115
+ # ... more views
116
+ ]
117
+
118
+ with Map(512, 512) as m:
119
+ m.load_style("https://tiles.openfreemap.org/styles/liberty")
120
+ pngs = m.render_batch(views)
121
+
122
+ for i, png in enumerate(pngs):
123
+ with open(f"map_{i}.png", "wb") as f:
124
+ f.write(png)
125
+ ```
126
+
127
+ ### FastAPI Server
128
+
129
+ ```bash
130
+ pip install mlnative[web]
131
+ python examples/fastapi_server.py
132
+ ```
133
+
134
+ Then visit:
135
+ ```
136
+ http://localhost:8000/static/-122.4194,37.7749,12/512x512.png
137
+ ```
138
+
139
+ ## Supported Platforms
140
+
141
+ - Linux x86_64, aarch64
142
+ - macOS x86_64, arm64 (Apple Silicon)
143
+ - Windows x64
144
+
145
+ ## Architecture
146
+
147
+ ```
148
+ Python (mlnative)
149
+ ↓ JSON
150
+ Rust (mlnative-render daemon)
151
+ ↓ FFI
152
+ MapLibre Native (C++ core with statically linked dependencies)
153
+ ```
154
+
155
+ The native renderer uses pre-built "amalgam" libraries from MapLibre Native which include all dependencies (ICU, libjpeg, etc.) statically linked. This eliminates system dependency issues.
156
+
157
+ ## Development
158
+
159
+ ### Prerequisites
160
+
161
+ - Python 3.12+
162
+ - Rust toolchain (1.70+)
163
+ - uv (Python package manager)
164
+
165
+ ### Setup
166
+
167
+ ```bash
168
+ # Install Python dependencies
169
+ uv venv
170
+ uv pip install -e ".[dev,web]"
171
+
172
+ # Build Rust binary
173
+ cd rust && cargo build --release
174
+ ```
175
+
176
+ ### Run Tests
177
+
178
+ ```bash
179
+ just test
180
+ ```
181
+
182
+ ### Build Wheels
183
+
184
+ ```bash
185
+ # Local wheel (current platform only)
186
+ uv build
187
+
188
+ # All platforms (requires Docker)
189
+ just build-wheels
190
+ ```
191
+
192
+ ## License
193
+
194
+ Apache-2.0
@@ -0,0 +1,13 @@
1
+ """
2
+ mlnative - Simple Python wrapper for MapLibre GL Native
3
+
4
+ A grug-brained library for rendering static map images.
5
+ """
6
+
7
+ from importlib.metadata import version
8
+
9
+ from .exceptions import MlnativeError
10
+ from .map import Map
11
+
12
+ __version__ = version("mlnative")
13
+ __all__ = ["Map", "MlnativeError"]