datamasque-cli 1.0.0__py3-none-any.whl
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.
- datamasque_cli/__init__.py +0 -0
- datamasque_cli/client.py +109 -0
- datamasque_cli/commands/__init__.py +0 -0
- datamasque_cli/commands/auth.py +154 -0
- datamasque_cli/commands/connections.py +325 -0
- datamasque_cli/commands/discovery.py +136 -0
- datamasque_cli/commands/files.py +77 -0
- datamasque_cli/commands/ruleset_libraries.py +156 -0
- datamasque_cli/commands/rulesets.py +303 -0
- datamasque_cli/commands/runs.py +526 -0
- datamasque_cli/commands/seeds.py +56 -0
- datamasque_cli/commands/system.py +118 -0
- datamasque_cli/commands/users.py +86 -0
- datamasque_cli/config.py +82 -0
- datamasque_cli/main.py +58 -0
- datamasque_cli/output.py +133 -0
- datamasque_cli/py.typed +0 -0
- datamasque_cli-1.0.0.dist-info/METADATA +269 -0
- datamasque_cli-1.0.0.dist-info/RECORD +22 -0
- datamasque_cli-1.0.0.dist-info/WHEEL +4 -0
- datamasque_cli-1.0.0.dist-info/entry_points.txt +2 -0
- datamasque_cli-1.0.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: datamasque-cli
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Official command-line interface for the DataMasque data-masking platform.
|
|
5
|
+
Project-URL: Homepage, https://datamasque.com/
|
|
6
|
+
Project-URL: Repository, https://github.com/datamasque/datamasque-cli
|
|
7
|
+
Project-URL: Issues, https://github.com/datamasque/datamasque-cli/issues
|
|
8
|
+
Author: DataMasque Ltd
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Database
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Classifier: Typing :: Typed
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Requires-Dist: datamasque-python<2,>=1.0.0
|
|
27
|
+
Requires-Dist: tomli-w>=1.0.0
|
|
28
|
+
Requires-Dist: typer>=0.15.0
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# DataMasque CLI
|
|
32
|
+
|
|
33
|
+
Official command-line interface for the
|
|
34
|
+
[DataMasque](https://datamasque.com/) platform.
|
|
35
|
+
|
|
36
|
+
DataMasque is a data masking platform that replaces sensitive data with realistic but non-production values,
|
|
37
|
+
so teams can use production-shaped data in non-production environments without exposing PII.
|
|
38
|
+
|
|
39
|
+
DataMasque CLI `dm` covers:
|
|
40
|
+
|
|
41
|
+
- connections, rulesets, ruleset libraries, and masking runs
|
|
42
|
+
- schema discovery and sensitive-data discovery
|
|
43
|
+
- users, files, and DataMasque instance administration
|
|
44
|
+
|
|
45
|
+
<p align="center">
|
|
46
|
+
<img src="assets/demo.gif" width="820" alt="DataMasque CLI demo — running dm version, listing connections, and checking a masking run">
|
|
47
|
+
</p>
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then:
|
|
52
|
+
|
|
53
|
+
```console
|
|
54
|
+
uv tool install datamasque-cli
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
This installs `dm` as a command in your terminal.
|
|
58
|
+
|
|
59
|
+
To run without installing:
|
|
60
|
+
|
|
61
|
+
```console
|
|
62
|
+
uvx --from datamasque-cli dm
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Quickstart
|
|
66
|
+
|
|
67
|
+
> [!NOTE]
|
|
68
|
+
> `dm auth login` writes credentials in plain text (mode 600).
|
|
69
|
+
> For shared hosts or any machine you'd rather not leave credentials on disk, [set environmental variables](#configuration) instead.
|
|
70
|
+
>
|
|
71
|
+
> Either way, prefer a `mask_builder` or `mask_runner` role over admin.
|
|
72
|
+
|
|
73
|
+
```console
|
|
74
|
+
# Save credentials
|
|
75
|
+
dm auth login
|
|
76
|
+
|
|
77
|
+
# Browse configurations
|
|
78
|
+
dm connections list
|
|
79
|
+
dm rulesets list
|
|
80
|
+
|
|
81
|
+
# Start a masking run
|
|
82
|
+
dm run start --connection mydb --ruleset myruleset
|
|
83
|
+
|
|
84
|
+
# Check progress on masking runs
|
|
85
|
+
dm run list --status running
|
|
86
|
+
dm run logs 42 --follow
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`dm run start` and `dm run wait` block until the run finishes.
|
|
90
|
+
Pass `--background` to `start` to skip the wait.
|
|
91
|
+
|
|
92
|
+
## Shell completion
|
|
93
|
+
|
|
94
|
+
`dm` provides built-in completion for bash, zsh, and fish:
|
|
95
|
+
|
|
96
|
+
```console
|
|
97
|
+
dm --install-completion
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Restart your shell, then `dm run <TAB>` and friends will complete subcommands.
|
|
101
|
+
`dm --show-completion` prints the script without installing it.
|
|
102
|
+
|
|
103
|
+
## Configuration
|
|
104
|
+
|
|
105
|
+
To use environmental variables for DataMasque Authentication,
|
|
106
|
+
set `DATAMASQUE_URL`, `DATAMASQUE_USERNAME`, and `DATAMASQUE_PASSWORD`.
|
|
107
|
+
These take precedence over any saved profile for that call.
|
|
108
|
+
|
|
109
|
+
Otherwise, `dm auth` credentials live in `~/.config/datamasque-cli/config.toml` (mode `0600`).
|
|
110
|
+
|
|
111
|
+
Manage multiple instances by passing `--profile` to `dm auth login`,
|
|
112
|
+
then `dm auth use <profile>` to switch the default,
|
|
113
|
+
or `--profile <name>` on any command to override per-call.
|
|
114
|
+
|
|
115
|
+
For instances with self-signed or expired TLS certificates
|
|
116
|
+
(typically a local dev box),
|
|
117
|
+
pass `--insecure` to `dm auth login` to persist the toggle on the profile,
|
|
118
|
+
or set `DATAMASQUE_VERIFY_SSL=false` to skip verification per call.
|
|
119
|
+
|
|
120
|
+
## Commands
|
|
121
|
+
|
|
122
|
+
### Authentication
|
|
123
|
+
|
|
124
|
+
```console
|
|
125
|
+
dm auth login # Interactive — prompts for URL, username, password
|
|
126
|
+
dm auth login --profile staging # Save credentials under a named profile
|
|
127
|
+
dm auth login --insecure # Skip TLS verification (self-signed / expired cert)
|
|
128
|
+
dm auth status # Show current auth + licence
|
|
129
|
+
dm auth list # List configured profiles
|
|
130
|
+
dm auth use <profile> # Switch active profile
|
|
131
|
+
dm auth logout # Remove stored credentials
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Connections
|
|
135
|
+
|
|
136
|
+
```console
|
|
137
|
+
dm connections list # List all connections (includes source/destination role)
|
|
138
|
+
dm connections get <name> # Show connection details
|
|
139
|
+
dm connections create --file conn.json # Create from JSON
|
|
140
|
+
dm connections create --name <n> --type database --db-type postgres \
|
|
141
|
+
--host <h> --port 5432 --database <d> --user <u> --password <p>
|
|
142
|
+
dm connections test <name> # Verify reachability (DB handshake / filesystem / bucket)
|
|
143
|
+
dm connections update <name> --password <new> # Rotate a field in place, preserving the UUID
|
|
144
|
+
dm connections delete <name> # Delete a connection
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Rulesets
|
|
148
|
+
|
|
149
|
+
```console
|
|
150
|
+
dm rulesets list # List all rulesets
|
|
151
|
+
dm rulesets list --type file # Filter by type
|
|
152
|
+
dm rulesets get <name> # Show ruleset details
|
|
153
|
+
dm rulesets get <name> --yaml # Print raw YAML only
|
|
154
|
+
dm rulesets get <name> --type file # Disambiguate same-name rulesets
|
|
155
|
+
dm rulesets create --name <n> --file rules.yaml # Create/update (type auto-detected from YAML)
|
|
156
|
+
dm rulesets create --name <n> --file rules.yaml --type file # Force a type
|
|
157
|
+
dm rulesets delete <name> [--type file|database] # Delete a ruleset
|
|
158
|
+
dm rulesets generate --file request.json # Generate from schema
|
|
159
|
+
dm rulesets generate --file req.json -o out.yaml # Generate to file
|
|
160
|
+
dm rulesets validate --file rules.yaml # Validate against server
|
|
161
|
+
dm rulesets export-bundle -o bundle.zip # Export rulesets + libraries + seeds
|
|
162
|
+
dm rulesets import-bundle --file bundle.zip # Import a previously exported bundle
|
|
163
|
+
dm rulesets import-bundle -f bundle.zip --overwrite-rulesets --overwrite-libraries # Replace existing entries
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Ruleset libraries
|
|
167
|
+
|
|
168
|
+
```console
|
|
169
|
+
dm libraries list # List all libraries
|
|
170
|
+
dm libraries get <name> # Show library details
|
|
171
|
+
dm libraries get <name> --yaml # Print raw YAML only
|
|
172
|
+
dm libraries create --name <n> --file lib.yaml # Create/update from file
|
|
173
|
+
dm libraries create --name <n> --file lib.yaml --namespace pii # With namespace
|
|
174
|
+
dm libraries delete <name> # Delete a library
|
|
175
|
+
dm libraries validate <name> # Re-validate against current server schema
|
|
176
|
+
dm libraries usage <name> # Show rulesets using it
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Masking runs
|
|
180
|
+
|
|
181
|
+
```console
|
|
182
|
+
dm run start -c <conn> -r <ruleset> # Start a run and block until done
|
|
183
|
+
dm run start -c <conn> -r <ruleset> --background # Start and return immediately
|
|
184
|
+
dm run start -c <conn> -r <ruleset> --options batch_size=1000 --options dry_run=true
|
|
185
|
+
dm run retry <id> # Re-run with the same config as an existing run
|
|
186
|
+
dm run status <id> # Get run status
|
|
187
|
+
dm run list # List recent runs
|
|
188
|
+
dm run list --status running # Filter by status
|
|
189
|
+
dm run logs <id> # Show execution logs
|
|
190
|
+
dm run logs <id> --follow # Stream logs until terminal state
|
|
191
|
+
dm run cancel <id> # Cancel a running job
|
|
192
|
+
dm run wait <id> # Block until complete
|
|
193
|
+
dm run report <id> # Download the masking run CSV report
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Users
|
|
197
|
+
|
|
198
|
+
```console
|
|
199
|
+
dm users list # List all users
|
|
200
|
+
dm users create --username <u> --email <e> --role mask_builder
|
|
201
|
+
dm users reset-password <username> # Reset to temp password
|
|
202
|
+
dm users delete <username> # Delete a user
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Discovery
|
|
206
|
+
|
|
207
|
+
```console
|
|
208
|
+
dm discover schema <connection> # Start a schema-discovery run
|
|
209
|
+
dm discover schema-results <run-id> # List schema-discovery results once the run finishes
|
|
210
|
+
dm discover sdd-report <run-id> # Sensitive data discovery report
|
|
211
|
+
dm discover db-report <run-id> # Database discovery CSV
|
|
212
|
+
dm discover file-report <run-id> # File discovery report
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Seeds
|
|
216
|
+
|
|
217
|
+
```console
|
|
218
|
+
dm seeds list # List all seed files
|
|
219
|
+
dm seeds upload ./my_seeds.csv # Upload a seed file
|
|
220
|
+
dm seeds delete my_seeds.csv # Delete a seed file
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Files
|
|
224
|
+
|
|
225
|
+
```console
|
|
226
|
+
dm files list snowflake-key # List Snowflake keys
|
|
227
|
+
dm files upload snowflake-key --name mykey -f key.p8 # Upload a file
|
|
228
|
+
dm files delete snowflake-key mykey # Delete an uploaded file
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### System
|
|
232
|
+
|
|
233
|
+
```console
|
|
234
|
+
dm system health # Instance health check
|
|
235
|
+
dm system licence # Licence information
|
|
236
|
+
dm system upload-licence ./licence.lic # Upload a licence file
|
|
237
|
+
dm system logs -o logs.tar.gz # Download application logs
|
|
238
|
+
dm system admin-install --email admin@co.com # Initial admin setup
|
|
239
|
+
dm system set-locality AU # Set system locality
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## JSON output
|
|
243
|
+
|
|
244
|
+
Every list / get command supports `--json` for machine-parseable output:
|
|
245
|
+
|
|
246
|
+
```console
|
|
247
|
+
dm connections list --json | jq '.[].name'
|
|
248
|
+
STATUS=$(dm run status 42 --json | jq -r '.status')
|
|
249
|
+
dm rulesets get myruleset --json | jq -r '.yaml' > ruleset.yaml
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Documentation
|
|
253
|
+
|
|
254
|
+
Documentation for the DataMasque product,
|
|
255
|
+
including a full API reference,
|
|
256
|
+
can be found on the
|
|
257
|
+
[DataMasque portal](https://portal.datamasque.com/portal/documentation/).
|
|
258
|
+
|
|
259
|
+
## Contributing
|
|
260
|
+
|
|
261
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup,
|
|
262
|
+
running tests,
|
|
263
|
+
the release flow,
|
|
264
|
+
and code-style conventions.
|
|
265
|
+
|
|
266
|
+
## License
|
|
267
|
+
|
|
268
|
+
Apache License 2.0.
|
|
269
|
+
See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
datamasque_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
datamasque_cli/client.py,sha256=ZMPxRXurtUsXGZB5aPOGP78JYmeQPBSUL42ool2mEPs,3956
|
|
3
|
+
datamasque_cli/config.py,sha256=lxqdKo5StOR1Z5jOSObi2MxD5BUz045hJ6kr_BaX3Hg,2533
|
|
4
|
+
datamasque_cli/main.py,sha256=aDaByGJMGngqix0kACu6EoMNmmyYiEiskbzHrhrHbQM,1386
|
|
5
|
+
datamasque_cli/output.py,sha256=Qx6q8rwctyzC6-gXQHP_I-O3YhonrFhiJhPap5uFGdA,3897
|
|
6
|
+
datamasque_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
datamasque_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
datamasque_cli/commands/auth.py,sha256=LO3BfkaCj6F2doEQ-KHo0GfYy5FyJOVI5ro1xqE6SOc,5234
|
|
9
|
+
datamasque_cli/commands/connections.py,sha256=r8wGDPl_DK5OaNXOh6fuN4aFKzMEMhLHoHmibXHgSdc,11853
|
|
10
|
+
datamasque_cli/commands/discovery.py,sha256=94pnkbb47_PTL22_KvCd_iWpQsVtC9fByfAidGXi2bg,5172
|
|
11
|
+
datamasque_cli/commands/files.py,sha256=EdbJGG7DklMurhFki_A1PEVl7t9g0oqbdOoQMnIFqvg,2833
|
|
12
|
+
datamasque_cli/commands/ruleset_libraries.py,sha256=tKVku8-gmoSsGJP8ViOXmyPoU9ukkYyJ6vbr-mDO9uU,5730
|
|
13
|
+
datamasque_cli/commands/rulesets.py,sha256=Qy_PoLs38lfI_1BBX9jbTrl4_outQGaJ7hLw75J448Y,12182
|
|
14
|
+
datamasque_cli/commands/runs.py,sha256=uJTAGIwR2T-WFg93B6Ff3bIEBQ4IMHeO4RMwKph5Kns,19266
|
|
15
|
+
datamasque_cli/commands/seeds.py,sha256=wh8b92TFWhOyoHdrnM3I3ZJLDQQF3etuQdyCMVxEaUU,1890
|
|
16
|
+
datamasque_cli/commands/system.py,sha256=t1kL6l9ouqh5C3JUPGc9sZVqrl7uJxFbywCbBLECA-0,4605
|
|
17
|
+
datamasque_cli/commands/users.py,sha256=MD-bUzNBSMlXx0eE_e44XCN8KpTwi-GnSwng9uXjfqk,2886
|
|
18
|
+
datamasque_cli-1.0.0.dist-info/METADATA,sha256=jpmv17hLpNc1EFPleYSPvxCN-iGNPpDRCS6l07eMOj8,10354
|
|
19
|
+
datamasque_cli-1.0.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
20
|
+
datamasque_cli-1.0.0.dist-info/entry_points.txt,sha256=a54ZX2DxL6kuYAv3dAWZfu04SOU6cY9IijB8ymEFrdA,47
|
|
21
|
+
datamasque_cli-1.0.0.dist-info/licenses/LICENSE,sha256=gVLGJV27v5e4tp1G_pB5P6Uk8xQFNa7nGR3i3PUWBfY,11286
|
|
22
|
+
datamasque_cli-1.0.0.dist-info/RECORD,,
|
|
@@ -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 describing the origin of the Work and
|
|
141
|
+
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 Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend,
|
|
172
|
+
and hold each Contributor harmless for any liability incurred by,
|
|
173
|
+
or claims asserted against, such Contributor by reason of your
|
|
174
|
+
accepting any such warranty or support.
|
|
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 2026 DataMasque Ltd
|
|
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
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|