headson 0.6.2__cp310-abi3-win_amd64.whl → 0.6.3__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.2
3
+ Version: 0.6.3
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
- Head/tail for JSON and YAML but structure‑aware. Get a compact preview that shows both the shape and representative values of your data, all within a strict character budget.
23
+ `heal`/`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 character 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))
@@ -41,10 +41,11 @@ From source:
41
41
  ## Features
42
42
 
43
43
  - Budgeted output: specify exactly how much you want to see
44
- - Output formats: `auto | json | yaml`
44
+ - Output formats: `auto | json | yaml | text`
45
45
  - Styles: `strict | default | detailed`
46
46
  - JSON family: `strict` → strict JSON, `default` → human‑friendly Pseudo, `detailed` → JS with inline comments
47
47
  - YAML: always YAML; `strict` has no comments, `default` uses “# …”, `detailed` uses “# N more …”
48
+ - Text: prints raw lines. In `default` style, omissions are shown as a single line `…`; in `detailed`, as `… N more lines …`. `strict` omits array‑level summaries.
48
49
  - Multiple inputs: preview many files at once with a shared or per‑file budget
49
50
  - Fast: processes gigabyte‑scale files in seconds (mostly disk‑bound)
50
51
  - Available as a CLI app and as a Python library
@@ -68,12 +69,12 @@ Common flags:
68
69
 
69
70
  - `-n, --budget <BYTES>`: per‑file output budget. For multiple inputs, default total budget is `<BYTES> * number_of_inputs`.
70
71
  - `-N, --global-budget <BYTES>`: total output budget across all inputs. With `--budget`, the effective total is the smaller of the two.
71
- - `-f, --format <auto|json|yaml>`: output format (default: `auto`).
72
- - Auto: stdin → JSON family; filesets → per‑file based on extension (`.json` → JSON family, `.yaml`/`.yml` → YAML).
72
+ - `-f, --format <auto|json|yaml|text>`: output format (default: `auto`).
73
+ - Auto: stdin → JSON family; filesets → per‑file based on extension (`.json` → JSON family, `.yaml`/`.yml` → YAML, unknown → Text).
73
74
  - `-t, --template <strict|default|detailed>`: output style (default: `default`).
74
75
  - JSON family: `strict` → strict JSON; `default` → Pseudo; `detailed` → JS with inline comments.
75
76
  - YAML: always YAML; style only affects comments (`strict` none, `default` “# …”, `detailed` “# N more …”).
76
- - `-i, --input-format <json|yaml>`: ingestion format (default: `json`). For filesets in `auto` format, ingestion is chosen by extensions.
77
+ - `-i, --input-format <json|yaml|text>`: ingestion format (default: `json`). For filesets in `auto` format, ingestion is chosen by extensions.
77
78
  - `-m, --compact`: no indentation, no spaces, no newlines
78
79
  - `--no-newline`: single line output
79
80
  - `--no-space`: no space after `:` in objects
@@ -86,7 +87,8 @@ Notes:
86
87
 
87
88
  - Multiple inputs:
88
89
  - With newlines enabled, file sections are rendered with human‑readable headers. In compact/single‑line modes, headers are omitted.
89
- - In `--format auto`, each file uses its own best format: JSON family for `.json`, YAML for `.yaml`/`.yml`.
90
+ - In `--format auto`, each file uses its own best format: JSON family for `.json`, YAML for `.yaml`/`.yml`.
91
+ - Unknown extensions are treated as Text (raw lines) — safe for logs and `.txt` files.
90
92
  - `--global-budget` may truncate or omit entire files to respect the total budget.
91
93
  - The tool finds the largest preview that fits the budget; even if extremely tight, you still get a minimal, valid preview.
92
94
  - Directories and binary files are ignored; a notice is printed to stderr for each. Stdin reads the stream as‑is.
@@ -110,6 +112,25 @@ Quick one‑liners:
110
112
 
111
113
  headson -n 400 -f yaml -t detailed config.yaml
112
114
 
115
+ ### Text mode
116
+
117
+ - Single file (auto):
118
+
119
+ headson -n 200 notes.txt
120
+
121
+ - Force Text ingest/output (useful when mixing with other extensions):
122
+
123
+ headson -n 200 -i text -f text notes.txt
124
+
125
+ - Many text files (fileset):
126
+
127
+ headson -n 800 -i text -f text logs/*.txt
128
+
129
+ - Styles on Text:
130
+ - default: omission as a standalone `…` line.
131
+ - detailed: omission as `… N more lines …`.
132
+ - strict: no array‑level omission line (individual long lines may still truncate with `…`).
133
+
113
134
  Show help:
114
135
 
115
136
  headson --help
@@ -157,6 +178,7 @@ Regenerate locally:
157
178
  - Run: cargo make tapes
158
179
  - Outputs are written to docs/assets/tapes
159
180
 
181
+
160
182
  ## Python Bindings
161
183
 
162
184
  A thin Python extension module is available on PyPI as `headson`.
@@ -0,0 +1,5 @@
1
+ headson-0.6.3.dist-info/METADATA,sha256=1KJILJz19mAFsItaIP8HJGiyDyUZyOGqQSQEQxcjRoE,10720
2
+ headson-0.6.3.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
+ headson/__init__.py,sha256=Z-vwzLN9ptomZrtRqVUuUKSAaidOSVcjFI6Ojbuj-dU,219
4
+ headson/headson.pyd,sha256=9tzAWWQGEgz4Al25c_oAHG2cQIEv3sqBTyXXavPRnMk,773632
5
+ headson-0.6.3.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- headson-0.6.2.dist-info/METADATA,sha256=JhObjCQ0LKxqCUg2YdJlE272hAKGob8KhXCcyh0Pa2s,9831
2
- headson-0.6.2.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
3
- headson/__init__.py,sha256=Z-vwzLN9ptomZrtRqVUuUKSAaidOSVcjFI6Ojbuj-dU,219
4
- headson/headson.pyd,sha256=1u6Iy8XUOfv_zPDCcGp5Sht0CRrgYBQ5Sav2GNw1Cwg,762368
5
- headson-0.6.2.dist-info/RECORD,,