xlr8 0.1.2__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 (68) hide show
  1. xlr8-0.1.2/.gitattributes +16 -0
  2. xlr8-0.1.2/.github/XLR8_logo.png +0 -0
  3. xlr8-0.1.2/.github/workflows/pr-checks.yml +45 -0
  4. xlr8-0.1.2/.github/workflows/release.yml +179 -0
  5. xlr8-0.1.2/.gitignore +73 -0
  6. xlr8-0.1.2/.pre-commit-config.yaml +33 -0
  7. xlr8-0.1.2/.python-version +1 -0
  8. xlr8-0.1.2/LICENSE +201 -0
  9. xlr8-0.1.2/PKG-INFO +177 -0
  10. xlr8-0.1.2/README.md +625 -0
  11. xlr8-0.1.2/README_PYPI.md +148 -0
  12. xlr8-0.1.2/pyproject.toml +80 -0
  13. xlr8-0.1.2/rust/xlr8_rust/Cargo.toml +53 -0
  14. xlr8-0.1.2/rust/xlr8_rust/README.md +152 -0
  15. xlr8-0.1.2/rust/xlr8_rust/pyproject.toml +14 -0
  16. xlr8-0.1.2/rust/xlr8_rust/src/decoder.rs +292 -0
  17. xlr8-0.1.2/rust/xlr8_rust/src/encoder.rs +456 -0
  18. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/arrow_builder.rs +370 -0
  19. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/bson_sort.rs +197 -0
  20. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/mod.rs +362 -0
  21. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/parquet_writer.rs +42 -0
  22. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/types.rs +141 -0
  23. xlr8-0.1.2/rust/xlr8_rust/src/full_fetch/utilities.rs +38 -0
  24. xlr8-0.1.2/rust/xlr8_rust/src/lib.rs +48 -0
  25. xlr8-0.1.2/rust/xlr8_rust/src/schema.rs +91 -0
  26. xlr8-0.1.2/scripts/check_version_bump.py +143 -0
  27. xlr8-0.1.2/src/xlr8/__init__.py +109 -0
  28. xlr8-0.1.2/src/xlr8/_xlr8_rust.pyi +71 -0
  29. xlr8-0.1.2/src/xlr8/analysis/__init__.py +58 -0
  30. xlr8-0.1.2/src/xlr8/analysis/brackets.py +1201 -0
  31. xlr8-0.1.2/src/xlr8/analysis/chunker.py +118 -0
  32. xlr8-0.1.2/src/xlr8/analysis/inspector.py +1889 -0
  33. xlr8-0.1.2/src/xlr8/collection/__init__.py +6 -0
  34. xlr8-0.1.2/src/xlr8/collection/cursor.py +2145 -0
  35. xlr8-0.1.2/src/xlr8/collection/cursor.pyi +173 -0
  36. xlr8-0.1.2/src/xlr8/collection/wrapper.py +661 -0
  37. xlr8-0.1.2/src/xlr8/collection/wrapper.pyi +218 -0
  38. xlr8-0.1.2/src/xlr8/constants.py +24 -0
  39. xlr8-0.1.2/src/xlr8/execution/__init__.py +43 -0
  40. xlr8-0.1.2/src/xlr8/execution/callback.py +792 -0
  41. xlr8-0.1.2/src/xlr8/execution/executor.py +500 -0
  42. xlr8-0.1.2/src/xlr8/execution/planner.py +377 -0
  43. xlr8-0.1.2/src/xlr8/py.typed +1 -0
  44. xlr8-0.1.2/src/xlr8/rust_backend.py +42 -0
  45. xlr8-0.1.2/src/xlr8/rust_backend.pyi +71 -0
  46. xlr8-0.1.2/src/xlr8/schema/__init__.py +42 -0
  47. xlr8-0.1.2/src/xlr8/schema/encoder.py +235 -0
  48. xlr8-0.1.2/src/xlr8/schema/schema.py +265 -0
  49. xlr8-0.1.2/src/xlr8/schema/types.py +239 -0
  50. xlr8-0.1.2/src/xlr8/storage/__init__.py +17 -0
  51. xlr8-0.1.2/src/xlr8/storage/cache.py +228 -0
  52. xlr8-0.1.2/src/xlr8/storage/reader.py +1276 -0
  53. xlr8-0.1.2/tests/__init__.py +1 -0
  54. xlr8-0.1.2/tests/analysis/__init__.py +0 -0
  55. xlr8-0.1.2/tests/analysis/test_brackets.py +1645 -0
  56. xlr8-0.1.2/tests/analysis/test_inspector.py +1786 -0
  57. xlr8-0.1.2/tests/execution/__init__.py +1 -0
  58. xlr8-0.1.2/tests/execution/test_executor.py +516 -0
  59. xlr8-0.1.2/tests/execution/test_planner.py +299 -0
  60. xlr8-0.1.2/tests/schema/__init__.py +1 -0
  61. xlr8-0.1.2/tests/schema/test_encoder_python.py +357 -0
  62. xlr8-0.1.2/tests/schema/test_schema.py +374 -0
  63. xlr8-0.1.2/tests/schema/test_types.py +300 -0
  64. xlr8-0.1.2/tests/storage/__init__.py +1 -0
  65. xlr8-0.1.2/tests/storage/test_cache.py +278 -0
  66. xlr8-0.1.2/tests/storage/test_reader.py +178 -0
  67. xlr8-0.1.2/tests/utils/__init__.py +1 -0
  68. xlr8-0.1.2/tests/utils/data_generator.py +307 -0
