textfsm2 0.1.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 (48) hide show
  1. textfsm2-0.1.0/.cargo/config.toml +15 -0
  2. textfsm2-0.1.0/CHANGELOG.md +82 -0
  3. textfsm2-0.1.0/Cargo.lock +205 -0
  4. textfsm2-0.1.0/Cargo.toml +98 -0
  5. textfsm2-0.1.0/LICENSE +201 -0
  6. textfsm2-0.1.0/NOTICE +8 -0
  7. textfsm2-0.1.0/PKG-INFO +201 -0
  8. textfsm2-0.1.0/README.md +170 -0
  9. textfsm2-0.1.0/SECURITY.md +41 -0
  10. textfsm2-0.1.0/pyproject.toml +106 -0
  11. textfsm2-0.1.0/python/textfsm2/__init__.py +14 -0
  12. textfsm2-0.1.0/python/textfsm2/_alias.py +104 -0
  13. textfsm2-0.1.0/python/textfsm2/_core.pyi +86 -0
  14. textfsm2-0.1.0/python/textfsm2/clitable.py +584 -0
  15. textfsm2-0.1.0/python/textfsm2/parser.py +1614 -0
  16. textfsm2-0.1.0/python/textfsm2/py.typed +0 -0
  17. textfsm2-0.1.0/python/textfsm2/terminal.py +555 -0
  18. textfsm2-0.1.0/python/textfsm2/texttable.py +1227 -0
  19. textfsm2-0.1.0/src/engine.rs +1699 -0
  20. textfsm2-0.1.0/src/lib.rs +1031 -0
  21. textfsm2-0.1.0/src/pyre.rs +1149 -0
  22. textfsm2-0.1.0/src/template.rs +700 -0
  23. textfsm2-0.1.0/src/text.rs +134 -0
  24. textfsm2-0.1.0/tests/differential.py +342 -0
  25. textfsm2-0.1.0/tests/test_api.py +563 -0
  26. textfsm2-0.1.0/tests/test_bench_gate.py +105 -0
  27. textfsm2-0.1.0/tests/test_consistency.py +162 -0
  28. textfsm2-0.1.0/tests/test_docs_config.py +34 -0
  29. textfsm2-0.1.0/tests/test_free_threading.py +129 -0
  30. textfsm2-0.1.0/tests/test_regex_fuzz.py +254 -0
  31. textfsm2-0.1.0/tests/test_stubs.py +151 -0
  32. textfsm2-0.1.0/tests/test_upstream_repros.py +42 -0
  33. textfsm2-0.1.0/tests/upstream_textfsm/__init__.py +0 -0
  34. textfsm2-0.1.0/tests/upstream_textfsm/clitable_test.py +285 -0
  35. textfsm2-0.1.0/tests/upstream_textfsm/conftest.py +54 -0
  36. textfsm2-0.1.0/tests/upstream_textfsm/terminal_test.py +257 -0
  37. textfsm2-0.1.0/tests/upstream_textfsm/testdata/clitable_templateA +6 -0
  38. textfsm2-0.1.0/tests/upstream_textfsm/testdata/clitable_templateB +5 -0
  39. textfsm2-0.1.0/tests/upstream_textfsm/testdata/clitable_templateC +6 -0
  40. textfsm2-0.1.0/tests/upstream_textfsm/testdata/clitable_templateD +6 -0
  41. textfsm2-0.1.0/tests/upstream_textfsm/testdata/default_index +10 -0
  42. textfsm2-0.1.0/tests/upstream_textfsm/testdata/nondefault_index +10 -0
  43. textfsm2-0.1.0/tests/upstream_textfsm/testdata/parseindex_index +10 -0
  44. textfsm2-0.1.0/tests/upstream_textfsm/testdata/parseindexfail1_index +11 -0
  45. textfsm2-0.1.0/tests/upstream_textfsm/testdata/parseindexfail2_index +11 -0
  46. textfsm2-0.1.0/tests/upstream_textfsm/testdata/parseindexfail3_index +11 -0
  47. textfsm2-0.1.0/tests/upstream_textfsm/textfsm_test.py +1091 -0
  48. textfsm2-0.1.0/tests/upstream_textfsm/texttable_test.py +870 -0
