laketower 0.2.0__tar.gz → 0.6.5__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.

Potentially problematic release.


This version of laketower might be problematic. Click here for more details.

Files changed (87) hide show
  1. {laketower-0.2.0 → laketower-0.6.5}/.github/workflows/ci-cd.yml +30 -18
  2. {laketower-0.2.0 → laketower-0.6.5}/.gitignore +7 -1
  3. laketower-0.6.5/CHANGELOG.md +187 -0
  4. laketower-0.6.5/LICENSE +201 -0
  5. {laketower-0.2.0 → laketower-0.6.5}/PKG-INFO +320 -23
  6. laketower-0.6.5/README.md +589 -0
  7. laketower-0.6.5/demo/laketower.yml +56 -0
  8. laketower-0.6.5/docs/static/queries_view.png +0 -0
  9. laketower-0.6.5/docs/static/tables_history.png +0 -0
  10. laketower-0.6.5/docs/static/tables_import.png +0 -0
  11. laketower-0.6.5/docs/static/tables_overview.png +0 -0
  12. laketower-0.6.5/docs/static/tables_query.png +0 -0
  13. laketower-0.6.5/docs/static/tables_statistics.png +0 -0
  14. laketower-0.6.5/docs/static/tables_view.png +0 -0
  15. laketower-0.6.5/laketower/__about__.py +1 -0
  16. laketower-0.6.5/laketower/cli.py +499 -0
  17. laketower-0.6.5/laketower/config.py +129 -0
  18. laketower-0.6.5/laketower/static/datatables.bundle.js +27931 -0
  19. laketower-0.6.5/laketower/static/datatables.js +55 -0
  20. laketower-0.6.5/laketower/static/editor.bundle.js +27433 -0
  21. laketower-0.6.5/laketower/static/editor.js +74 -0
  22. laketower-0.6.5/laketower/static/vendor/bootstrap/bootstrap.bundle.min.js +7 -0
  23. laketower-0.6.5/laketower/static/vendor/bootstrap-icons/bootstrap-icons.min.css +5 -0
  24. laketower-0.6.5/laketower/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff +0 -0
  25. laketower-0.6.5/laketower/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2 +0 -0
  26. laketower-0.6.5/laketower/static/vendor/datatables.net-bs5/dataTables.bootstrap5.css +610 -0
  27. laketower-0.6.5/laketower/static/vendor/datatables.net-columncontrol-bs5/columnControl.bootstrap5.min.css +1 -0
  28. laketower-0.6.5/laketower/static/vendor/halfmoon/halfmoon.min.css +22 -0
  29. laketower-0.6.5/laketower/static/vendor/halfmoon/halfmoon.modern.css +282 -0
  30. laketower-0.6.5/laketower/tables.py +343 -0
  31. laketower-0.6.5/laketower/templates/_base.html +182 -0
  32. laketower-0.6.5/laketower/templates/queries/view.html +102 -0
  33. {laketower-0.2.0 → laketower-0.6.5}/laketower/templates/tables/_macros.html +6 -0
  34. {laketower-0.2.0 → laketower-0.6.5}/laketower/templates/tables/history.html +6 -0
  35. laketower-0.6.5/laketower/templates/tables/import.html +71 -0
  36. {laketower-0.2.0 → laketower-0.6.5}/laketower/templates/tables/index.html +6 -0
  37. laketower-0.6.5/laketower/templates/tables/query.html +97 -0
  38. laketower-0.6.5/laketower/templates/tables/statistics.html +62 -0
  39. laketower-0.6.5/laketower/templates/tables/view.html +102 -0
  40. laketower-0.6.5/laketower/web.py +459 -0
  41. laketower-0.6.5/package-lock.json +1280 -0
  42. laketower-0.6.5/package.json +21 -0
  43. {laketower-0.2.0 → laketower-0.6.5}/pyproject.toml +26 -20
  44. laketower-0.6.5/renovate.json +11 -0
  45. laketower-0.6.5/tasks.py +187 -0
  46. laketower-0.6.5/tests/conftest.py +125 -0
  47. laketower-0.6.5/tests/test_cli.py +1268 -0
  48. laketower-0.6.5/tests/test_config.py +234 -0
  49. laketower-0.6.5/tests/test_tables.py +193 -0
  50. laketower-0.6.5/tests/test_web.py +998 -0
  51. laketower-0.6.5/uv.lock +1795 -0
  52. laketower-0.2.0/CHANGELOG.md +0 -42
  53. laketower-0.2.0/LICENSE.md +0 -661
  54. laketower-0.2.0/README.md +0 -294
  55. laketower-0.2.0/demo/laketower.yml +0 -7
  56. laketower-0.2.0/laketower/__about__.py +0 -1
  57. laketower-0.2.0/laketower/cli.py +0 -248
  58. laketower-0.2.0/laketower/config.py +0 -45
  59. laketower-0.2.0/laketower/tables.py +0 -136
  60. laketower-0.2.0/laketower/templates/_base.html +0 -72
  61. laketower-0.2.0/laketower/templates/tables/query.html +0 -41
  62. laketower-0.2.0/laketower/templates/tables/view.html +0 -96
  63. laketower-0.2.0/laketower/web.py +0 -160
  64. laketower-0.2.0/tasks.py +0 -44
  65. laketower-0.2.0/tests/conftest.py +0 -53
  66. laketower-0.2.0/tests/test_cli.py +0 -531
  67. laketower-0.2.0/tests/test_web.py +0 -290
  68. laketower-0.2.0/uv.lock +0 -1644
  69. {laketower-0.2.0 → laketower-0.6.5}/.python-version +0 -0
  70. {laketower-0.2.0 → laketower-0.6.5}/demo/generate.py +0 -0
  71. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/_delta_log/00000000000000000000.json +0 -0
  72. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/_delta_log/00000000000000000001.json +0 -0
  73. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/_delta_log/00000000000000000002.json +0 -0
  74. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/_delta_log/00000000000000000003.json +0 -0
  75. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/part-00001-1a31a393-6db6-4d1a-bf4e-81ea061ff8cd-c000.snappy.parquet +0 -0
  76. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/part-00001-5af77102-9207-4c89-aaf6-37e1f815ec26-c000.snappy.parquet +0 -0
  77. {laketower-0.2.0 → laketower-0.6.5}/demo/sample_table/part-00001-b11bab55-43d0-4d05-ae88-5b9481ae57db-c000.snappy.parquet +0 -0
  78. {laketower-0.2.0 → laketower-0.6.5}/demo/weather/_delta_log/00000000000000000000.json +0 -0
  79. {laketower-0.2.0 → laketower-0.6.5}/demo/weather/_delta_log/00000000000000000001.json +0 -0
  80. {laketower-0.2.0 → laketower-0.6.5}/demo/weather/_delta_log/00000000000000000002.json +0 -0
  81. {laketower-0.2.0 → laketower-0.6.5}/demo/weather/part-00001-2323b963-be56-44e0-8c10-e237e7e6d4b9-c000.snappy.parquet +0 -0
  82. {laketower-0.2.0 → laketower-0.6.5}/demo/weather/part-00001-6360cbf8-f8a9-475f-8729-6f20b4ca64a9-c000.snappy.parquet +0 -0
  83. {laketower-0.2.0 → laketower-0.6.5}/laketower/__init__.py +0 -0
  84. {laketower-0.2.0 → laketower-0.6.5}/laketower/__main__.py +0 -0
  85. {laketower-0.2.0 → laketower-0.6.5}/laketower/static/.gitkeep +0 -0
  86. {laketower-0.2.0 → laketower-0.6.5}/laketower/templates/index.html +0 -0
  87. {laketower-0.2.0 → laketower-0.6.5}/tests/__init__.py +0 -0
