intouch-lgh 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 (98) hide show
  1. intouch_lgh-1.0.0/.github/workflows/tests.yml +31 -0
  2. intouch_lgh-1.0.0/CHANGELOG.md +210 -0
  3. intouch_lgh-1.0.0/LICENSE +201 -0
  4. intouch_lgh-1.0.0/MANIFEST.in +24 -0
  5. intouch_lgh-1.0.0/NOTICE +7 -0
  6. intouch_lgh-1.0.0/PKG-INFO +350 -0
  7. intouch_lgh-1.0.0/README.md +302 -0
  8. intouch_lgh-1.0.0/RELEASE_CHECKLIST.md +61 -0
  9. intouch_lgh-1.0.0/THIRD_PARTY_NOTICES.md +35 -0
  10. intouch_lgh-1.0.0/docs/archive_boundary_audit_v1a13.md +73 -0
  11. intouch_lgh-1.0.0/docs/design_v1.md +80 -0
  12. intouch_lgh-1.0.0/docs/interop_validation.md +50 -0
  13. intouch_lgh-1.0.0/docs/parquet_export.md +91 -0
  14. intouch_lgh-1.0.0/docs/release_validation.md +65 -0
  15. intouch_lgh-1.0.0/examples/__init__.py +1 -0
  16. intouch_lgh-1.0.0/examples/legacy_adapters/__init__.py +11 -0
  17. intouch_lgh-1.0.0/examples/legacy_adapters/archive.py +91 -0
  18. intouch_lgh-1.0.0/examples/legacy_adapters/dbapi.py +105 -0
  19. intouch_lgh-1.0.0/examples/legacy_adapters/postgres_archive.py +135 -0
  20. intouch_lgh-1.0.0/examples/legacy_adapters/sinks.py +150 -0
  21. intouch_lgh-1.0.0/examples/legacy_adapters/validation.py +33 -0
  22. intouch_lgh-1.0.0/examples/parquet_export.py +42 -0
  23. intouch_lgh-1.0.0/examples/postgres_insert.py +25 -0
  24. intouch_lgh-1.0.0/examples/sqlite3_insert.py +33 -0
  25. intouch_lgh-1.0.0/intouch_lgh/__init__.py +21 -0
  26. intouch_lgh-1.0.0/intouch_lgh/archive.py +579 -0
  27. intouch_lgh-1.0.0/intouch_lgh/arrow_adapter.py +242 -0
  28. intouch_lgh-1.0.0/intouch_lgh/audit.py +50 -0
  29. intouch_lgh-1.0.0/intouch_lgh/cli.py +42 -0
  30. intouch_lgh-1.0.0/intouch_lgh/index.py +455 -0
  31. intouch_lgh-1.0.0/intouch_lgh/layout.py +104 -0
  32. intouch_lgh-1.0.0/intouch_lgh/model.py +131 -0
  33. intouch_lgh-1.0.0/intouch_lgh/numpy_adapter.py +149 -0
  34. intouch_lgh-1.0.0/intouch_lgh/parquet_adapter.py +311 -0
  35. intouch_lgh-1.0.0/intouch_lgh/query.py +68 -0
  36. intouch_lgh-1.0.0/intouch_lgh/reader.py +216 -0
  37. intouch_lgh-1.0.0/intouch_lgh.egg-info/PKG-INFO +350 -0
  38. intouch_lgh-1.0.0/intouch_lgh.egg-info/SOURCES.txt +98 -0
  39. intouch_lgh-1.0.0/intouch_lgh.egg-info/dependency_links.txt +1 -0
  40. intouch_lgh-1.0.0/intouch_lgh.egg-info/entry_points.txt +3 -0
  41. intouch_lgh-1.0.0/intouch_lgh.egg-info/requires.txt +35 -0
  42. intouch_lgh-1.0.0/intouch_lgh.egg-info/top_level.txt +2 -0
  43. intouch_lgh-1.0.0/intouch_lgh_diagnostics/__init__.py +1 -0
  44. intouch_lgh-1.0.0/intouch_lgh_diagnostics/archive_boundaries.py +323 -0
  45. intouch_lgh-1.0.0/pyproject.toml +39 -0
  46. intouch_lgh-1.0.0/scripts/audit_archive_boundaries.py +6 -0
  47. intouch_lgh-1.0.0/scripts/audit_timestamps.py +204 -0
  48. intouch_lgh-1.0.0/scripts/benchmark_cross_files.ps1 +18 -0
  49. intouch_lgh-1.0.0/scripts/benchmark_cross_files.py +124 -0
  50. intouch_lgh-1.0.0/scripts/benchmark_parquet_matrix.ps1 +7 -0
  51. intouch_lgh-1.0.0/scripts/benchmark_parquet_matrix.py +317 -0
  52. intouch_lgh-1.0.0/scripts/benchmark_parquet_validation.ps1 +18 -0
  53. intouch_lgh-1.0.0/scripts/benchmark_parquet_validation.py +383 -0
  54. intouch_lgh-1.0.0/scripts/benchmark_parquet_worker.py +470 -0
  55. intouch_lgh-1.0.0/scripts/benchmark_small_batches.ps1 +19 -0
  56. intouch_lgh-1.0.0/scripts/validate_corpus.ps1 +13 -0
  57. intouch_lgh-1.0.0/scripts/validate_corpus.py +121 -0
  58. intouch_lgh-1.0.0/scripts/verify_arrow.ps1 +12 -0
  59. intouch_lgh-1.0.0/scripts/verify_interop.ps1 +12 -0
  60. intouch_lgh-1.0.0/scripts/verify_interop.py +26 -0
  61. intouch_lgh-1.0.0/scripts/verify_parquet.ps1 +23 -0
  62. intouch_lgh-1.0.0/scripts/verify_python_versions.ps1 +30 -0
  63. intouch_lgh-1.0.0/setup.cfg +4 -0
  64. intouch_lgh-1.0.0/tests/fixtures/24072200.idx +0 -0
  65. intouch_lgh-1.0.0/tests/fixtures/24072200.lgh +0 -0
  66. intouch_lgh-1.0.0/tests/fixtures/24072300.idx +0 -0
  67. intouch_lgh-1.0.0/tests/fixtures/24072300.lgh +0 -0
  68. intouch_lgh-1.0.0/tests/fixtures/UPSTREAM_LICENSE.txt +21 -0
  69. intouch_lgh-1.0.0/tests/fixtures/example_output.txt +4971 -0
  70. intouch_lgh-1.0.0/tests/test_archive_boundary_audit.py +92 -0
  71. intouch_lgh-1.0.0/tests/test_arrow_adapter.py +199 -0
  72. intouch_lgh-1.0.0/tests/test_arrow_interop.py +114 -0
  73. intouch_lgh-1.0.0/tests/test_arrow_optional_dependency.py +64 -0
  74. intouch_lgh-1.0.0/tests/test_atomic_outputs.py +76 -0
  75. intouch_lgh-1.0.0/tests/test_audit.py +35 -0
  76. intouch_lgh-1.0.0/tests/test_chronology_v015.py +51 -0
  77. intouch_lgh-1.0.0/tests/test_conflicts_v011.py +66 -0
  78. intouch_lgh-1.0.0/tests/test_core_boundary_v013.py +29 -0
  79. intouch_lgh-1.0.0/tests/test_dbapi.py +82 -0
  80. intouch_lgh-1.0.0/tests/test_export_consistency_v010.py +128 -0
  81. intouch_lgh-1.0.0/tests/test_external_corpus.py +93 -0
  82. intouch_lgh-1.0.0/tests/test_idx_topology_v016.py +39 -0
  83. intouch_lgh-1.0.0/tests/test_ieee754_fidelity_v012.py +168 -0
  84. intouch_lgh-1.0.0/tests/test_independent_byte_audit.py +93 -0
  85. intouch_lgh-1.0.0/tests/test_index.py +45 -0
  86. intouch_lgh-1.0.0/tests/test_integrity_v09.py +58 -0
  87. intouch_lgh-1.0.0/tests/test_large_layout_v017.py +70 -0
  88. intouch_lgh-1.0.0/tests/test_layout_v014.py +40 -0
  89. intouch_lgh-1.0.0/tests/test_numpy_adapter.py +228 -0
  90. intouch_lgh-1.0.0/tests/test_parquet_adapter.py +182 -0
  91. intouch_lgh-1.0.0/tests/test_parquet_optional_dependency.py +48 -0
  92. intouch_lgh-1.0.0/tests/test_postgres_archive.py +121 -0
  93. intouch_lgh-1.0.0/tests/test_public_samples.py +57 -0
  94. intouch_lgh-1.0.0/tests/test_query_archive.py +111 -0
  95. intouch_lgh-1.0.0/tests/test_reader.py +147 -0
  96. intouch_lgh-1.0.0/tests/test_tree_lookup_v018.py +71 -0
  97. intouch_lgh-1.0.0/tests/test_types_v08.py +47 -0
  98. intouch_lgh-1.0.0/tests/test_v1_archive.py +296 -0
