headson 0.6.5__cp310-abi3-win_amd64.whl → 0.6.7__cp310-abi3-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.
Potentially problematic release.
This version of headson might be problematic. Click here for more details.
headson/headson.pyd
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: headson
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.7
|
|
4
4
|
Classifier: Programming Language :: Python
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Programming Language :: Rust
|
|
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
|
20
20
|
<br/>
|
|
21
21
|
</p>
|
|
22
22
|
|
|
23
|
-
`
|
|
23
|
+
`head`/`tail` for JSON, YAML - but structure‑aware. Get a compact preview that shows both the shape and representative values of your data, all within a strict byte budget. (Just like `head`/`tail`, `headson` can also work with unstructured text files.)
|
|
24
24
|
|
|
25
25
|
Available as:
|
|
26
26
|
- CLI (see [Usage](#usage))
|
|
@@ -70,7 +70,8 @@ If you’re comfortable with tools like `head` and `tail`, use `headson` when yo
|
|
|
70
70
|
|
|
71
71
|
Common flags:
|
|
72
72
|
|
|
73
|
-
- `-c, --bytes <BYTES>`: per‑file output budget. For multiple inputs, default total budget is `<BYTES> * number_of_inputs`.
|
|
73
|
+
- `-c, --bytes <BYTES>`: per‑file output budget (bytes). For multiple inputs, default total budget is `<BYTES> * number_of_inputs`.
|
|
74
|
+
- `-u, --chars <CHARS>`: per‑file output budget (Unicode code points). Behaves like `--bytes` but counts characters instead of bytes.
|
|
74
75
|
- `-C, --global-bytes <BYTES>`: total output budget across all inputs. With `--bytes`, the effective total is the smaller of the two.
|
|
75
76
|
- `-f, --format <auto|json|yaml|text>`: output format (default: `auto`).
|
|
76
77
|
- Auto: stdin → JSON family; filesets → per‑file based on extension (`.json` → JSON family, `.yaml`/`.yml` → YAML, unknown → Text).
|
|
@@ -97,6 +98,25 @@ Notes:
|
|
|
97
98
|
- Directories and binary files are ignored; a notice is printed to stderr for each. Stdin reads the stream as‑is.
|
|
98
99
|
- Head vs Tail sampling: these options bias which part of arrays are kept before rendering. Display styles may still insert internal gap markers to honor very small budgets; strict JSON stays unannotated.
|
|
99
100
|
|
|
101
|
+
## Budget Modes
|
|
102
|
+
|
|
103
|
+
- Bytes (`-c/--bytes`, `-C/--global-bytes`)
|
|
104
|
+
- Measures UTF‑8 bytes in the output.
|
|
105
|
+
- Default per‑file budget is 500 bytes when neither `--lines` nor `--chars` is provided.
|
|
106
|
+
- Multiple inputs: total default budget is `<BYTES> * number_of_inputs`; `--global-bytes` caps the total.
|
|
107
|
+
|
|
108
|
+
- Characters (`-u/--chars`)
|
|
109
|
+
- Measures Unicode code points (not grapheme clusters).
|
|
110
|
+
|
|
111
|
+
- Lines (`-n/--lines`, `-N/--global-lines`)
|
|
112
|
+
- Caps the number of lines in the output.
|
|
113
|
+
- Incompatible with `--no-newline`.
|
|
114
|
+
- Multiple inputs: defaults to `<LINES> * number_of_inputs`; `--global-lines` caps the total.
|
|
115
|
+
|
|
116
|
+
- Interactions and precedence
|
|
117
|
+
- All active budgets are enforced simultaneously. The render must satisfy all of: bytes (if set), chars (if set), and lines (if set). The strictest cap wins.
|
|
118
|
+
- When only lines are specified, no implicit byte cap applies. When neither lines nor chars are specified, a 500‑byte default applies.
|
|
119
|
+
|
|
100
120
|
Quick one‑liners:
|
|
101
121
|
|
|
102
122
|
- Peek a big JSON stream (keeps structure):
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
headson-0.6.7.dist-info/METADATA,sha256=3xpwOO_m3zodnbLNXpIa_eWqJZsD8QMm-jr8T9Qqw9A,12116
|
|
2
|
+
headson-0.6.7.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
|
|
3
|
+
headson/__init__.py,sha256=Z-vwzLN9ptomZrtRqVUuUKSAaidOSVcjFI6Ojbuj-dU,219
|
|
4
|
+
headson/headson.pyd,sha256=EYovRRSZFDxvkZzaKttvJtmt05KzX73WfiQRXYJe5k4,762880
|
|
5
|
+
headson-0.6.7.dist-info/RECORD,,
|
headson-0.6.5.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
headson-0.6.5.dist-info/METADATA,sha256=3t0pjhTKOew4pPYlXB6suwXqDMiHND5y3jrTsx0lzSU,11007
|
|
2
|
-
headson-0.6.5.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
|
|
3
|
-
headson/__init__.py,sha256=Z-vwzLN9ptomZrtRqVUuUKSAaidOSVcjFI6Ojbuj-dU,219
|
|
4
|
-
headson/headson.pyd,sha256=3AtxfAJkMngHQBbX_7lIP0MxwJ_tEwcndtvY0rVM8GA,762880
|
|
5
|
-
headson-0.6.5.dist-info/RECORD,,
|
|
File without changes
|