hammerio 1.0.0__tar.gz

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.
Files changed (49) hide show
  1. hammerio-1.0.0/LICENSE +190 -0
  2. hammerio-1.0.0/NOTICE +16 -0
  3. hammerio-1.0.0/PKG-INFO +299 -0
  4. hammerio-1.0.0/README.md +248 -0
  5. hammerio-1.0.0/hammerio/__init__.py +26 -0
  6. hammerio-1.0.0/hammerio/__main__.py +6 -0
  7. hammerio-1.0.0/hammerio/cli/__init__.py +1 -0
  8. hammerio-1.0.0/hammerio/cli/desktop.py +412 -0
  9. hammerio-1.0.0/hammerio/cli/main.py +655 -0
  10. hammerio-1.0.0/hammerio/core/__init__.py +1 -0
  11. hammerio-1.0.0/hammerio/core/config.py +230 -0
  12. hammerio-1.0.0/hammerio/core/hardware.py +726 -0
  13. hammerio-1.0.0/hammerio/core/license.py +146 -0
  14. hammerio-1.0.0/hammerio/core/profiler.py +429 -0
  15. hammerio-1.0.0/hammerio/core/router.py +669 -0
  16. hammerio-1.0.0/hammerio/core/telemetry.py +642 -0
  17. hammerio-1.0.0/hammerio/encoders/__init__.py +1 -0
  18. hammerio-1.0.0/hammerio/encoders/apple.py +386 -0
  19. hammerio-1.0.0/hammerio/encoders/audio.py +334 -0
  20. hammerio-1.0.0/hammerio/encoders/bulk.py +638 -0
  21. hammerio-1.0.0/hammerio/encoders/dataset.py +667 -0
  22. hammerio-1.0.0/hammerio/encoders/general.py +889 -0
  23. hammerio-1.0.0/hammerio/encoders/image.py +389 -0
  24. hammerio-1.0.0/hammerio/encoders/video.py +580 -0
  25. hammerio-1.0.0/hammerio/watch.py +567 -0
  26. hammerio-1.0.0/hammerio/web/__init__.py +1 -0
  27. hammerio-1.0.0/hammerio/web/app.py +2753 -0
  28. hammerio-1.0.0/hammerio/web/architecture.py +200 -0
  29. hammerio-1.0.0/hammerio.egg-info/PKG-INFO +299 -0
  30. hammerio-1.0.0/hammerio.egg-info/SOURCES.txt +47 -0
  31. hammerio-1.0.0/hammerio.egg-info/dependency_links.txt +1 -0
  32. hammerio-1.0.0/hammerio.egg-info/entry_points.txt +2 -0
  33. hammerio-1.0.0/hammerio.egg-info/requires.txt +28 -0
  34. hammerio-1.0.0/hammerio.egg-info/top_level.txt +1 -0
  35. hammerio-1.0.0/pyproject.toml +79 -0
  36. hammerio-1.0.0/setup.cfg +4 -0
  37. hammerio-1.0.0/tests/test_cli.py +171 -0
  38. hammerio-1.0.0/tests/test_config.py +91 -0
  39. hammerio-1.0.0/tests/test_config_roundtrip.py +160 -0
  40. hammerio-1.0.0/tests/test_cycles_301_400.py +572 -0
  41. hammerio-1.0.0/tests/test_encoder_edge.py +337 -0
  42. hammerio-1.0.0/tests/test_encoders.py +882 -0
  43. hammerio-1.0.0/tests/test_enhancements.py +385 -0
  44. hammerio-1.0.0/tests/test_hardware.py +96 -0
  45. hammerio-1.0.0/tests/test_profiler_edge.py +282 -0
  46. hammerio-1.0.0/tests/test_router.py +181 -0
  47. hammerio-1.0.0/tests/test_router_advanced.py +181 -0
  48. hammerio-1.0.0/tests/test_telemetry.py +194 -0
  49. hammerio-1.0.0/tests/test_web.py +310 -0