@@ -0,0 +1,15 @@
1
+ # Cargo settings for this checkout (https://doc.rust-lang.org/cargo/reference/config.html).
2
+ #
3
+ # Build flags go here, in [build] rustflags or [env], never in ad-hoc
4
+ # RUSTFLAGS: then every build (cargo, maturin, uv sync, CI, release wheels)
5
+ # uses them. Add one only with a measurement behind it, written next to it:
6
+ # what it changed, on which benchmark and machine, with a link to the record
7
+ # in scripts/bench/results/. There are none yet: the release profile in
8
+ # Cargo.toml (fat LTO, one codegen unit) is the only tuning.
9
+ #
10
+ # Not here: target-cpu=native and similar. Wheels run on CPUs other than the
11
+ # build machine's.
12
+
13
+ [alias]
14
+ # The same clippy run as the prek hook and CI: `cargo lint`.
15
+ lint = "clippy --release --all-targets -- -D warnings"
@@ -0,0 +1,82 @@
1
+ # Changelog
2
+
3
+ User-visible changes go under `## Unreleased`. `make release` turns that
4
+ section into the next version and adds its measured impact on coverage and
5
+ ntc-templates performance.
6
+
7
+ ## Unreleased
8
+
9
+ ## 0.1.0 - 2026-11-30
10
+
11
+ Initial release of `textfsm2`:
12
+
13
+ - Drop-in replacement for `google/textfsm` (`import textfsm2 as textfsm`,
14
+ plus `textfsm2.alias_textfsm()` for third-party libraries that import
15
+ `textfsm`; compatible with `textfsm 2.1.1` by default, with opt-in support
16
+ for `google/textfsm#151` via `SKIP_NONPARTICIPATING_GROUPS` or
17
+ `TEXTFSM_SKIP_NONPARTICIPATING_GROUPS=1`).
18
+ - Template compiler and FSM runtime rewritten in Rust (`textfsm2._core`),
19
+ releasing the GIL during `ParseText` and caching compiled templates
20
+ process-wide.
21
+ - Free-threaded Python support: `cp314t` and `cp315t` wheels, the GIL stays
22
+ disabled (checked with gilguard in CI), and thread-safety tests that compare
23
+ concurrent parsing with a sequential run.
24
+ - Exact fallback to CPython `re` and the Python implementation in `parser.py`
25
+ for custom `options_class`, overridden hooks, non-ASCII Unicode-sensitive
26
+ patterns, and regex constructs whose captures or matches cannot be modeled
27
+ identically by Rust automata.
28
+
29
+ ### Impact
30
+
31
+ Measured with release builds in the benchmark gate run recorded in
32
+ `scripts/bench/results/`. The README and docs numbers come from a separate
33
+ `scripts/bench/update_docs.py` run, so they can differ slightly.
34
+
35
+ #### Coverage
36
+
37
+ | Lines covered | 0.1.0 |
38
+ |---|---:|
39
+ | Python (`textfsm2`) | 86.4% |
40
+ | Rust (`_core`) | 46.2% |
41
+
42
+ #### Performance
43
+
44
+ Release builds parsing all 1,906 test files of ntc-templates 9.4.0 (06fa3338,
45
+ 2026-11-19) on Python 3.15.2.
46
+
47
+ | ntc-templates `parse_output` | 0.1.0 | vs `textfsm==2.1.1` |
48
+ |---|---:|---:|
49
+ | cold cache | 763 ms | 8.5× faster |
50
+ | warm cache | 397 ms | 16.4× faster |
51
+ | warm cache, 4 threads | 364 ms | 18.7× faster |
52
+
53
+ #### Free-threaded Python
54
+
55
+ The same builds on free-threaded Python 3.15.2. Goal: as fast as or faster than
56
+ standard 3.15 on every workload (✓ within 5%; above 1× is faster).
57
+
58
+ | ntc-templates `parse_output` | 0.1.0 | vs standard 3.15 |
59
+ |---|---:|---:|
60
+ | cold cache | 784 ms | 0.97× ✓ |
61
+ | warm cache | 418 ms | 0.95× ✗ |
62
+ | warm cache, 4 threads | 166 ms | 2.19× ✓ |
63
+
64
+ #### Resource usage
65
+
66
+ Peak memory (RSS) of each workload process and CPU time (all threads, user +
67
+ system) per run, on the same builds. Below 1× uses less.
68
+
69
+ | Peak memory | 0.1.0 | vs textfsm | 3.15t vs 3.15 |
70
+ |---|---:|---:|---:|
71
+ | cold cache | 95 MB | 1.86× textfsm | 1.10× 3.15 |
72
+ | warm cache | 258 MB | 5.22× textfsm | 1.03× 3.15 |
73
+ | warm cache, 4 threads | 266 MB | 5.24× textfsm | 1.13× 3.15 |
74
+
75
+ | CPU time | 0.1.0 | vs textfsm | 3.15t vs 3.15 |
76
+ |---|---:|---:|---:|
77
+ | cold cache | 763 ms | 0.12× textfsm | 1.03× 3.15 |
78
+ | warm cache | 397 ms | 0.06× textfsm | 1.05× 3.15 |
79
+ | warm cache, 4 threads | 530 ms | 0.08× textfsm | 0.95× 3.15 |
80
+
81
+ Best of 5 interleaved rounds on Darwin arm64. Changes under ±5% are usually
82
+ noise.
@@ -0,0 +1,205 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aho-corasick"
7
+ version = "1.1.5"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
10
+ dependencies = [
11
+ "memchr",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "bit-set"
16
+ version = "0.8.0"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
19
+ dependencies = [
20
+ "bit-vec",
21
+ ]
22
+
23
+ [[package]]
24
+ name = "bit-vec"
25
+ version = "0.8.0"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
28
+
29
+ [[package]]
30
+ name = "fancy-regex"
31
+ version = "0.20.2"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "0a2e16b9a584b602f1e0e5e22c30ca0906786088c27500653e432d086def8b53"
34
+ dependencies = [
35
+ "bit-set",
36
+ "regex-automata",
37
+ "regex-syntax",
38
+ ]
39
+
40
+ [[package]]
41
+ name = "heck"
42
+ version = "0.5.0"
43
+ source = "registry+https://github.com/rust-lang/crates.io-index"
44
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
45
+
46
+ [[package]]
47
+ name = "libc"
48
+ version = "0.2.191"
49
+ source = "registry+https://github.com/rust-lang/crates.io-index"
50
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
51
+
52
+ [[package]]
53
+ name = "memchr"
54
+ version = "2.8.3"
55
+ source = "registry+https://github.com/rust-lang/crates.io-index"
56
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
57
+
58
+ [[package]]
59
+ name = "once_cell"
60
+ version = "1.21.4"
61
+ source = "registry+https://github.com/rust-lang/crates.io-index"
62
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
63
+
64
+ [[package]]
65
+ name = "portable-atomic"
66
+ version = "1.15.0"
67
+ source = "registry+https://github.com/rust-lang/crates.io-index"
68
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
69
+
70
+ [[package]]
71
+ name = "proc-macro2"
72
+ version = "1.0.107"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
75
+ dependencies = [
76
+ "unicode-ident",
77
+ ]
78
+
79
+ [[package]]
80
+ name = "pyo3"
81
+ version = "0.30.1"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
84
+ dependencies = [
85
+ "libc",
86
+ "once_cell",
87
+ "portable-atomic",
88
+ "pyo3-build-config",
89
+ "pyo3-ffi",
90
+ "pyo3-macros",
91
+ ]
92
+
93
+ [[package]]
94
+ name = "pyo3-build-config"
95
+ version = "0.30.1"
96
+ source = "registry+https://github.com/rust-lang/crates.io-index"
97
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
98
+ dependencies = [
99
+ "target-lexicon",
100
+ ]
101
+
102
+ [[package]]
103
+ name = "pyo3-ffi"
104
+ version = "0.30.1"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
107
+ dependencies = [
108
+ "libc",
109
+ "pyo3-build-config",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "pyo3-macros"
114
+ version = "0.30.1"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
117
+ dependencies = [
118
+ "proc-macro2",
119
+ "pyo3-macros-backend",
120
+ "quote",
121
+ "syn",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "pyo3-macros-backend"
126
+ version = "0.30.1"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
129
+ dependencies = [
130
+ "heck",
131
+ "proc-macro2",
132
+ "quote",
133
+ "syn",
134
+ ]
135
+
136
+ [[package]]
137
+ name = "quote"
138
+ version = "1.0.47"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
141
+ dependencies = [
142
+ "proc-macro2",
143
+ ]
144
+
145
+ [[package]]
146
+ name = "regex"
147
+ version = "1.13.2"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
150
+ dependencies = [
151
+ "aho-corasick",
152
+ "memchr",
153
+ "regex-automata",
154
+ "regex-syntax",
155
+ ]
156
+
157
+ [[package]]
158
+ name = "regex-automata"
159
+ version = "0.4.19"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
162
+ dependencies = [
163
+ "aho-corasick",
164
+ "memchr",
165
+ "regex-syntax",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "regex-syntax"
170
+ version = "0.8.12"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
173
+
174
+ [[package]]
175
+ name = "syn"
176
+ version = "3.0.10"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
179
+ dependencies = [
180
+ "proc-macro2",
181
+ "quote",
182
+ "unicode-ident",
183
+ ]
184
+
185
+ [[package]]
186
+ name = "target-lexicon"
187
+ version = "0.13.6"
188
+ source = "registry+https://github.com/rust-lang/crates.io-index"
189
+ checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
190
+
191
+ [[package]]
192
+ name = "textfsm2-core"
193
+ version = "0.1.0"
194
+ dependencies = [
195
+ "fancy-regex",
196
+ "pyo3",
197
+ "regex",
198
+ "regex-automata",
199
+ ]
200
+
201
+ [[package]]
202
+ name = "unicode-ident"
203
+ version = "1.0.27"
204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
205
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
@@ -0,0 +1,98 @@
1
+ [package]
2
+ name = "textfsm2-core"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ # let-chains (`if let ... && let ...`) need 1.88; PyO3 needs 1.85.
6
+ rust-version = "1.88"
7
+ license = "Apache-2.0"
8
+ publish = false
9
+ # The sdist is an allowlist: maturin packages the crate files Cargo lists
10
+ # (this `include`), plus python/, pyproject.toml, the README and the license
11
+ # files, which it always adds. Anything else in the repository (tooling,
12
+ # docs, CI, reference checkouts) stays out without being named.
13
+ # scripts/check_sdist.py checks the result.
14
+ include = [
15
+ "/src/**/*.rs",
16
+ "/Cargo.toml",
17
+ "/Cargo.lock",
18
+ "/.cargo/config.toml",
19
+ # Not "/tests/**/*": Cargo applies no .gitignore with `include`, so that
20
+ # would also pick up OS litter such as tests/.DS_Store.
21
+ "/tests/**/*.py",
22
+ "/tests/upstream_textfsm/testdata/[!.]*",
23
+ "/CHANGELOG.md",
24
+ "/SECURITY.md",
25
+ ]
26
+ readme = "README.md"
27
+
28
+ [lib]
29
+ name = "_core"
30
+ crate-type = ["cdylib"]
31
+
32
+ [features]
33
+ memtests = []
34
+
35
+ [dependencies]
36
+ pyo3 = { version = "0.30", features = ["abi3-py311"] }
37
+ regex = "1.13"
38
+ regex-automata = "0.4"
39
+ fancy-regex = "0.20"
40
+
41
+ [profile.release]
42
+ lto = "fat"
43
+ codegen-units = 1
44
+
45
+ # Used by `uv sync` for the editable install (see [tool.uv] in pyproject.toml):
46
+ # optimized like release, but without fat LTO and with incremental builds, so
47
+ # rebuilding after an edit takes ~1s instead of ~12s. Published wheels and
48
+ # `scripts/bench/compare.sh` use the real release profile.
49
+ [profile.editable]
50
+ inherits = "release"
51
+ lto = "off"
52
+ codegen-units = 16
53
+ incremental = true
54
+
55
+ # `cargo test`: opt-level 1 keeps regex compilation in unit tests quick.
56
+ [profile.dev]
57
+ opt-level = 1
58
+ debug = "line-tables-only"
59
+
60
+ # Release speed with symbols, for profilers (samply, cargo-flamegraph):
61
+ # maturin develop --profile profiling
62
+ [profile.profiling]
63
+ inherits = "release"
64
+ debug = "full"
65
+ strip = false
66
+
67
+ [lints.rust]
68
+ # Only the test-only memory harness in engine.rs uses unsafe (allowed there).
69
+ unsafe_code = "deny"
70
+ unreachable_pub = "allow"
71
+
72
+ [lints.clippy]
73
+ pedantic = { level = "warn", priority = -1 }
74
+ # Opinionated pedantic lints (allowed in ruff's workspace too).
75
+ if_not_else = "allow"
76
+ match_same_arms = "allow"
77
+ missing_errors_doc = "allow"
78
+ missing_panics_doc = "allow"
79
+ module_name_repetitions = "allow"
80
+ must_use_candidate = "allow"
81
+ similar_names = "allow"
82
+ single_match_else = "allow"
83
+ too_many_lines = "allow"
84
+ # Runtime state mirrors the Python option flags one-to-one.
85
+ struct_excessive_bools = "allow"
86
+ # `_name` pyfunctions are private diagnostics exported to Python.
87
+ used_underscore_items = "allow"
88
+ # Restriction lints worth having.
89
+ # No panics in production code: in the extension a panic surfaces as
90
+ # pyo3_runtime.PanicException, never a textfsm exception. Return an error, or
91
+ # use `expect` with an #[allow] and a comment saying why it cannot fail.
92
+ # Tests may unwrap freely (clippy.toml).
93
+ unwrap_used = "warn"
94
+ expect_used = "warn"
95
+ dbg_macro = "warn"
96
+ print_stdout = "warn"
97
+ print_stderr = "warn"
98
+ redundant_clone = "warn"
textfsm2-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
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
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
textfsm2-0.1.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ textfsm2
2
+ Copyright 2026 Ryan Merolle
3
+
4
+ This product includes software derived from TextFSM
5
+ (https://github.com/google/textfsm), Copyright 2010 Google Inc., licensed
6
+ under the Apache License, Version 2.0. The modules in python/textfsm2/
7
+ (except _alias.py) and the tests in tests/upstream_textfsm/ are derived from
8
+ TextFSM and have been modified for textfsm2.