headson 0.5.2__cp310-abi3-macosx_11_0_arm64.whl → 0.5.4__cp310-abi3-macosx_11_0_arm64.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.

Potentially problematic release.


This version of headson might be problematic. Click here for more details.

headson/headson.abi3.so CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: headson
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Rust
@@ -13,7 +13,13 @@ Keywords: json,preview,summarize,cli,bindings
13
13
  Requires-Python: >=3.10
14
14
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
15
 
16
- # headson
16
+ <h1 align="center">
17
+ <img src="https://raw.githubusercontent.com/kantord/headson/main/docs/assets/logo.svg" alt="headson" width="600" height="99" />
18
+ </h1>
19
+ <p align="center">
20
+ <img src="https://raw.githubusercontent.com/kantord/headson/main/docs/assets/tapes/demo.gif" alt="Terminal demo" width="1560" height="900" />
21
+ <br/>
22
+ </p>
17
23
 
18
24
  Head/tail for JSON — but structure‑aware. Get a compact preview that shows both the shape and representative values of your data, all within a strict character budget.
19
25
 
@@ -58,8 +64,9 @@ If you’re comfortable with tools like `head` and `tail`, use `headson` when yo
58
64
 
59
65
  Common flags:
60
66
 
61
- - `-n, --budget <BYTES>`: per‑file output budget. When multiple input files are provided, the total budget equals `<BYTES> * number_of_inputs`.
62
- - `-N, --global-budget <BYTES>`: total output budget across all inputs. Useful when you want a fixed-size preview across many files (may omit entire files). Mutually exclusive with `--budget`.
67
+ - `-n, --budget <BYTES>`: per‑file output budget. When multiple input files are provided, the default total budget equals `<BYTES> * number_of_inputs`.
68
+ - `-N, --global-budget <BYTES>`: total output budget across all inputs. Useful when you want a fixed-size preview across many files (may omit entire files).
69
+ - When used together with `--budget`, the final total budget is `min(global, per_file * number_of_inputs)`. Files are only truncated if they don't fit into this final global limit, and no single file expands beyond the per‑file budget.
63
70
  - `-f, --template <json|pseudo|js>`: output style (default: `pseudo`)
64
71
  - `-m, --compact`: no indentation, no spaces, no newlines
65
72
  - `--no-newline`: single line output
@@ -133,6 +140,14 @@ headson -n 120 -f json users.json
133
140
  # {"users":[{"id":1,"name":"Ana","roles":["admin"]}],"meta":{"count":2}}
134
141
  ```
135
142
 
143
+ ## Terminal Demos
144
+
145
+ Regenerate locally:
146
+
147
+ - Place tapes under docs/tapes (e.g., docs/tapes/demo.tape)
148
+ - Run: cargo make tapes
149
+ - Outputs are written to docs/assets/tapes
150
+
136
151
  ## Python Bindings
137
152
 
138
153
  A thin Python extension module is available on PyPI as `headson`.
@@ -167,7 +182,7 @@ print(
167
182
 
168
183
  # Algorithm
169
184
 
170
- ![Algorithm overview](docs/assets/algorithm.svg)
185
+ ![Algorithm overview](https://raw.githubusercontent.com/kantord/headson/main/docs/assets/algorithm.svg)
171
186
 
172
187
  ## Footnotes
173
188
  - <sup><b>[1]</b></sup> <b>Optimized tree representation</b>: An arena‑style tree stored in flat, contiguous buffers. Each node records its kind and value plus index ranges into shared child and key arrays. Arrays are ingested in a single pass and may be deterministically pre‑sampled: the first element is always kept; additional elements are selected via a fixed per‑index inclusion test; for kept elements, original indices are stored and full lengths are counted. This enables accurate omission info and internal gap markers later, while minimizing pointer chasing.
@@ -0,0 +1,6 @@
1
+ headson-0.5.4.dist-info/METADATA,sha256=MxEDs-vSOJApFewTXbJMEA4Jn3WX1a5e7o7n9yVKORM,9019
2
+ headson-0.5.4.dist-info/WHEEL,sha256=-lwEpi49KOTCcgx48T3fLSP8Dxynwa-iRMZNo-JZaqc,103
3
+ headson-0.5.4.dist-info/licenses/LICENSE,sha256=GZ9row3L2LsnOSbEuGMQZ0zKOIEd5tHr76cZHpg4KK8,1072
4
+ headson/__init__.py,sha256=8DXFB8ahlywyQXJsscl3w_wgbcQi7sj7zEuV28wR60E,187
5
+ headson/headson.abi3.so,sha256=Sn_D62IL0rOJg1-si0G_vj7akMmPRDb5xNZ7rp9C8_k,604752
6
+ headson-0.5.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- headson-0.5.2.dist-info/METADATA,sha256=lK92oHOsJnM4sbZYRpY4Fp1j7ueyG9QFZE1RH1emr2o,8262
2
- headson-0.5.2.dist-info/WHEEL,sha256=-lwEpi49KOTCcgx48T3fLSP8Dxynwa-iRMZNo-JZaqc,103
3
- headson-0.5.2.dist-info/licenses/LICENSE,sha256=GZ9row3L2LsnOSbEuGMQZ0zKOIEd5tHr76cZHpg4KK8,1072
4
- headson/__init__.py,sha256=8DXFB8ahlywyQXJsscl3w_wgbcQi7sj7zEuV28wR60E,187
5
- headson/headson.abi3.so,sha256=oghWxiBoIzGY-WMbDSe8v5bqXGZCf6hx5v47mEN_5x0,604752
6
- headson-0.5.2.dist-info/RECORD,,