splitgrid 0.1.0__cp314-cp314-win_amd64.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.
splitgrid/__init__.py ADDED
@@ -0,0 +1,116 @@
1
+ # SplitGrid - split-grid serialization extracted from WriterAgent
2
+ # Copyright (c) 2026 KeithCu
3
+ #
4
+ # SPDX-License-Identifier: GPL-3.0-or-later
5
+
6
+ """Asymmetric split-grid codec: host flatten (stdlib) + optional Cython, child NumPy unpack.
7
+
8
+ Public names match WriterAgent's ``plugin.scripting.payload_codec`` split-grid surface
9
+ so WriterAgent can switch imports later without changing the wire dict.
10
+ """
11
+
12
+ from splitgrid.codec import (
13
+ BINARY_MIN_CELLS,
14
+ MAX_BENCH_CELLS,
15
+ PAYLOAD_CALC_RANGE,
16
+ PAYLOAD_DATAFRAME,
17
+ PAYLOAD_IMAGE,
18
+ PAYLOAD_MULTI_DATA,
19
+ PAYLOAD_SPLIT_GRID,
20
+ SPLIT_GRID_WIRE_DTYPE,
21
+ ForceBinary,
22
+ _flatten_append_cell_slow,
23
+ _flatten_grid_to_components,
24
+ _iter_split_grid_cells,
25
+ _verify_accelerator,
26
+ binary_envelope_skip_reason,
27
+ cell_count,
28
+ child_pack_result,
29
+ child_pack_split_grid,
30
+ child_unpack_data,
31
+ child_unpack_split_grid,
32
+ column_kinds_for_grid,
33
+ describe_wire_value,
34
+ envelope_column_kinds,
35
+ envelope_uniform_column_kind,
36
+ get_cython_status_info,
37
+ grid_from_nested_list,
38
+ host_cython_status_line,
39
+ host_pack_data,
40
+ host_pack_multi_data,
41
+ host_pack_split_grid,
42
+ host_unpack_data,
43
+ host_unpack_split_grid,
44
+ invalidate_host_cython_accelerator,
45
+ is_dataframe_payload,
46
+ is_calc_range_payload,
47
+ is_image_payload,
48
+ is_multi_data,
49
+ is_numeric_coercible,
50
+ is_numeric_grid,
51
+ is_split_grid,
52
+ load_cython_accelerator,
53
+ reload_host_cython_accelerator,
54
+ should_use_binary_envelope,
55
+ wire_cell_count,
56
+ )
57
+
58
+ __version__ = "0.1.0"
59
+
60
+
61
+ def __getattr__(name: str):
62
+ """Bind accelerator function names to codec globals (may be None until load)."""
63
+ if name in ("fast_flatten_grid_1d", "fast_flatten_grid_2d"):
64
+ from splitgrid import codec as _codec
65
+
66
+ return getattr(_codec, name)
67
+ raise AttributeError(f"module 'splitgrid' has no attribute {name!r}")
68
+
69
+ __all__ = [
70
+ "BINARY_MIN_CELLS",
71
+ "MAX_BENCH_CELLS",
72
+ "PAYLOAD_CALC_RANGE",
73
+ "PAYLOAD_DATAFRAME",
74
+ "PAYLOAD_IMAGE",
75
+ "PAYLOAD_MULTI_DATA",
76
+ "PAYLOAD_SPLIT_GRID",
77
+ "SPLIT_GRID_WIRE_DTYPE",
78
+ "ForceBinary",
79
+ "__version__",
80
+ "_flatten_append_cell_slow",
81
+ "_flatten_grid_to_components",
82
+ "_iter_split_grid_cells",
83
+ "_verify_accelerator",
84
+ "binary_envelope_skip_reason",
85
+ "cell_count",
86
+ "child_pack_result",
87
+ "child_pack_split_grid",
88
+ "child_unpack_data",
89
+ "child_unpack_split_grid",
90
+ "column_kinds_for_grid",
91
+ "describe_wire_value",
92
+ "envelope_column_kinds",
93
+ "envelope_uniform_column_kind",
94
+ "fast_flatten_grid_1d",
95
+ "fast_flatten_grid_2d",
96
+ "get_cython_status_info",
97
+ "grid_from_nested_list",
98
+ "host_cython_status_line",
99
+ "host_pack_data",
100
+ "host_pack_multi_data",
101
+ "host_pack_split_grid",
102
+ "host_unpack_data",
103
+ "host_unpack_split_grid",
104
+ "invalidate_host_cython_accelerator",
105
+ "is_calc_range_payload",
106
+ "is_dataframe_payload",
107
+ "is_image_payload",
108
+ "is_multi_data",
109
+ "is_numeric_coercible",
110
+ "is_numeric_grid",
111
+ "is_split_grid",
112
+ "load_cython_accelerator",
113
+ "reload_host_cython_accelerator",
114
+ "should_use_binary_envelope",
115
+ "wire_cell_count",
116
+ ]