@@ -0,0 +1,16 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
3
+
4
+ # Python files
5
+ *.py text eol=lf
6
+ *.pyi text eol=lf
7
+
8
+ # Configuration files
9
+ *.toml text eol=lf
10
+ *.yaml text eol=lf
11
+ *.yml text eol=lf
12
+ *.json text eol=lf
13
+ *.md text eol=lf
14
+
15
+ # Ensure line endings are LF in the repository
16
+ *.lock text eol=lf
Binary file
@@ -0,0 +1,45 @@
1
+ name: PR Checks
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ code-quality:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ python-version: ["3.11", "3.12", "3.13"]
15
+
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Set up Python
23
+ uses: actions/setup-python@v5
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+
27
+ - name: Install uv
28
+ uses: astral-sh/setup-uv@v3
29
+ with:
30
+ version: "latest"
31
+
32
+ - name: Install dependencies
33
+ run: uv sync
34
+
35
+ - name: Run ruff check (no fixes)
36
+ run: uv run ruff check . --no-fix
37
+
38
+ - name: Run ruff format check
39
+ run: uv run ruff format --check .
40
+
41
+ - name: Run pytest
42
+ run: uv run pytest
43
+
44
+ - name: Check version bump
45
+ run: python scripts/check_version_bump.py
@@ -0,0 +1,179 @@
1
+ name: Build and Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - "src/xlr8/**"
9
+ - "rust/xlr8_rust/**"
10
+ - "pyproject.toml"
11
+ - "rust/xlr8_rust/pyproject.toml"
12
+ - "README.md"
13
+ - ".github/workflows/release.yml"
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: write
18
+
19
+ jobs:
20
+ build-python:
21
+ runs-on: ubuntu-latest
22
+ outputs:
23
+ version: ${{ steps.version.outputs.version }}
24
+ tag_name: ${{ steps.version.outputs.tag_name }}
25
+ release_needed: ${{ steps.check_tag.outputs.release_needed }}
26
+
27
+ steps:
28
+ - name: Checkout
29
+ uses: actions/checkout@v4
30
+ with:
31
+ fetch-depth: 0
32
+
33
+ - name: Set up Python
34
+ uses: actions/setup-python@v5
35
+ with:
36
+ python-version: "3.13"
37
+
38
+ - name: Install uv
39
+ uses: astral-sh/setup-uv@v3
40
+ with:
41
+ version: "latest"
42
+
43
+ - name: Get versions
44
+ id: version
45
+ run: |
46
+ PY_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
47
+ RUST_VERSION=$(python -c "import tomllib; print(tomllib.load(open('rust/xlr8_rust/pyproject.toml','rb'))['project']['version'])")
48
+ if [ "$PY_VERSION" != "$RUST_VERSION" ]; then
49
+ echo "ERROR: Version mismatch: xlr8=$PY_VERSION, xlr8-rust=$RUST_VERSION" >&2
50
+ exit 1
51
+ fi
52
+ TAG_NAME="v$PY_VERSION"
53
+ echo "version=$PY_VERSION" >> $GITHUB_OUTPUT
54
+ echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
55
+ echo "Version: $PY_VERSION (tag $TAG_NAME)"
56
+
57
+ - name: Check if tag exists
58
+ id: check_tag
59
+ run: |
60
+ TAG_NAME="${{ steps.version.outputs.tag_name }}"
61
+ if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
62
+ echo "release_needed=false" >> $GITHUB_OUTPUT
63
+ echo "Tag $TAG_NAME already exists; skipping release.";
64
+ else
65
+ echo "release_needed=true" >> $GITHUB_OUTPUT
66
+ echo "Tag $TAG_NAME is new; proceeding.";
67
+ fi
68
+
69
+ - name: Build xlr8 (python)
70
+ if: steps.check_tag.outputs.release_needed == 'true'
71
+ run: |
72
+ uv build
73
+ ls -la dist
74
+
75
+ - name: Upload python dist
76
+ if: steps.check_tag.outputs.release_needed == 'true'
77
+ uses: actions/upload-artifact@v4
78
+ with:
79
+ name: dist-python
80
+ path: dist/*
81
+
82
+ build-rust:
83
+ needs: build-python
84
+ if: needs.build-python.outputs.release_needed == 'true'
85
+ strategy:
86
+ fail-fast: false
87
+ matrix:
88
+ os: [ubuntu-latest, windows-latest, macos-latest]
89
+ python-version: ["3.11", "3.12", "3.13"]
90
+
91
+ runs-on: ${{ matrix.os }}
92
+
93
+ steps:
94
+ - name: Checkout
95
+ uses: actions/checkout@v4
96
+
97
+ - name: Set up Python
98
+ uses: actions/setup-python@v5
99
+ with:
100
+ python-version: ${{ matrix.python-version }}
101
+
102
+ - name: Build wheels (xlr8-rust)
103
+ uses: PyO3/maturin-action@v1
104
+ with:
105
+ working-directory: rust/xlr8_rust
106
+ command: build
107
+ args: --release --out dist
108
+ manylinux: auto
109
+ env:
110
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111
+
112
+ - name: Upload rust wheels
113
+ uses: actions/upload-artifact@v4
114
+ with:
115
+ name: dist-rust-${{ matrix.os }}-py${{ matrix.python-version }}
116
+ path: rust/xlr8_rust/dist/*
117
+
118
+ release:
119
+ needs: [build-python, build-rust]
120
+ if: needs.build-python.outputs.release_needed == 'true'
121
+ runs-on: ubuntu-latest
122
+
123
+ steps:
124
+ - name: Checkout
125
+ uses: actions/checkout@v4
126
+ with:
127
+ fetch-depth: 0
128
+
129
+ - name: Download all artifacts
130
+ uses: actions/download-artifact@v4
131
+ with:
132
+ path: dist_all
133
+
134
+ - name: Gather dists
135
+ run: |
136
+ mkdir -p dist dist-rust dist-python
137
+ # Separate xlr8-rust wheels from xlr8 package
138
+ find dist_all -type f -name "xlr8_rust*.whl" -exec cp -v {} dist-rust/ \;
139
+ find dist_all -type f -name "xlr8-*.whl" -exec cp -v {} dist-python/ \;
140
+ find dist_all -type f -name "xlr8-*.tar.gz" -exec cp -v {} dist-python/ \;
141
+ # Combined dist for GitHub Release
142
+ cp dist-rust/* dist/ 2>/dev/null || true
143
+ cp dist-python/* dist/ 2>/dev/null || true
144
+ echo "=== dist-rust ===" && ls -la dist-rust/
145
+ echo "=== dist-python ===" && ls -la dist-python/
146
+ echo "=== dist (combined) ===" && ls -la dist/
147
+
148
+ - name: Create and push tag
149
+ run: |
150
+ TAG_NAME="${{ needs.build-python.outputs.tag_name }}"
151
+ git config --local user.email "action@github.com"
152
+ git config --local user.name "GitHub Action"
153
+ git tag "$TAG_NAME"
154
+ git push origin "$TAG_NAME"
155
+
156
+ - name: Create GitHub Release
157
+ uses: softprops/action-gh-release@v2
158
+ with:
159
+ tag_name: ${{ needs.build-python.outputs.tag_name }}
160
+ name: XLR8 ${{ needs.build-python.outputs.tag_name }}
161
+ files: |
162
+ dist/*.whl
163
+ dist/*.tar.gz
164
+ env:
165
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166
+
167
+ - name: Publish xlr8-rust to PyPI
168
+ uses: pypa/gh-action-pypi-publish@release/v1
169
+ with:
170
+ password: ${{ secrets.XLR8_PYPI_TOKEN }}
171
+ packages-dir: dist-rust/
172
+ skip-existing: true
173
+
174
+ - name: Publish xlr8 to PyPI
175
+ uses: pypa/gh-action-pypi-publish@release/v1
176
+ with:
177
+ password: ${{ secrets.XLR8_PYPI_TOKEN }}
178
+ packages-dir: dist-python/
179
+ skip-existing: true
xlr8-0.1.2/.gitignore ADDED
@@ -0,0 +1,73 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ *.egg-info/
20
+ .installed.cfg
21
+ *.egg
22
+
23
+ # Virtual environments
24
+ venv/
25
+ env/
26
+ ENV/
27
+
28
+ # uv
29
+ .uv/
30
+ uv.lock
31
+
32
+ # PyCharm
33
+ .idea/
34
+
35
+ # VS Code
36
+ .vscode/
37
+
38
+ # Output
39
+ parquet_out/
40
+ *.parquet
41
+
42
+ # Environment
43
+ .env.local
44
+ .env.*.local
45
+
46
+ # Testing
47
+ .pytest_cache/
48
+ .coverage
49
+ htmlcov/
50
+ .tox/
51
+
52
+ # OS
53
+ .DS_Store
54
+ Thumbs.db
55
+
56
+ # Environment variables
57
+ .env
58
+
59
+ # Existing project files
60
+ ceto_ingest/**
61
+ cetolib/**
62
+
63
+ # Rust
64
+ rust/**/target/
65
+ rust/**/*.rs.bk
66
+ rust/**/Cargo.lock
67
+ *.so
68
+ *.dylib
69
+ *.dll
70
+
71
+ # Cache
72
+ .cache/
73
+ cache/
@@ -0,0 +1,33 @@
1
+ repos:
2
+ # Ruff - Fast Python linter and formatter
3
+ - repo: https://github.com/astral-sh/ruff-pre-commit
4
+ rev: v0.8.4
5
+ hooks:
6
+ - id: ruff
7
+ args: [--fix, --exit-non-zero-on-fix]
8
+ - id: ruff-format
9
+
10
+ # nbstripout - Strip notebook outputs
11
+ - repo: https://github.com/kynan/nbstripout
12
+ rev: 0.8.1
13
+ hooks:
14
+ - id: nbstripout
15
+
16
+ # Version bump enforcement
17
+ - repo: local
18
+ hooks:
19
+ - id: version-bump
20
+ name: version bump required when package changes
21
+ entry: python scripts/check_version_bump.py
22
+ language: system
23
+ pass_filenames: false
24
+
25
+ # # pytest - Run tests before commit
26
+ # - repo: local
27
+ # hooks:
28
+ # - id: pytest
29
+ # name: pytest
30
+ # entry: uv run pytest
31
+ # language: system
32
+ # pass_filenames: false
33
+ # always_run: true
@@ -0,0 +1 @@
1
+ 3.11
xlr8-0.1.2/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.