@duckcodeailabs/dql-notebook 0.7.0 → 0.8.0
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.
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +30 -94
- package/dist/document.js.map +1 -1
- package/package.json +9 -9
- package/LICENSE +0 -123
package/dist/document.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../src/document.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,CAAC,CAAC;IACX,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EAC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CAAC;CACvB;AAED,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,YAAY,EAAE,EACrB,QAAQ,GAAE,OAAO,CAAC,gBAAgB,CAAM,GACvC,gBAAgB,CAUlB;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAEpE;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAsBjE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,gBAAgB,CAiE9F"}
|
package/dist/document.js
CHANGED
|
@@ -36,130 +36,66 @@ export function deserializeNotebook(raw) {
|
|
|
36
36
|
}
|
|
37
37
|
export function createWelcomeNotebook(template, projectTitle) {
|
|
38
38
|
const normalized = template.toLowerCase();
|
|
39
|
-
if (normalized === '
|
|
40
|
-
return createNotebookDocument(`${projectTitle}
|
|
39
|
+
if (normalized === 'dbt') {
|
|
40
|
+
return createNotebookDocument(`${projectTitle} — DQL Notebook`, [
|
|
41
41
|
{
|
|
42
42
|
id: 'intro',
|
|
43
43
|
type: 'markdown',
|
|
44
44
|
title: 'Welcome',
|
|
45
|
-
source: `# ${projectTitle}\n\nThis notebook
|
|
45
|
+
source: `# ${projectTitle}\n\nThis notebook connects to your dbt project's DuckDB database. Run the cells below to explore the mart tables built by dbt.\n\n> DQL is the **answer layer** on top of dbt. dbt transforms your data — DQL turns it into trusted, governed analytics answers.`,
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
id: '
|
|
49
|
-
type: 'dql',
|
|
50
|
-
title: 'Revenue by Channel',
|
|
51
|
-
source: `block "Revenue by Channel" {\n domain = "commerce"\n type = "custom"\n description = "Starter DQL block for channel-level revenue"\n\n query = """\n SELECT channel, ROUND(SUM(order_total), 2) AS revenue\n FROM read_csv_auto('./data/orders.csv')\n GROUP BY channel\n ORDER BY revenue DESC\n """\n\n visualization {\n chart = "bar"\n x = channel\n y = revenue\n }\n\n tests {\n assert row_count > 0\n }\n}`,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
id: 'sql-funnel',
|
|
48
|
+
id: 'sql-tables',
|
|
55
49
|
type: 'sql',
|
|
56
|
-
title: '
|
|
57
|
-
source:
|
|
50
|
+
title: 'Available Tables',
|
|
51
|
+
source: `-- List all tables in your DuckDB database\nSHOW TABLES;`,
|
|
58
52
|
},
|
|
59
53
|
{
|
|
60
|
-
id: '
|
|
61
|
-
type: 'chart',
|
|
62
|
-
title: 'Funnel View',
|
|
63
|
-
source: '',
|
|
64
|
-
config: {
|
|
65
|
-
sourceCellId: 'sql-funnel',
|
|
66
|
-
chart: 'bar',
|
|
67
|
-
x: 'step',
|
|
68
|
-
y: 'users',
|
|
69
|
-
title: 'Funnel conversion by step',
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
], { description: 'Guided walkthrough for the e-commerce template.', template: 'ecommerce' });
|
|
73
|
-
}
|
|
74
|
-
if (normalized === 'saas') {
|
|
75
|
-
return createNotebookDocument(`${projectTitle} Welcome`, [
|
|
76
|
-
{
|
|
77
|
-
id: 'intro',
|
|
78
|
-
type: 'markdown',
|
|
79
|
-
title: 'Welcome',
|
|
80
|
-
source: `# ${projectTitle}\n\nThis notebook highlights MRR, churn, and expansion revenue using the bundled SaaS sample data.`,
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 'dql-mrr',
|
|
84
|
-
type: 'dql',
|
|
85
|
-
title: 'MRR by Plan',
|
|
86
|
-
source: `block "MRR by Plan" {\n domain = "saas"\n type = "custom"\n description = "Monthly recurring revenue by plan tier"\n\n query = """\n SELECT plan_tier, ROUND(SUM(mrr), 2) AS mrr\n FROM read_csv_auto('./data/subscriptions.csv')\n WHERE status = 'active'\n GROUP BY plan_tier\n ORDER BY mrr DESC\n """\n\n visualization {\n chart = "bar"\n x = plan_tier\n y = mrr\n }\n}`,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: 'sql-cohort',
|
|
54
|
+
id: 'sql-customers',
|
|
90
55
|
type: 'sql',
|
|
91
|
-
title: '
|
|
92
|
-
source: `SELECT
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: 'chart-cohort',
|
|
96
|
-
type: 'chart',
|
|
97
|
-
title: 'Retention Trend',
|
|
98
|
-
source: '',
|
|
99
|
-
config: {
|
|
100
|
-
sourceCellId: 'sql-cohort',
|
|
101
|
-
chart: 'line',
|
|
102
|
-
x: 'cohort_month',
|
|
103
|
-
y: 'retained_accounts',
|
|
104
|
-
title: 'Retained accounts by cohort',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
], { description: 'Guided walkthrough for the SaaS template.', template: 'saas' });
|
|
108
|
-
}
|
|
109
|
-
if (normalized === 'taxi') {
|
|
110
|
-
return createNotebookDocument(`${projectTitle} Welcome`, [
|
|
111
|
-
{
|
|
112
|
-
id: 'intro',
|
|
113
|
-
type: 'markdown',
|
|
114
|
-
title: 'Welcome',
|
|
115
|
-
source: `# ${projectTitle}\n\nThis notebook explores trip volume, fares, and pickup patterns using the bundled taxi dataset.`,
|
|
56
|
+
title: 'Customer Overview',
|
|
57
|
+
source: `SELECT\n customer_type,\n COUNT(*) AS customers,\n ROUND(AVG(count_lifetime_orders), 1) AS avg_orders,\n ROUND(AVG(lifetime_spend), 2) AS avg_spend\nFROM dim_customers\nGROUP BY customer_type\nORDER BY customers DESC;`,
|
|
116
58
|
},
|
|
117
59
|
{
|
|
118
|
-
id: 'dql-
|
|
60
|
+
id: 'dql-revenue',
|
|
119
61
|
type: 'dql',
|
|
120
|
-
title: '
|
|
121
|
-
source: `block "
|
|
62
|
+
title: 'Order Revenue',
|
|
63
|
+
source: `block "Order Revenue" {\n domain = "finance"\n type = "custom"\n owner = "data-team"\n description = "Total order revenue over time"\n\n query = """\n SELECT\n DATE_TRUNC('month', ordered_at) AS month,\n COUNT(*) AS orders,\n ROUND(SUM(order_total), 2) AS revenue\n FROM fct_orders\n GROUP BY 1\n ORDER BY 1\n """\n\n visualization {\n chart = "bar"\n x = month\n y = revenue\n }\n\n tests {\n assert row_count > 0\n }\n}`,
|
|
122
64
|
},
|
|
123
65
|
{
|
|
124
|
-
id: 'sql-
|
|
66
|
+
id: 'sql-items',
|
|
125
67
|
type: 'sql',
|
|
126
|
-
title: '
|
|
127
|
-
source: `SELECT
|
|
68
|
+
title: 'Top Products',
|
|
69
|
+
source: `SELECT\n p.product_name,\n COUNT(*) AS items_sold,\n ROUND(SUM(oi.product_price), 2) AS total_revenue\nFROM order_items oi\nJOIN stg_products p ON oi.product_id = p.product_id\nGROUP BY p.product_name\nORDER BY total_revenue DESC\nLIMIT 10;`,
|
|
128
70
|
},
|
|
129
71
|
{
|
|
130
|
-
id: '
|
|
131
|
-
type: '
|
|
132
|
-
title: '
|
|
133
|
-
source:
|
|
134
|
-
config: {
|
|
135
|
-
sourceCellId: 'sql-fare',
|
|
136
|
-
chart: 'line',
|
|
137
|
-
x: 'pickup_hour',
|
|
138
|
-
y: 'avg_fare',
|
|
139
|
-
title: 'Average fare by pickup hour',
|
|
140
|
-
},
|
|
72
|
+
id: 'next-steps',
|
|
73
|
+
type: 'markdown',
|
|
74
|
+
title: 'Next Steps',
|
|
75
|
+
source: `## Next steps\n\n1. **Add SQL cells** — query any table from your dbt project\n2. **Create DQL blocks** — wrap queries with governance (owner, domain, tests)\n3. **Import lineage** — run \`dql compile --dbt-manifest target/manifest.json\`\n4. **View lineage** — run \`dql lineage\` to see the full data flow\n5. **Export** — save as \`.dqlnb\` for git-trackable analytics`,
|
|
141
76
|
},
|
|
142
|
-
], { description: '
|
|
77
|
+
], { description: 'DQL notebook for exploring a dbt project with DuckDB.', template: 'dbt' });
|
|
143
78
|
}
|
|
144
|
-
|
|
79
|
+
// Default notebook for non-dbt projects
|
|
80
|
+
return createNotebookDocument(`${projectTitle} — DQL Notebook`, [
|
|
145
81
|
{
|
|
146
82
|
id: 'intro',
|
|
147
83
|
type: 'markdown',
|
|
148
84
|
title: 'Welcome',
|
|
149
|
-
source: `# ${projectTitle}\n\nWelcome to the
|
|
85
|
+
source: `# ${projectTitle}\n\nWelcome to the DQL notebook. Use this notebook to write SQL, create governed DQL blocks, and build analytics answers — all tracked in Git.`,
|
|
150
86
|
},
|
|
151
87
|
{
|
|
152
|
-
id: '
|
|
153
|
-
type: '
|
|
154
|
-
title: 'Starter
|
|
155
|
-
source:
|
|
88
|
+
id: 'sql-starter',
|
|
89
|
+
type: 'sql',
|
|
90
|
+
title: 'Starter Query',
|
|
91
|
+
source: `-- Write your SQL here\n-- DQL uses DuckDB — you can query local CSV, Parquet, and JSON files directly\n-- Example: SELECT * FROM read_csv_auto('./data/my_file.csv') LIMIT 10;`,
|
|
156
92
|
},
|
|
157
93
|
{
|
|
158
|
-
id: '
|
|
94
|
+
id: 'next-steps',
|
|
159
95
|
type: 'markdown',
|
|
160
96
|
title: 'Next Steps',
|
|
161
|
-
source: `##
|
|
97
|
+
source: `## Next steps\n\n1. **Add data** — place CSV/Parquet files in your project or connect to a database\n2. **Write SQL cells** — query your data interactively\n3. **Create DQL blocks** — wrap queries with governance (owner, domain, tests)\n4. **Export** — save as \`.dqlnb\` for git-trackable analytics`,
|
|
162
98
|
},
|
|
163
|
-
], { description: '
|
|
99
|
+
], { description: 'DQL notebook for interactive analytics.', template: 'default' });
|
|
164
100
|
}
|
|
165
101
|
//# sourceMappingURL=document.js.map
|
package/dist/document.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../src/document.ts"],"names":[],"mappings":"AAiCA,MAAM,UAAU,sBAAsB,CACpC,KAAa,EACb,KAAqB,EACrB,WAAsC,EAAE;IAExC,OAAO;QACL,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE;YACR,KAAK;YACL,WAAW,EAAE,KAAK;YAClB,GAAG,QAAQ;SACZ;QACD,KAAK;KACN,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,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AAS;YAChB,MAAM,EAAE,KAAK,YAAY,gJAAgJ;SAC1K;QACD;YACE,EAAE,EAAE,aAAa;YACjB,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,eAAe;YACtB,MAAM,EAAE,iLAAiL;SAC1L;QACD;YACE,EAAE,EAAE,YAAY;YAChB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,YAAY;YACnB,MAAM,EAAE,6SAA6S;SACtT;KACF,EAAE,EAAE,WAAW,EAAE,yCAAyC,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;AACtF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckcodeailabs/dql-notebook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Notebook document model and execution helpers for DQL",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -12,6 +12,11 @@
|
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
|
|
17
|
+
"test": "vitest run --passWithNoTests",
|
|
18
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
19
|
+
},
|
|
15
20
|
"files": [
|
|
16
21
|
"dist"
|
|
17
22
|
],
|
|
@@ -24,17 +29,12 @@
|
|
|
24
29
|
"access": "public"
|
|
25
30
|
},
|
|
26
31
|
"dependencies": {
|
|
27
|
-
"@duckcodeailabs/dql-core": "
|
|
28
|
-
"@duckcodeailabs/dql-connectors": "
|
|
32
|
+
"@duckcodeailabs/dql-core": "workspace:*",
|
|
33
|
+
"@duckcodeailabs/dql-connectors": "workspace:*"
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
36
|
"@types/node": "^22.0.0",
|
|
32
37
|
"typescript": "^5.7.0",
|
|
33
38
|
"vitest": "^3.0.0"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
|
|
37
|
-
"test": "vitest run --passWithNoTests",
|
|
38
|
-
"clean": "rm -rf dist tsconfig.tsbuildinfo"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
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, and
|
|
10
|
-
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
|
13
|
-
owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all other entities
|
|
16
|
-
that control, are controlled by, or are under common control with that entity.
|
|
17
|
-
For the purposes of this definition, "control" means (i) the power, direct or
|
|
18
|
-
indirect, to cause the direction or management of such entity, whether by
|
|
19
|
-
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
-
|
|
22
|
-
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
23
|
-
permissions granted by this License.
|
|
24
|
-
|
|
25
|
-
"Source" form shall mean the preferred form for making modifications, including
|
|
26
|
-
but not limited to software source code, documentation source, and configuration
|
|
27
|
-
files.
|
|
28
|
-
|
|
29
|
-
"Object" form shall mean any form resulting from mechanical transformation or
|
|
30
|
-
translation of a Source form, including but not limited to compiled object code,
|
|
31
|
-
generated documentation, and conversions to other media types.
|
|
32
|
-
|
|
33
|
-
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
|
34
|
-
available under the License, as indicated by a copyright notice that is included
|
|
35
|
-
in or attached to the work.
|
|
36
|
-
|
|
37
|
-
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
|
38
|
-
is based on (or derived from) the Work and for which the editorial revisions,
|
|
39
|
-
annotations, elaborations, or other modifications represent, as a whole, an
|
|
40
|
-
original work of authorship.
|
|
41
|
-
|
|
42
|
-
"Contribution" shall mean any work of authorship, including the original version
|
|
43
|
-
of the Work and any modifications or additions to that Work or Derivative Works
|
|
44
|
-
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
|
45
|
-
by the copyright owner or by an individual or Legal Entity authorized to submit
|
|
46
|
-
on behalf of the copyright owner.
|
|
47
|
-
|
|
48
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
49
|
-
of whom a Contribution has been received by Licensor and subsequently
|
|
50
|
-
incorporated within the Work.
|
|
51
|
-
|
|
52
|
-
2. Grant of Copyright License.
|
|
53
|
-
|
|
54
|
-
Subject to the terms and conditions of this License, each Contributor hereby
|
|
55
|
-
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
56
|
-
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
|
57
|
-
publicly display, publicly perform, sublicense, and distribute the Work and such
|
|
58
|
-
Derivative Works in Source or Object form.
|
|
59
|
-
|
|
60
|
-
3. Grant of Patent License.
|
|
61
|
-
|
|
62
|
-
Subject to the terms and conditions of this License, each Contributor hereby
|
|
63
|
-
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
|
64
|
-
irrevocable patent license to make, have made, use, offer to sell, sell, import,
|
|
65
|
-
and otherwise transfer the Work.
|
|
66
|
-
|
|
67
|
-
4. Redistribution.
|
|
68
|
-
|
|
69
|
-
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
|
70
|
-
in any medium, with or without modifications, and in Source or Object form,
|
|
71
|
-
provided that You meet the following conditions:
|
|
72
|
-
|
|
73
|
-
(a) You must give any other recipients of the Work or Derivative Works a copy of
|
|
74
|
-
this License; and
|
|
75
|
-
|
|
76
|
-
(b) You must cause any modified files to carry prominent notices stating that
|
|
77
|
-
You changed the files; and
|
|
78
|
-
|
|
79
|
-
(c) You must retain, in the Source form of any Derivative Works that You
|
|
80
|
-
distribute, all copyright, patent, trademark, and attribution notices from the
|
|
81
|
-
Source form of the Work, excluding those notices that do not pertain to any part
|
|
82
|
-
of the Derivative Works; and
|
|
83
|
-
|
|
84
|
-
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
|
85
|
-
any Derivative Works that You distribute must include a readable copy of the
|
|
86
|
-
attribution notices contained within such NOTICE file, excluding those notices
|
|
87
|
-
that do not pertain to any part of the Derivative Works.
|
|
88
|
-
|
|
89
|
-
5. Submission of Contributions.
|
|
90
|
-
|
|
91
|
-
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
|
92
|
-
for inclusion in the Work by You to the Licensor shall be under the terms and
|
|
93
|
-
conditions of this License, without any additional terms or conditions.
|
|
94
|
-
|
|
95
|
-
6. Trademarks.
|
|
96
|
-
|
|
97
|
-
This License does not grant permission to use the trade names, trademarks,
|
|
98
|
-
service marks, or product names of the Licensor, except as required for
|
|
99
|
-
reasonable and customary use in describing the origin of the Work.
|
|
100
|
-
|
|
101
|
-
7. Disclaimer of Warranty.
|
|
102
|
-
|
|
103
|
-
Unless required by applicable law or agreed to in writing, Licensor provides the
|
|
104
|
-
Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
105
|
-
express or implied, including, without limitation, any warranties or conditions
|
|
106
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
|
107
|
-
PURPOSE.
|
|
108
|
-
|
|
109
|
-
8. Limitation of Liability.
|
|
110
|
-
|
|
111
|
-
In no event and under no legal theory, whether in tort (including negligence),
|
|
112
|
-
contract, or otherwise, unless required by applicable law, shall any Contributor
|
|
113
|
-
be liable to You for damages, including any direct, indirect, special,
|
|
114
|
-
incidental, or consequential damages of any character arising as a result of this
|
|
115
|
-
License or out of the use or inability to use the Work.
|
|
116
|
-
|
|
117
|
-
9. Accepting Warranty or Additional Liability.
|
|
118
|
-
|
|
119
|
-
While redistributing the Work or Derivative Works thereof, You may choose to
|
|
120
|
-
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
|
121
|
-
other liability obligations and/or rights consistent with this License.
|
|
122
|
-
|
|
123
|
-
END OF TERMS AND CONDITIONS
|