hammerio-1.0.0/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work.
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 ResilientMind AI | ResilientMindai.com | Joseph C McGinty Jr
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
hammerio-1.0.0/NOTICE ADDED
@@ -0,0 +1,16 @@
1
+ HammerIO
2
+ Copyright 2026 ResilientMind AI | ResilientMindai.com | Joseph C McGinty Jr
3
+
4
+ This product includes software developed by ResilientMind AI.
5
+ Licensed under the Apache License, Version 2.0.
6
+
7
+ Third-Party Notices:
8
+ - FFmpeg (LGPL/GPL) — used for video/audio encoding
9
+ - GStreamer (LGPL) — used for Jetson hardware video encoding
10
+ - NVIDIA CUDA Toolkit — used for GPU acceleration
11
+ - NVIDIA VPI — used for GPU image processing
12
+ - jetson-stats/jtop (AGPL-3.0) — used for Jetson telemetry
13
+ - zstandard (BSD) — used for CPU compression
14
+ - typer (MIT) — used for CLI
15
+ - rich (MIT) — used for terminal output
16
+ - Flask (BSD) — used for web dashboard
@@ -0,0 +1,299 @@
1
+ Metadata-Version: 2.4
2
+ Name: hammerio
3
+ Version: 1.0.0
4
+ Summary: GPU-accelerated compression for edge AI. GPU where it matters. CPU where it doesn't.
5
+ Author-email: Joseph C McGinty Jr <joe@resilientmindai.com>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://hammerio.dev
8
+ Project-URL: Documentation, https://hammerio.dev/docs
9
+ Project-URL: Repository, https://github.com/Subzero121800/HammerIO
10
+ Project-URL: Bug Tracker, https://github.com/Subzero121800/HammerIO/issues
11
+ Project-URL: Commercial License, https://hammerio.dev/license
12
+ Keywords: compression,gpu,nvcomp,jetson,edge-ai,zstd,lz4,cuda,hammerio,resilientmind
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Operating System :: POSIX :: Linux
19
+ Classifier: Topic :: System :: Archiving :: Compression
20
+ Classifier: Intended Audience :: Developers
21
+ Classifier: Intended Audience :: Science/Research
22
+ Classifier: Development Status :: 5 - Production/Stable
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ License-File: NOTICE
27
+ Requires-Dist: typer>=0.9.0
28
+ Requires-Dist: rich>=13.0.0
29
+ Requires-Dist: zstandard>=0.21.0
30
+ Requires-Dist: numpy>=1.24.0
31
+ Requires-Dist: psutil>=5.9.0
32
+ Requires-Dist: toml>=0.10.0
33
+ Requires-Dist: aiofiles>=23.0
34
+ Requires-Dist: watchdog>=3.0.0
35
+ Requires-Dist: tqdm>=4.0.0
36
+ Provides-Extra: gpu
37
+ Requires-Dist: opencv-python>=4.8.0; extra == "gpu"
38
+ Requires-Dist: pynvml>=11.5.0; extra == "gpu"
39
+ Provides-Extra: jetson
40
+ Requires-Dist: jetson-stats>=4.0.0; extra == "jetson"
41
+ Provides-Extra: web
42
+ Requires-Dist: flask>=3.0.0; extra == "web"
43
+ Requires-Dist: flask-socketio>=5.3.0; extra == "web"
44
+ Provides-Extra: dev
45
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
46
+ Requires-Dist: build; extra == "dev"
47
+ Requires-Dist: twine; extra == "dev"
48
+ Provides-Extra: all
49
+ Requires-Dist: hammerio[dev,gpu,jetson,web]; extra == "all"
50
+ Dynamic: license-file
51
+
52
+ <p align="center">
53
+ <img src="docs/architecture.svg" alt="HammerIO Architecture" width="800">
54
+ </p>
55
+
56
+ <h1 align="center">HammerIO</h1>
57
+
58
+ <p align="center">
59
+ <strong>GPU-accelerated compression for edge AI. GPU where it matters. CPU where it doesn't.</strong><br>
60
+ <em>Created by <strong>ResilientMind AI</strong> | <a href="https://resilientmindai.com">ResilientMindai.com</a> | <strong>Joseph C McGinty Jr</strong></em>
61
+ </p>
62
+
63
+ <p align="center">
64
+ <a href="https://pypi.org/project/hammerio/"><img src="https://img.shields.io/pypi/v/hammerio?style=flat-square&color=blue" alt="PyPI"></a>
65
+ <a href="https://pypi.org/project/hammerio/"><img src="https://img.shields.io/pypi/pyversions/hammerio?style=flat-square" alt="Python"></a>
66
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square" alt="License"></a>
67
+ <a href="#"><img src="https://img.shields.io/badge/platform-Linux%20%7C%20Jetson%20%7C%20macOS-lightgrey?style=flat-square" alt="Platform"></a>
68
+ <a href="#"><img src="https://img.shields.io/badge/CUDA-12.x-76B900?style=flat-square&logo=nvidia" alt="CUDA"></a>
69
+ <a href="#"><img src="https://img.shields.io/badge/nvCOMP-GPU%20LZ4-76B900?style=flat-square" alt="nvCOMP"></a>
70
+ </p>
71
+
72
+ ---
73
+
74
+ **HammerIO** is a GPU-accelerated compression toolkit that automatically routes files to the fastest available hardware. Large files go to **nvCOMP GPU LZ4** (6+ GB/s decompression). On macOS, it uses **Apple LZFSE** via the Accelerate framework. Everything else goes to **CPU zstd** with parallel threading. No flags, no configuration.
75
+
76
+ ## Installation
77
+
78
+ ```bash
79
+ pip install hammerio
80
+ ```
81
+
82
+ **GPU acceleration** (NVIDIA Jetson or desktop GPU):
83
+ ```bash
84
+ pip install hammerio[gpu]
85
+ ```
86
+
87
+ **Jetson with jtop monitoring:**
88
+ ```bash
89
+ pip install hammerio[jetson]
90
+ ```
91
+
92
+ **From source:**
93
+ ```bash
94
+ git clone https://github.com/Subzero121800/HammerIO.git
95
+ cd HammerIO && pip install -e .
96
+ ```
97
+
98
+ Requires Python 3.10+. GPU features require CUDA 12.x and NVIDIA nvCOMP.
99
+
100
+ ## Post-Install Setup
101
+
102
+ After installing with pip, run these optional setup commands:
103
+
104
+ ```bash
105
+ # Accept the license agreement (shown automatically on first run)
106
+ hammer --accept-license
107
+
108
+ # Install right-click compress/decompress in your file manager
109
+ hammer install-desktop
110
+
111
+ # Launch the web dashboard (GPU monitoring, file browser, compression UI)
112
+ hammer webui
113
+ ```
114
+
115
+ ## Quick Start
116
+
117
+ ```bash
118
+ # Compress anything -- routing is automatic
119
+ hammer compress data.csv
120
+ hammer compress ./dataset/ --quality fast
121
+ hammer compress archive.tar --algo lz4
122
+
123
+ # Decompress
124
+ hammer decompress data.csv.zst
125
+ hammer decompress archive.tar.lz4
126
+
127
+ # Batch compress a directory
128
+ hammer batch ./logs/ --workers 8
129
+
130
+ # See what HammerIO would do
131
+ hammer info --routes ./my_file.csv
132
+
133
+ # Hardware profile
134
+ hammer info --hardware
135
+
136
+ # Install right-click context menu (Nautilus, Nemo, Thunar)
137
+ hammer install-desktop
138
+ ```
139
+
140
+ **Python API:**
141
+
142
+ ```python
143
+ import hammerio
144
+
145
+ router = hammerio.JobRouter(quality="fast")
146
+ job = router.route("dataset.csv")
147
+ result = router.execute(job)
148
+ print(f"{result.compression_ratio:.1f}x via {result.processor_used}")
149
+ ```
150
+
151
+ ## Benchmarks
152
+
153
+ Measured on **Jetson AGX Orin 64GB**, JetPack 6.2.2, CUDA 12.6, MAXN mode. Realistic mixed data (25% CSV, 25% patterns, 25% semi-random, 25% true entropy).
154
+
155
+ ### Roundtrip Performance (10 GB)
156
+
157
+ | Method | Compress | Decompress | Ratio | Roundtrip |
158
+ |--------|--------:|----------:|------:|----------:|
159
+ | CPU zstd-1 | 1,094 MB/s | 733 MB/s | 2.00x | 24.1s |
160
+ | CPU zstd-3 | 1,014 MB/s | 741 MB/s | 2.00x | 24.0s |
161
+ | **GPU nvCOMP LZ4** | 517 MB/s | **4,258 MB/s** | 1.98x | **22.2s** |
162
+
163
+ > GPU wins the roundtrip: **1.1x faster** than CPU best. GPU decompression is **5.7x faster** than CPU.
164
+
165
+ ### In-Memory (Pure Algorithm Speed, No Disk I/O)
166
+
167
+ | Method | Compress | Decompress | Ratio |
168
+ |--------|--------:|----------:|------:|
169
+ | CPU zstd-1 | 1,747 MB/s | 2,001 MB/s | 2.00x |
170
+ | CPU zstd-3 | 1,615 MB/s | 2,088 MB/s | 2.00x |
171
+ | **GPU nvCOMP LZ4** | 705 MB/s | **8,537 MB/s** | 1.98x |
172
+ | **GPU nvCOMP Snappy** | **1,615 MB/s** | **5,756 MB/s** | 1.68x |
173
+
174
+ ### Random I/O (64KB Blocks)
175
+
176
+ | Pattern | IOPS | Bandwidth | Latency p99 |
177
+ |---------|-----:|----------:|------------:|
178
+ | Random Read | 109,299 | 6,831 MB/s | 0.02 ms |
179
+ | Random Write | 29,405 | 1,838 MB/s | 0.05 ms |
180
+ | Mixed 70/30 R/W | 57,146 | 3,572 MB/s | 0.05 ms |
181
+
182
+ ### Scalability (GPU vs CPU Crossover)
183
+
184
+ | Size | CPU zstd-3 | GPU LZ4 | GPU Wins? |
185
+ |-----:|-----------:|--------:|:---------:|
186
+ | 1 MB | 260 MB/s | 29 MB/s | No |
187
+ | 10 MB | 341 MB/s | 378 MB/s | Yes |
188
+ | 100 MB | 678 MB/s | 693 MB/s | Yes |
189
+ | 1 GB | 380 MB/s | 464 MB/s | Yes |
190
+
191
+ > GPU crossover at ~10 MB. Below that, kernel launch overhead dominates.
192
+
193
+ Run benchmarks yourself:
194
+ ```bash
195
+ hammer benchmark # Standard (500MB)
196
+ hammer benchmark --quick # Quick (100MB)
197
+ hammer benchmark --10gb # Stress test (10GB)
198
+ hammer benchmark --type memory # In-memory only
199
+ hammer benchmark --type random-io # Random I/O patterns
200
+ hammer benchmark --type scale # Scalability sweep
201
+ ```
202
+
203
+ ## Smart Routing
204
+
205
+ HammerIO profiles every file and routes to the optimal compressor:
206
+
207
+ ```
208
+ $ hammer info --hardware
209
+
210
+ Routing Profile:
211
+ Large Files -> nvCOMP LZ4 (GPU) # Files > 500MB
212
+ Datasets -> nvCOMP LZ4 (GPU) # CSV, Parquet, NPY, etc.
213
+ General -> zstd parallel (CPU) # Default path
214
+ Archives -> passthrough # Already compressed
215
+ Text Logs -> zstd (CPU, high ratio) # Best ratio
216
+ ```
217
+
218
+ On macOS Apple Silicon: `General -> Apple LZFSE (Accelerate)` -- hardware-optimized, faster than zstd on M-series.
219
+
220
+ If the GPU path fails (OOM, driver issue), HammerIO falls back to CPU and logs why.
221
+
222
+ ## Watch Daemon
223
+
224
+ Drop-folder automation for edge pipelines:
225
+
226
+ ```bash
227
+ hammer watch --watch-root ./pipeline --threshold-mb 500
228
+
229
+ # ./pipeline/
230
+ # compress/ <- drop files here
231
+ # decompress/ <- drop .zst/.lz4 files here
232
+ # compressed/ <- output appears here
233
+ # decompressed/ <- output appears here
234
+ # processed/ <- originals moved here after success
235
+ ```
236
+
237
+ GPU routing kicks in for files above the threshold. CPU handles the rest.
238
+
239
+ ## Web Dashboard
240
+
241
+ ```bash
242
+ hammer webui # http://localhost:5000
243
+ ```
244
+
245
+ Real-time monitoring: GPU/CPU utilization, thermal zones, power rails, per-core CPU bars, compression job history, file browser, quick compress/decompress, and a built-in CLI console.
246
+
247
+ ## Hardware Compatibility
248
+
249
+ | Device | Compression Engine | Status |
250
+ |--------|-------------------|--------|
251
+ | **Jetson AGX Orin** | nvCOMP GPU LZ4 | Primary target, fully tested |
252
+ | Jetson Orin NX / Nano | nvCOMP GPU LZ4 | Supported |
253
+ | RTX 3000 / 4000 / 5000 | nvCOMP GPU LZ4 | Supported |
254
+ | Any CUDA 12.x GPU | nvCOMP GPU LZ4 | Supported |
255
+ | **macOS Apple Silicon** | Apple LZFSE (Accelerate) | M1/M2/M3/M4 |
256
+ | CPU-only (no GPU) | zstd / gzip / lz4 | Universal fallback |
257
+
258
+ ## CLI Reference
259
+
260
+ | Command | Description |
261
+ |---------|-------------|
262
+ | `hammer compress` | Compress file or directory (auto GPU/CPU routing) |
263
+ | `hammer decompress` | Decompress .zst, .lz4, .lzfse, .gz, .bz2 files |
264
+ | `hammer batch` | Batch compress a directory with parallel workers |
265
+ | `hammer watch` | Watch folders and auto-process dropped files |
266
+ | `hammer benchmark` | Run GPU vs CPU benchmark suite |
267
+ | `hammer install-desktop` | Install right-click compress/decompress in file manager |
268
+ | `hammer info` | Hardware profile, routing decisions, telemetry |
269
+ | `hammer config` | Show, save, or generate configuration |
270
+ | `hammer monitor` | Live terminal telemetry (jtop-style) |
271
+ | `hammer webui` | Launch web dashboard |
272
+ | `hammer version` | Version and system info |
273
+
274
+ ## License
275
+
276
+ ```
277
+ Copyright 2026 ResilientMind AI | ResilientMindai.com | Joseph C McGinty Jr
278
+ Licensed under the Apache License, Version 2.0
279
+ ```
280
+
281
+ **Open source** for personal, educational, research, and internal business use.
282
+
283
+ **Commercial licenses** available for redistribution, SaaS, and OEM embedding.
284
+
285
+ | License | Price |
286
+ |---------|-------|
287
+ | Individual commercial | $199 one-time |
288
+ | Organization | $999/year |
289
+ | OEM / Embedded | Custom |
290
+
291
+ See [COMMERCIAL_LICENSE.md](COMMERCIAL_LICENSE.md) for details.
292
+
293
+ **Contact:** [joe@resilientmindai.com](mailto:joe@resilientmindai.com) | [resilientmindai.com](https://resilientmindai.com)
294
+
295
+ ---
296
+
297
+ <p align="center">
298
+ <strong>ResilientMind AI</strong> | <a href="https://resilientmindai.com">resilientmindai.com</a> | <strong>Joseph C McGinty Jr</strong>
299
+ </p>