@@ -14,11 +14,11 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
17
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
18
18
  steps:
19
- - uses: actions/checkout@v4
19
+ - uses: actions/checkout@v5
20
20
  - name: Install uv
21
- uses: astral-sh/setup-uv@v5
21
+ uses: astral-sh/setup-uv@v7
22
22
  with:
23
23
  python-version: ${{ matrix.python-version }}
24
24
  enable-cache: true
@@ -29,7 +29,7 @@ jobs:
29
29
  run: uv run inv qa
30
30
  - name: Upload coverage artifacts
31
31
  if: ${{ matrix.python-version == 3.13 }}
32
- uses: actions/upload-artifact@v4
32
+ uses: actions/upload-artifact@v5
33
33
  with:
34
34
  name: coverage
35
35
  path: .coverage
@@ -47,26 +47,38 @@ jobs:
47
47
  CODECOV_MD_FILE: "coverage.md"
48
48
  CODECOV_REPORT_TITLE: "Code coverage report"
49
49
  steps:
50
- - uses: actions/checkout@v4
50
+ - uses: actions/checkout@v5
51
+ with:
52
+ ref: main
53
+ - uses: actions/checkout@v5
51
54
  - name: Install uv
52
- uses: astral-sh/setup-uv@v5
55
+ uses: astral-sh/setup-uv@v7
53
56
  with:
