spacetimer 0.1.0__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.
Binary file
Binary file
spacetimer/py.typed ADDED
File without changes
@@ -0,0 +1,44 @@
1
+ Metadata-Version: 2.4
2
+ Name: spacetimer
3
+ Version: 0.1.0
4
+ Summary: Chunk, shard, and codec recommendations for Zarr, by use case
5
+ Author: norlandrhagen
6
+ Author-email: norlandrhagen <norlandrhagen@gmail.com>
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Requires-Dist: numpy
10
+ Requires-Dist: xarray>=2025.9.0
11
+ Requires-Dist: zarr>=3.2.1
12
+ Requires-Python: >=3.12
13
+ Project-URL: Documentation, https://norlandrhagen.github.io/spacetimer/
14
+ Project-URL: Repository, https://github.com/norlandrhagen/spacetimer
15
+ Project-URL: Issues, https://github.com/norlandrhagen/spacetimer/issues
16
+ Description-Content-Type: text/markdown
17
+
18
+ # spacetimer
19
+
20
+ Chunk and shard recommendations for Zarr, based on how people will read your data: time series, maps, a mix of both, or web tiles. It reads only metadata and returns an `encoding` dict for `to_zarr`.
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ uv add spacetimer
26
+ ```
27
+
28
+ Or with pip: `pip install spacetimer`.
29
+
30
+ ## Usage
31
+
32
+ ```python
33
+ import spacetimer
34
+
35
+ encoding = spacetimer.recommend(ds, "time") # or "space", "balanced", "web"
36
+ spacetimer.report(ds, encoding) # chunks read per map and per time series
37
+ ds.to_zarr("out.zarr", encoding=encoding)
38
+ ```
39
+
40
+ See the [docs](https://norlandrhagen.github.io/spacetimer/) for options, bitrounding, and how to read the report.
41
+
42
+ ## License
43
+
44
+ [MIT](https://github.com/norlandrhagen/spacetimer/blob/main/LICENSE)
@@ -0,0 +1,12 @@
1
+ spacetimer/__init__.py,sha256=b2NzAp9kPSeDe_8loKGmJyYhKwm0ikraizgJga2WeAI,649
2
+ spacetimer/_html.py,sha256=6tA1IRH9apIVs6E3pw_JhC8QLv0tmFSdz98tztOj6MY,7172
3
+ spacetimer/_svg.py,sha256=0lslghoBgDG0Us23h5wXBrPy2F8PQLpRJ5rUXCpxIMo,7243
4
+ spacetimer/bitround.py,sha256=qwjTfK2GYPJwdKcmfnq9VQ8jLtw5MVodaiblHs9KWCQ,6768
5
+ spacetimer/core.py,sha256=ICQIgU0UU0B-c9FoxY2ZmVkH_ERrhYMmLJUGBFRcZdg,26157
6
+ spacetimer/icons/space.png,sha256=-oawW-jVIK0zHeh1ZNGIUrDoZiv3pe90x6QnVstwH68,1083
7
+ spacetimer/icons/time.png,sha256=QCNSybJ0nZzTbQ96zedvxIH-m4fG-u-LkgYNvEZS-yY,1004
8
+ spacetimer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ spacetimer-0.1.0.dist-info/licenses/LICENSE,sha256=8n4dVzDvAcjXVyXIjvBzBgCUyXvAyzx4RwrCjeyVevE,1069
10
+ spacetimer-0.1.0.dist-info/WHEEL,sha256=G_-rrEibZr7OEM7zdH1dSO6s-VdjfnS5PA4CLAdI9Vw,80
11
+ spacetimer-0.1.0.dist-info/METADATA,sha256=wfitmqwettSg9RIOqOADUwyyXHMKnQd9JLh0KJp9POg,1337
12
+ spacetimer-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.9
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 norlandrhagen
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.