baudhound 0.1.0__py3-none-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.
@@ -0,0 +1,244 @@
1
+ Metadata-Version: 2.4
2
+ Name: baudhound
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Information Technology
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: Rust
11
+ Classifier: Topic :: System :: Hardware
12
+ License-File: LICENSE-MIT
13
+ License-File: LICENSE-APACHE
14
+ Summary: Find UART pins, baud rate and frame format in logic-analyzer captures, and decode the boot log
15
+ Keywords: uart,logic-analyzer,sigrok,hardware-hacking,baud
16
+ Author: Reflex Hardware Security
17
+ License-Expression: MIT OR Apache-2.0
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
+ Project-URL: Changelog, https://github.com/reflex-hs/baudhound/blob/main/CHANGELOG.md
21
+ Project-URL: Homepage, https://github.com/reflex-hs/baudhound
22
+ Project-URL: Issues, https://github.com/reflex-hs/baudhound/issues
23
+ Project-URL: Source, https://github.com/reflex-hs/baudhound
24
+
25
+ # baudhound
26
+
27
+ Find the UART on an unknown board from a logic-analyzer capture.
28
+
29
+ You probed a row of unlabelled test pads with a cheap logic analyzer and
30
+ power-cycled the target. `baudhound` reads the capture and tells you which
31
+ channel is the serial console, its baud rate and frame format (data bits,
32
+ parity, stop bits, polarity), and prints the decoded boot log with the
33
+ interesting lines (U-Boot autoboot prompt, kernel command line, login prompt,
34
+ root shell) highlighted.
35
+
36
+ - Reads sigrok/PulseView `.sr` sessions, sigrok CSV, Saleae Logic 1/2 digital
37
+ CSV and raw binary samples; any number of channels.
38
+ - Estimates the baud rate from edge timing, snaps it to standard rates
39
+ (300 to 4 000 000, including 74880, 250000, 921600 and 1500000) and reports
40
+ non-standard rates as such.
41
+ - Tries 8N1, 7E1, 8E1, 8O1 and 8N2, normal and inverted, and ranks the
42
+ candidates with a confidence score.
43
+ - Tells UART TX apart from RX, clocks (SPI SCK, I2C SCL, PWM), idle lines and
44
+ unrelated activity.
45
+ - Text report with wiring hints, or `--json` for scripts.
46
+ - `gen` subcommand that synthesizes captures for testing and demos.
47
+
48
+ ## Wiring safety
49
+
50
+ A wrong connection can destroy the target or your analyzer. Before you probe:
51
+
52
+ - **Common ground.** Connect the analyzer GND to the target GND first. Without
53
+ a shared ground the readings are meaningless and the probes may see large
54
+ voltages.
55
+ - **Voltage levels.** Board UARTs run at 1.8 V, 3.3 V or 5 V. Measure the idle
56
+ pad voltage with a multimeter first. Many cheap analyzers (the common 24 MHz
57
+ 8-channel clones) accept 0 to 5 V and switch at about 1.4 V, which reads
58
+ 3.3 V and 5 V logic fine but can be marginal on 1.8 V lines. Never connect
59
+ anything to pads that carry more than your analyzer's rated input (RS-232
60
+ ports swing to +/-12 V).
61
+ - **Listen first.** Capturing only needs the analyzer inputs. When you later
62
+ connect a USB-UART adapter, connect its RX to the target TX and GND to GND;
63
+ only connect the adapter TX to the target RX after confirming that the
64
+ adapter's logic level matches the target (a 5 V adapter can damage a 1.8 V
65
+ or 3.3 V SoC).
66
+ - **Do not power the target from the adapter** unless you know the board's
67
+ supply requirements; leave the adapter's VCC pin disconnected.
68
+
69
+ ## Install
70
+
71
+ Prebuilt binaries are published on PyPI for Linux (x86_64 and aarch64, glibc and
72
+ musl), macOS (Apple Silicon and Intel) and Windows (x86_64), so no Rust toolchain is
73
+ needed:
74
+
75
+ ```sh
76
+ pipx install baudhound # or: uv tool install baudhound, or pip install baudhound
77
+ ```
78
+
79
+ [hwntools](https://github.com/reflex-hs/hwntools) installs it together with the other
80
+ Reflex tools with `pip install "hwntools[tools]"`.
81
+
82
+ To build from source with Cargo:
83
+
84
+ ```sh
85
+ # latest version from GitHub (works today)
86
+ cargo install --locked --git https://github.com/reflex-hs/baudhound
87
+
88
+ # from crates.io (once published)
89
+ cargo install --locked baudhound
90
+
91
+ # from a checkout
92
+ cargo install --locked --path .
93
+ ```
94
+
95
+ Building from source requires Rust 1.89 or newer.
96
+
97
+ ## Usage
98
+
99
+ Capture all candidate pads while the target boots (a sample rate of at least
100
+ 8 times the highest expected baud rate is best; 4 times still works), save
101
+ the session, then:
102
+
103
+ ```sh
104
+ baudhound capture.sr # PulseView / sigrok session
105
+ baudhound export.csv # sigrok or Saleae CSV export
106
+ baudhound dump.bin --samplerate 24M # raw samples (sigrok-cli -O binary)
107
+ baudhound dump.bin -s 24M --unitsize 2 # 16-channel raw samples
108
+ baudhound capture.sr -c D3 -c D4 # only some channels (name or index)
109
+ baudhound capture.sr --baud 115200 --framing 8N1 # skip detection
110
+ baudhound capture.sr --json > result.json
111
+ baudhound capture.sr --no-text # summary only
112
+ baudhound capture.sr --max-text 0 # print the whole decoded log
113
+ ```
114
+
115
+ `baudhound scan <files>` is the same as `baudhound <files>`.
116
+
117
+ ### Generating test captures
118
+
119
+ ```sh
120
+ baudhound gen -o demo.sr # 115200 8N1 boot log
121
+ baudhound gen -o demo.sr --rx-text $'root\n' --clock 250k --floating
122
+ baudhound gen -o fast.csv --format saleae-csv --baud 921600 --framing 7E1 --invert -s 8M
123
+ baudhound gen -o noisy.sr --jitter 0.1 --skew -0.02 --glitches 50
124
+ baudhound gen -o raw.bin --baud 1500000 -s 24M --text "hello"
125
+ ```
126
+
127
+ `D0` is the target RX (idle, or `--rx-text` keystrokes), `D1` the target TX;
128
+ `--clock` adds an SPI-like bursty clock and `--floating` a channel with random
129
+ toggles. Output format follows the extension (`.sr`, `.csv` = sigrok CSV,
130
+ `.bin` = raw) unless `--format` is given.
131
+
132
+ ## Sample output
133
+
134
+ ```text
135
+ $ baudhound gen -o demo.sr --rx-text $'root\n' --clock 250k --floating --jitter 0.05 --glitches 10
136
+ $ baudhound demo.sr --max-text 330 --top 2
137
+ == demo.sr (sigrok .sr): 4 channel(s), 1 MHz, 0.112 s
138
+
139
+ CH NAME ROLE SUMMARY
140
+ 0 D0 uart-rx 115200 8N1, conf 73%, 5 bytes, 0 errors (less traffic than the main UART: likely the target's RX (your keystrokes))
141
+ 1 D1 uart-tx 115200 8N1, conf 94%, 1144 bytes, 0 errors
142
+ 2 D2 clock ~250 kHz, duty 50%: bursty clock: SPI SCK or I2C SCL?
143
+ 3 D3 unknown 223 edges: irregular activity that does not decode as UART; a clock is on D2, so this may be SPI/I2C data
144
+
145
+ -- D0 (uart-rx): 115200 baud 8N1, normal polarity
146
+ confidence 73% measured 114796 baud bytes 5 errors 0
147
+ candidates:
148
+ 1. 115200 8N1 normal score 73.0% errors 0.0% printable 100%
149
+ 2. 115200 7E1 normal score 73.0% errors 0.0% printable 100%
150
+ decoded text:
151
+ | root
152
+
153
+ -- D1 (uart-tx): 115200 baud 8N1, normal polarity
154
+ confidence 94% measured 115198 baud bytes 1144 errors 0
155
+ candidates:
156
+ 1. 115200 8N1 normal score 93.9% errors 0.0% printable 100%
157
+ 2. 115200 7E1 normal score 71.0% errors 50.9% printable 100%
158
+ interesting:
159
+ [uboot-banner] line 7: U-Boot 2020.04 (Mar 12 2024 - 10:21:07 +0000)
160
+ -> U-Boot version banner
161
+ [uboot-autoboot] line 17: Hit any key to stop autoboot: 0
162
+ -> U-Boot autoboot countdown: press a key during it to reach the U-Boot shell
163
+ [kernel-start] line 24: Starting kernel ...
164
+ -> U-Boot is handing over to the kernel
165
+ [kernel-cmdline] line 28: [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock3 rootfstype=squashfs init=/linuxrc mtdparts=sfc:320K(boot),3072K(kernel),10M(rootfs)
166
+ -> kernel command line: check console=, root=, init=, mtdparts=
167
+ [login-prompt] line 34: ipcam login:
168
+ -> login prompt: try default credentials
169
+ decoded text:
170
+ |
171
+ | U-Boot SPL 2020.04 (Mar 12 2024 - 10:21:07 +0000)
172
+ | DRAM: 128 MiB
173
+ | Trying to boot from SPI
174
+ ...
175
+ ... truncated at 330 chars (use --max-text 0 for all)
176
+
177
+ Next steps:
178
+ - connect your USB-UART adapter RX to D1 and GND to the target GND; terminal at 115200 8N1, e.g. `picocom -b 115200 /dev/ttyUSB0`
179
+ - target RX is probably D0: connect your adapter TX there to send keystrokes
180
+ - U-Boot autoboot countdown seen: press a key during it to get the U-Boot prompt
181
+ - match the adapter's logic level to the target (1.8 V / 3.3 V / 5 V) before connecting TX
182
+ ```
183
+
184
+ (Some findings are omitted above for brevity.) With `--json` the same data is
185
+ emitted as a JSON document: per file, per channel `role`, `edges`,
186
+ `idle_high`, `uart` (baud, standard, framing, inverted, score, measured baud,
187
+ error counts), ranked `candidates`, `clock`, `text` and `findings`.
188
+
189
+ ## How it works
190
+
191
+ 1. **Load.** Every format is turned into per-channel edge lists (initial
192
+ level plus toggle positions), so memory scales with activity rather than
193
+ capture length. Timestamped CSVs use 1 ns ticks unless `--samplerate` is
194
+ given.
195
+ 2. **Classify clocks.** If nearly all high and low pulses have the same width
196
+ (allowing idle gaps between bursts), the channel is a clock and its
197
+ frequency and duty cycle are reported.
198
+ 3. **Estimate the bit period.** Pulses far shorter than the median are
199
+ dropped as glitches. The shortest well-populated width cluster gives a
200
+ first estimate; it is then refined GCD-style, because every pulse inside a
201
+ frame is an integer number of bits: `bit = sum(width) / sum(round(width / bit))`.
202
+ 4. **Generate candidates.** The raw rate and its nearest standard rate (and
203
+ the same for half and a third of the rate, in case no single-bit pulse was
204
+ seen) are each combined with 8N1, 7E1, 8E1, 8O1, 8N2 and both polarities.
205
+ 5. **Decode and score.** A receiver-style decoder samples each bit at its
206
+ centre with a three-point majority vote. Each candidate is scored on the
207
+ share of frames without framing/parity errors, how close in-frame edges sit
208
+ to bit boundaries (a wrong baud rate scatters them), the printable-ASCII
209
+ ratio, and agreement with the observed idle level. A transmitter slightly
210
+ off a standard rate is reported at the standard rate along with the
211
+ measured rate. 8N1 and 8N2 decode identically when bytes have gaps; 8N2 is
212
+ reported when back-to-back frames are consistently 11 bits apart.
213
+ 6. **Report.** The busiest UART is labelled TX; other UARTs (usually echoed
214
+ keystrokes) RX; an idle-high line next to a TX is suggested as the
215
+ target's RX input.
216
+
217
+ ## Limitations
218
+
219
+ - Only logic channels are read; analog channels in `.sr` files are ignored.
220
+ DSView `.dsl` files are not supported yet.
221
+ - A UART that only ever sends `0x55` (`U`) is a square wave and is reported as
222
+ a clock.
223
+ - Very short captures (a few bytes) cannot separate framings that decode the
224
+ same bytes identically; the more common framing is preferred and the
225
+ confidence is lowered.
226
+ - Below about 3 samples per bit no decoding is attempted.
227
+ - Writers used by `gen` support up to 8 channels.
228
+
229
+ ## License
230
+
231
+ Licensed under either of
232
+
233
+ - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))
234
+ - MIT license ([LICENSE-MIT](LICENSE-MIT))
235
+
236
+ at your option.
237
+
238
+ Copyright (c) 2026 Reflex Hardware Security.
239
+
240
+ Unless you explicitly state otherwise, any contribution intentionally
241
+ submitted for inclusion in the work by you, as defined in the Apache-2.0
242
+ license, shall be dual licensed as above, without any additional terms or
243
+ conditions.
244
+
@@ -0,0 +1,7 @@
1
+ baudhound-0.1.0.data/scripts/baudhound.exe,sha256=V1K5USdM-jj-BpyHZueg-ftqNkfU3P86nlKoaDT67Qw,1478144
2
+ baudhound-0.1.0.dist-info/METADATA,sha256=39ktG5diK9-0QAyDMQsVge8R6-Z-iDQ3oaF3EKrA55A,11396
3
+ baudhound-0.1.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
4
+ baudhound-0.1.0.dist-info/licenses/LICENSE-APACHE,sha256=IP57AOkE7WkOO5_WBzeE0_xCgUHb0QuBwB_RQ9B5f1g,9899
5
+ baudhound-0.1.0.dist-info/licenses/LICENSE-MIT,sha256=Vj1ywj0rwPNjEDkwb9r4lMnKJBN0KPtCFwgZ1ko_yzk,1102
6
+ baudhound-0.1.0.dist-info/sboms/baudhound.cyclonedx.json,sha256=9IVJf_os8N1F2kZTpiNC7skgTu2b0SHZD-YTqJIZS1U,53497
7
+ baudhound-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
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 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 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 those 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
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Reflex Hardware Security
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.