@@ -0,0 +1,31 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest]
15
+ python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+ cache: pip
22
+ cache-dependency-path: pyproject.toml
23
+ - name: Install test and integration dependencies
24
+ run: python -m pip install -e ".[test-arrow,interop]"
25
+ - name: Verify optional integration dependencies
26
+ run: python -c "import pyarrow, pandas, polars, duckdb; print(pyarrow.__version__, pandas.__version__, polars.__version__, duckdb.__version__)"
27
+ - name: Test without local/private corpus
28
+ env:
29
+ INTOUCH_LGH_CORPUS_DIR: ''
30
+ INTOUCH_LGH_EXTRA_FIXTURES: ''
31
+ run: python -m pytest -q -rs
@@ -0,0 +1,210 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 — First stable release
4
+
5
+ - First stable release of intouch-lgh.
6
+ - Promoted the validated 1.0.0rc1 release candidate to stable.
7
+ - No parser or runtime behavior changes from 1.0.0rc1.
8
+
9
+ ## 1.0.0rc1 — release candidate
10
+
11
+ - Froze the LGH/IDX parser and public API after Windows validation on Python 3.10, 3.12, and 3.14.
12
+ - Included the standalone interoperability verifier path fix from a18.
13
+ - Recorded the cross-version, real-corpus, Arrow, Parquet, and installed-artifact validation evidence.
14
+ - Added Python 3.10–3.14 Trove classifiers.
15
+ - Corrected release checklist formatting and made remaining publication gates explicit.
16
+ - No parser or runtime behavior changes from 1.0.0a18.
17
+
18
+
19
+ ## 1.0.0a17 — cross-version release validation setup
20
+
21
+ - Added GitHub Actions test matrix for Python 3.10–3.14 on Linux and Windows.
22
+ - Added PowerShell interpreter-specific verification with isolated venvs.
23
+ - Documented confirmed Windows Python 3.14 test results and release gates.
24
+ - Added a transparent AI-assisted-development acknowledgement in README.
25
+ - Added project author metadata.
26
+ - No parser, IDX query, Arrow/Parquet conversion, or public API behavior changes.
27
+
28
+ ## 1.0.0a16 — licensing, corpus-aware tests, and Windows validation hygiene
29
+
30
+ - Adopted Apache License 2.0 for the project implementation, Copyright 2026 Xv Zan.
31
+ - Added NOTICE and third-party notices; preserved upstream MIT terms for exact PKUbuntu fixtures.
32
+ - Added provenance details for the four upstream LGH/IDX fixtures and example output.
33
+ - Extended full external-corpus validation to exercise the two bundled 2024 fixture pairs.
34
+ - Changed optional large-archive tests to skip missing files individually instead of failing when a corpus directory is partial.
35
+ - Fixed the Parquet verification script's stale hard-coded version banner.
36
+ - No LGH/IDX parser, query, RawBatch, NumPy, Arrow, or Parquet runtime behavior changed.
37
+
38
+
39
+ ## 1.0.0a15 — release verification and public examples
40
+
41
+ - Updated README and Parquet documentation to use redistributable public fixtures.
42
+ - Changed Windows interop verification to fail when required optional dependencies are missing rather than silently skip.
43
+ - Added an explicit pre-publication release checklist; project license remains pending owner approval.
44
+ - Kept parsing, indexing, RawBatch, Arrow, and Parquet runtime behavior unchanged.
45
+
46
+
47
+ ## 1.0.0a14 — source distribution and release hygiene
48
+
49
+ - Added an explicit source-distribution manifest for tests, public fixtures, examples, scripts, and selected user documentation.
50
+ - Excluded build outputs, bytecode caches, and pytest caches from source distributions.
51
+ - Excluded corpus-specific audit reports and private validation artifacts from the public source distribution.
52
+ - Updated the pre-release README to distinguish public documentation from internal corpus reports.
53
+ - No LGH/IDX parsing, query, RawBatch, NumPy, Arrow, or Parquet runtime behavior changed.
54
+
55
+
56
+ ## 1.0.0a2
57
+
58
+ - Introduced NumPy-independent `RawBatch` and `RawBlock` core models.
59
+ - Added `Archive.iter_batches()` as the primary bulk-access API.
60
+ - Moved NumPy conversion to the optional `intouch_lgh.numpy_adapter` module.
61
+ - Added zero-additional-copy NumPy views over detached RawBatch buffers.
62
+ - Added an explicit `copy=True` mode for contiguous NumPy columns.
63
+ - Kept the core importable and usable without NumPy.
64
+ - Preserved raw FILETIME, IEEE-754 payload bits, record indices, and physical
65
+ block provenance.
66
+ - Corrected NumPy `repeat()` handling for uint64 row counts in the alpha
67
+ archive prototype.
68
+
69
+ ## 1.0.0a3
70
+
71
+ - Changed `RawBatch` from interleaved 16-byte entries to separate immutable
72
+ little-endian FILETIME and IEEE-754 value-bit buffers.
73
+ - NumPy arrays are now contiguous zero-copy views over the core column buffers.
74
+ - Added an optional PyArrow adapter using `Array.from_buffers` and `py_buffer`.
75
+ - Arrow `value` and `value_bits` share the same underlying buffer.
76
+ - Added dictionary-encoded Tag/type columns and optional provenance projection.
77
+ - Kept PyArrow optional; Arrow integration tests require a PyArrow-enabled run.
78
+
79
+
80
+ ## Windows test harness follow-up (winfix2)
81
+
82
+ - Added `stdin=subprocess.DEVNULL` to the remaining subprocess-based optional-dependency
83
+ test. This avoids inheriting an invalid standard-input handle under some Windows
84
+ pytest/PowerShell execution environments.
85
+ - No runtime parser, RawBatch, NumPy, or Arrow implementation code changed.
86
+ - Local Linux regression after this test-only change: 145 passed, 5 skipped.
87
+ PyArrow was unavailable in that environment, so Arrow integration remains covered
88
+ by the user's Windows PyArrow-enabled run.
89
+
90
+
91
+ ## 1.0.0a4 — downstream interoperability validation
92
+
93
+ - Added optional `interop` dependency group for PyArrow, Pandas, Polars, and DuckDB.
94
+ - Added Parquet round-trip validation for raw uint64 columns and physical offsets.
95
+ - Added optional Pandas, Polars, and DuckDB Arrow-consumer tests.
96
+ - Added a Windows-friendly interoperability verification script.
97
+ - No core runtime dependency or LGH/IDX decoding behavior changed.
98
+
99
+
100
+ ## 1.0.0a5 — streaming Parquet adapter
101
+
102
+ - Added optional `intouch_lgh.parquet_adapter.export_parquet`.
103
+ - Streams RawBatch/Arrow batches to Parquet without row-wise Python objects or CSV.
104
+ - Preserves raw FILETIME ticks, IEEE-754 `value_bits`, and LGH source offsets.
105
+ - Uses temporary sibling output and atomic publication; existing destinations are protected by default.
106
+ - Added empty-selection, filter, multi-row-group, and late-failure atomicity tests.
107
+ - Fixed Tag dictionary index width to stable uint32 across Arrow batches.
108
+ - Updated DuckDB test to use `to_arrow_table()` and migrated license metadata to SPDX string form.
109
+
110
+
111
+ ## 1.0.0a6 — Parquet metadata privacy and benchmark matrix
112
+
113
+ - Default source-file metadata to basename-only to avoid leaking local paths.
114
+ - Added `source_metadata="full"` and `"none"` opt-in modes.
115
+ - Added Parquet compression/batch/Row Group benchmark matrix with sampled RSS.
116
+ - Added DuckDB and Polars aggregate query measurements.
117
+ - Added source-hash verification for every benchmark configuration.
118
+
119
+
120
+ ## 1.0.0a6.post1 — benchmark metadata verification fix
121
+
122
+ - Fixed the benchmark verifier to compare Parquet source metadata with the
123
+ original LGH basename, not the generated benchmark output filename.
124
+ - Improved mismatch diagnostics to show expected and actual metadata values.
125
+ - No Parquet writer or archive-reader behavior changed.
126
+
127
+
128
+ ## 1.0.0a7 — Isolated Parquet memory and query validation
129
+
130
+ - Added independent-process repeated export benchmarks for 16K, 64K and
131
+ 256K ZSTD batch/Row Group layouts.
132
+ - Added sampled RSS, process CPU and median/min/max timing reports.
133
+ - Added repeated DuckDB and Polars warm-cache query benchmarks for full
134
+ aggregates, Tag filtering, FILETIME range filtering and two-column projection.
135
+ - Added cross-engine query result parity checks.
136
+ - Clarified that the benchmark does not claim cold-cache performance.
137
+
138
+
139
+ ## 1.0.0a8 — Independent Parquet Batch and Row Group sizing
140
+
141
+ - Decoupled source RawBatch/Arrow batch size from physical Parquet Row Group size.
142
+ - Accumulate Arrow RecordBatches as chunks until complete Row Groups can be
143
+ written; primitive column buffers are not concatenated into new arrays.
144
+ - Unify dictionary values within each pending Row Group before Parquet encoding.
145
+ - Bound pending export data to approximately one Row Group plus one source batch.
146
+ - Added physical Row Group boundary tests for Row Groups larger and smaller
147
+ than the source batch size.
148
+ - Replaced the coupled a7 benchmark with a six-layout Batch × Row Group matrix.
149
+ - Query each physical Row Group layout once, independently of source batch size.
150
+ - Benchmark workers verify that all non-final Row Groups have the requested
151
+ size and that no Row Group exceeds it.
152
+
153
+
154
+ ## 1.0.0a9 — Focused small-Batch Size validation
155
+
156
+ - Added export-only mode to the Parquet validation benchmark.
157
+ - Added cross-Batch Size parity checks for row count, raw-column hashes,
158
+ Parquet file size, and physical Row Group count when Row Group Size is fixed.
159
+ - Added a focused Windows runner for 4K, 8K, and 16K source batches with
160
+ a fixed 64K Row Group and five independent repetitions.
161
+ - Added median/min/max sampled export RSS delta fields.
162
+ - No LGH/IDX parser or Parquet writer runtime behavior changed.
163
+
164
+
165
+ ## 1.0.0a10 — Cross-file validation harness
166
+
167
+ - Added a multi-file Parquet export validation runner.
168
+ - Added a Windows PowerShell wrapper for multiple LGH/IDX pairs.
169
+ - Added combined and per-file JSON reporting at fixed 16K Batch / 64K Row Group / ZSTD.
170
+ - No parser or Parquet writer runtime behavior changed.
171
+
172
+
173
+ ## 1.0.0a11 — Multi-level IDX topology and corpus regression
174
+
175
+ - Generalized `inspect_idx_topology()` to follow the IDX header root pointer
176
+ through multiple internal levels.
177
+ - Added checks for reachability, cycles, duplicate parents, child boundary
178
+ keys, ordered key ranges, and doubly-linked leaf-chain consistency.
179
+ - Added an opt-in external LGH/IDX corpus regression suite and validation
180
+ runner. Private/user-provided archives are not bundled in the source package.
181
+
182
+ - Validated the generalized topology diagnostic and corpus runner against nine
183
+ user-provided LGH/IDX pairs (43,043,206 numeric records in total).
184
+ Detailed results: `docs/external_corpus_results_v1a11.md`.
185
+
186
+
187
+ ## 1.0.0a12 — Timestamp audit and FILETIME boundary correction
188
+
189
+ - Corrected the maximum supported FILETIME tick to include the final 100 ns
190
+ sub-microsecond ticks representable by flooring to Python's datetime maximum.
191
+ - Made seven-digit ISO timestamp formatting independent of platform-specific
192
+ `strftime("%Y")` behavior.
193
+ - Added 100 ns round-trip tests before/after the Unix epoch and at datetime's
194
+ upper boundary.
195
+ - Added a reusable external-corpus timestamp audit script and its observed
196
+ nine-sample report. No timestamp ordering, timezone, or duplicate-removal
197
+ policy is imposed on the parser.
198
+
199
+
200
+ ## 1.0.0a13 — External archive boundary diagnostics
201
+
202
+ - Added an independent per-Tag archive-boundary audit script.
203
+ - Reports first/last raw FILETIME ticks and physical block/record provenance.
204
+ - Compares adjacent supplied archives without sorting or deduplicating records.
205
+ - Reports elapsed boundary intervals without applying a universal gap threshold.
206
+ - Core reader behavior and public parsing APIs are unchanged.
207
+
208
+ - Exercised the boundary audit on nine supplied archive pairs (43,043,206
209
+ numeric records); detailed corpus-specific results are documented in
210
+ `docs/archive_boundary_audit_results_v1a13.md`.
@@ -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.
@@ -0,0 +1,24 @@
1
+ include THIRD_PARTY_NOTICES.md
2
+ include NOTICE
3
+ include LICENSE
4
+ include README.md
5
+ include CHANGELOG.md
6
+ include RELEASE_CHECKLIST.md
7
+ include docs/release_validation.md
8
+ include .github/workflows/tests.yml
9
+ include MANIFEST.in
10
+
11
+ include docs/design_v1.md
12
+ include docs/parquet_export.md
13
+ include docs/interop_validation.md
14
+ include docs/archive_boundary_audit_v1a13.md
15
+
16
+ recursive-include examples *.py
17
+ recursive-include scripts *.py *.ps1
18
+ recursive-include tests *.py
19
+ recursive-include tests/fixtures *.lgh *.idx *.txt
20
+
21
+ global-exclude *.py[cod]
22
+ global-exclude __pycache__
23
+ prune build
24
+ prune .pytest_cache
@@ -0,0 +1,7 @@
1
+ intouch-lgh
2
+ Copyright 2026 Xv Zan
3
+
4
+ This product includes third-party test fixtures from PKUbuntu/intouch-dumper.
5
+ Those fixture files are redistributed unchanged under the MIT License.
6
+ See THIRD_PARTY_NOTICES.md. The upstream MIT license is retained in the
7
+ source distribution and included among the wheel's distribution license files.