54
57
  python-version: "3.13"
55
58
  enable-cache: true
56
59
  cache-dependency-glob: "uv.lock"
57
60
  - name: Install dependencies
58
61
  run: uv sync --all-extras --dev
59
- - uses: actions/download-artifact@v4
62
+ - uses: actions/download-artifact@v6
60
63
  with:
61
64
  name: coverage
62
65
  - name: Generate Markdown code coverage report
63
66
  run: |
64
- echo "## ${CODECOV_REPORT_TITLE}" >> "${CODECOV_MD_FILE}"
67
+ echo "# ${CODECOV_REPORT_TITLE}" >> "${CODECOV_MD_FILE}"
65
68
  uv run coverage report --show-missing --format=markdown >> "${CODECOV_MD_FILE}"
69
+ - name: Compute diff coverage with target branch
70
+ if: ${{ github.event_name == 'pull_request' }}
71
+ env:
72
+ TARGET_BRANCH: origin/${{ github.event.pull_request.base.ref }}
73
+ DIFFCOV_MD_FILE: "diff-coverage.md"
74
+ run: |
75
+ uv run coverage xml
76
+ uv run --with diff_cover diff-cover --compare-branch ${TARGET_BRANCH} --diff-range-notation '..' --ignore-staged --ignore-unstaged --markdown-report "${DIFFCOV_MD_FILE}" coverage.xml
77
+ cat "${DIFFCOV_MD_FILE}" >> "${CODECOV_MD_FILE}"
66
78
  - name: Export code coverage report to job summary
67
79
  run: cat "${CODECOV_MD_FILE}" >> "${GITHUB_STEP_SUMMARY}"
68
80
  - name: Add or update code coverage comment to pull request
69
- uses: actions/github-script@v7
81
+ uses: actions/github-script@v8
70
82
  if: ${{ github.event_name == 'pull_request' }}
71
83
  with:
72
84
  script: |
@@ -112,9 +124,9 @@ jobs:
112
124
  runs-on: ubuntu-latest
113
125
  needs: ci
114
126
  steps:
115
- - uses: actions/checkout@v4
127
+ - uses: actions/checkout@v5
116
128
  - name: Install uv
117
- uses: astral-sh/setup-uv@v5
129
+ uses: astral-sh/setup-uv@v7
118
130
  with:
119
131
  python-version: '3.13'
120
132
  enable-cache: true
@@ -124,7 +136,7 @@ jobs:
124
136
  - name: Build package
125
137
  run: uv build
126
138
  - name: Upload package build artifacts
127
- uses: actions/upload-artifact@v4
139
+ uses: actions/upload-artifact@v5
128
140
  with:
129
141
  name: build
130
142
  path: dist
@@ -142,7 +154,7 @@ jobs:
142
154
  id-token: write
143
155
  steps:
144
156
  - name: Download package build artifacts
145
- uses: actions/download-artifact@v4
157
+ uses: actions/download-artifact@v6
146
158
  with:
147
159
  name: build
148
160
  path: dist/
@@ -168,14 +180,14 @@ jobs:
168
180
  id-token: write
169
181
  steps:
170
182
  - name: Download package build artifacts
171
- uses: actions/download-artifact@v4
183
+ uses: actions/download-artifact@v6
172
184
  with:
173
185
  name: build
174
186
  path: dist/
175
187
  - name: Publish package distributions to PyPI
176
188
  uses: pypa/gh-action-pypi-publish@release/v1
177
189
  - name: Install uv
178
- uses: astral-sh/setup-uv@v5
190
+ uses: astral-sh/setup-uv@v7
179
191
  - name: Validate package is available with uvx
180
192
  run: uvx laketower --version
181
193
 
@@ -190,14 +202,14 @@ jobs:
190
202
  permissions:
191
203
  contents: write
192
204
  steps:
193
- - uses: actions/checkout@v4
205
+ - uses: actions/checkout@v5
194
206
  - name: Download package build artifacts
195
- uses: actions/download-artifact@v4
207
+ uses: actions/download-artifact@v6
196
208
  with:
197
209
  name: build
198
210
  path: dist/
199
211
  - name: Install uv
200
- uses: astral-sh/setup-uv@v5
212
+ uses: astral-sh/setup-uv@v7
201
213
  with:
202
214
  python-version: '3.13'
203
215
  enable-cache: true
@@ -7,8 +7,14 @@ wheels/
7
7
  *.egg-info
8
8
  .coverage
9
9
 
10
+ # Node.js
11
+ node_modules/
12
+
10
13
  # Virtual environments
11
14
  .venv
12
15
 
13
16
  # IDEs
14
- .vscode
17
+ .vscode
18
+
19
+ # OS
20
+ .DS_Store
@@ -0,0 +1,187 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.6.5] - 2025-11-11
11
+ Patch release with minor enhancements (interactive SQL query results, enforced
12
+ row limits for large tables, query execution time indicator) and many minor fixes.
13
+
14
+ ### Added
15
+ - new `settings` section in YAML configuration
16
+ - setting `max_query_rows` to limit sql query results
17
+ - setting `web.hide_tables` to hide the tables section for the web application
18
+ - query execution time indicator
19
+
20
+ ### Changed
21
+ - web: use `datatables.js` for interactive query results
22
+
23
+ ### Fixed
24
+ - web: table view hide column button link regression
25
+ - web: exclude actions from table data view horizontal scrolling
26
+ - web: handle sql query parsing errors
27
+ - web: do not highlight multiple menu items sharing the same path prefix
28
+
29
+ ## [0.6.4] - 2025-10-20
30
+ ### Fixed
31
+ - add missing `tzdata` dependency from previous `pandas` dependency removal
32
+
33
+ ## [0.6.3] - 2025-10-19
34
+ Patch release removing unnecessary `pandas` dependency and updating the displayed
35
+ application name in the web application.
36
+
37
+ ### Fixed
38
+ - web: update application name
39
+ - web: move application details to about modal window
40
+
41
+ ### Misc
42
+ - replace usage of `pandas.DataFrame` with `pyarrow.Table`
43
+
44
+ ## [0.6.2] - 2025-09-28
45
+ Patch release fixing a bug when registering Arrow Datasets as tables instead of
46
+ views with DuckDB query engine, leading to performance degradation on larger tables.
47
+
48
+ ### Fixed
49
+ - map arrow datasets as views with DuckDB query engine
50
+
51
+ ## [0.6.1] - 2025-09-11
52
+ Patch release with minor enhancements (SQL syntax highlighting, query parameters,
53
+ predefined query Markdown description) and quality of life improvements
54
+ (hide read-only SQL editor in predefined queries, web app offline usage).
55
+
56
+ ### Added
57
+ - web: display app version in sidebar
58
+ - web: use CodeMirror SQL query editor
59
+ - web: add support for tables query parameters
60
+ - web: add support for predefined queries parameters
61
+ - web: add optional markdown description for predefined queries
62
+ - cli: add support for tables query parameters
63
+ - cli: add support for predefined queries parameters
64
+
65
+ ### Changed
66
+ - web: hide SQL editor for predefined queries
67
+ - demo: add parameters to daily avg temperature query
68
+
69
+ ### Fixed
70
+ - handle empty SQL queries
71
+
72
+ ### Misc
73
+ - vendor static assets for offline usage
74
+
75
+ ## [0.6.0] - 2025-08-27
76
+ Minor release with new features (CSV import/export, S3/ADLS remote tables)
77
+ and quality of life improvements (tables lazy loading, quoted SQL identifiers).
78
+
79
+ ### Added
80
+ - cli: add csv export option to tables query command
81
+ - cli: add tables import command
82
+ - web: add csv export to query views
83
+ - web: add table import form
84
+ - allow environment variable substitution in YAML configuration
85
+ - support for remote Delta tables (S3, ADLS)
86
+
87
+ ### Changed
88
+ - cli: table uri lazy validation in app configuration
89
+ - web: table uri lazy validation in app configuration
90
+ - docs: update web application screenshots
91
+
92
+ ### Fixed
93
+ - cli: laketower python entrypoint script
94
+ - always use quoted SQL identifiers in query builder
95
+
96
+ ## [0.5.1] - 2025-05-30
97
+ Patch release with support for `deltalake` version 1.0.0.
98
+
99
+ ### Changes
100
+ - deps: upgrade to `deltalake` version 1
101
+
102
+ ## [0.5.0] - 2025-03-19
103
+ **Announcement:** Laketower open-source license is switching from AGPLv3 to Apache 2.0.
104
+
105
+ ### Fixed
106
+ - deps: avoid dependency jinja2 version 3.1.5
107
+
108
+ ### Changed
109
+ - docs: update configuration format
110
+ - docs: update web application section with screenshots
111
+
112
+ ## [0.4.1] - 2025-03-02
113
+ Minor release with fixes.
114
+
115
+ ### Added
116
+ - web: allow editing queries
117
+
118
+ ### Fixed
119
+ - web: missing tables query page title
120
+ - web: urlencode table view sql query link
121
+
122
+ ## [0.4.0] - 2025-03-01
123
+ Introducing new features:
124
+ - Display tables statistics
125
+ - List and execute pre-defined queries
126
+
127
+ ### Added
128
+ - web: add queries view page
129
+ - web: add table statistics page with version control
130
+ - cli: add queries view command
131
+ - cli: add queries list command
132
+ - cli: add table statistics command
133
+
134
+ ## [0.3.0] - 2025-02-27
135
+ Minor release with fixes and dropped Python 3.9 support.
136
+
137
+ ### BREAKING CHANGES
138
+ - deps: drop support for python 3.9
139
+
140
+ ### Fixed
141
+ - web: handle invalid tables sql query
142
+ - web: truncate long table names in sidebar
143
+
144
+ ## [0.2.0] - 2025-02-25
145
+ Introducing the Laketower web application!
146
+
147
+ ### Added
148
+ - `web` module
149
+ - List all registered tables
150
+ - Display table overview (metadata and schema)
151
+ - Display table history
152
+ - View a given table with simple query builder
153
+ - Query all registered tables with DuckDB SQL dialect
154
+ - CLI: add `tables view --version` argument to time-travel table version
155
+
156
+ ### Fixed
157
+ - Delta tables metadata compatibility when name and/or description is missing
158
+ - Delta tables history compatibility when created with Spark
159
+ - CLI: show default argument values in help
160
+
161
+ ## [0.1.0] - 2025-02-15
162
+ Initial release of `laketower`.
163
+
164
+ ### Added
165
+ - `cli` module
166
+ - Validate YAML configuration
167
+ - List all registered tables
168
+ - Display a given table metadata
169
+ - Display a given table schema
170
+ - Display a given table history
171
+ - View a given table with simple query builder
172
+ - Query all registered tables with DuckDB SQL dialect
173
+
174
+ [Unreleased]: https://github.com/datalpia/laketower/compare/0.6.5...HEAD
175
+ [0.6.5]: https://github.com/datalpia/laketower/compare/0.6.4...0.6.5
176
+ [0.6.4]: https://github.com/datalpia/laketower/compare/0.6.3...0.6.4
177
+ [0.6.3]: https://github.com/datalpia/laketower/compare/0.6.2...0.6.3
178
+ [0.6.2]: https://github.com/datalpia/laketower/compare/0.6.1...0.6.2
179
+ [0.6.1]: https://github.com/datalpia/laketower/compare/0.6.0...0.6.1
180
+ [0.6.0]: https://github.com/datalpia/laketower/compare/0.5.1...0.6.0
181
+ [0.5.1]: https://github.com/datalpia/laketower/compare/0.5.0...0.5.1
182
+ [0.5.0]: https://github.com/datalpia/laketower/compare/0.4.1...0.5.0
183
+ [0.4.1]: https://github.com/datalpia/laketower/compare/0.4.0...0.4.1
184
+ [0.4.0]: https://github.com/datalpia/laketower/compare/0.3.0...0.4.0
185
+ [0.3.0]: https://github.com/datalpia/laketower/compare/0.2.0...0.3.0
186
+ [0.2.0]: https://github.com/datalpia/laketower/compare/0.1.0...0.2.0
187
+ [0.1.0]: https://github.com/datalpia/laketower/releases/tag/0.1.0
@@ -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.