exploderino 1.0.1__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.
- exploderino/__init__.py +27 -0
- exploderino/__main__.py +3 -0
- exploderino/cli.py +188 -0
- exploderino/core.py +857 -0
- exploderino/formats.py +128 -0
- exploderino/ole.py +74 -0
- exploderino/protection.py +135 -0
- exploderino/py.typed +0 -0
- exploderino/xmlfmt.py +270 -0
- exploderino-1.0.1.dist-info/METADATA +232 -0
- exploderino-1.0.1.dist-info/RECORD +15 -0
- exploderino-1.0.1.dist-info/WHEEL +4 -0
- exploderino-1.0.1.dist-info/entry_points.txt +2 -0
- exploderino-1.0.1.dist-info/licenses/LICENSE +202 -0
- exploderino-1.0.1.dist-info/licenses/NOTICE +2 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: exploderino
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: Explode Office, OpenDocument, EPUB and XPS documents into directories of readable XML, and implode them back.
|
|
5
|
+
Project-URL: Homepage, https://github.com/ChickenWorks/exploderino
|
|
6
|
+
Project-URL: Documentation, https://github.com/ChickenWorks/exploderino/tree/main/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/ChickenWorks/exploderino
|
|
8
|
+
Project-URL: Issues, https://github.com/ChickenWorks/exploderino/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/ChickenWorks/exploderino/blob/main/CHANGELOG.md
|
|
10
|
+
Author: Chicken Works
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: diff,docx,epub,git,odp,ods,odt,office,ooxml,opendocument,pptx,pretty-print,vsdx,xlsx,xml,xps,zip
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
28
|
+
Classifier: Topic :: Office/Business :: Office Suites
|
|
29
|
+
Classifier: Topic :: Text Processing :: Markup :: XML
|
|
30
|
+
Classifier: Topic :: Utilities
|
|
31
|
+
Classifier: Typing :: Typed
|
|
32
|
+
Requires-Python: >=3.9
|
|
33
|
+
Requires-Dist: lxml>=5.0
|
|
34
|
+
Provides-Extra: ole
|
|
35
|
+
Requires-Dist: olefile>=0.46; extra == 'ole'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
# exploderino
|
|
39
|
+
|
|
40
|
+
[](https://github.com/ChickenWorks/exploderino/actions/workflows/ci.yml)
|
|
41
|
+
[](https://pypi.org/project/exploderino/)
|
|
42
|
+
[](https://pypi.org/project/exploderino/)
|
|
43
|
+
[][license]
|
|
44
|
+
|
|
45
|
+
Turn documents into ordinary directories of files, and turn those directories back into
|
|
46
|
+
working documents.
|
|
47
|
+
|
|
48
|
+
Word, Excel, PowerPoint, Visio, OpenDocument, EPUB and XPS files are ZIP archives of XML,
|
|
49
|
+
images and other parts. exploderino unpacks them into a directory with readable, indented
|
|
50
|
+
XML, so other tools can work on the parts directly: `grep`, `sed`, `git diff`, `jq`, XML
|
|
51
|
+
processors, linters, scripts or AI agents. When you're done, it packs the directory back into
|
|
52
|
+
a valid document. With no edits, every part comes back with exactly the same content.
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
deck.pptx ──explode──▶ deck.pptx.exploded/
|
|
56
|
+
├── .exploderino.json manifest used to rebuild
|
|
57
|
+
├── [Content_Types].xml
|
|
58
|
+
├── _rels/.rels
|
|
59
|
+
├── docProps/{app,core}.xml
|
|
60
|
+
└── ppt/
|
|
61
|
+
├── presentation.xml
|
|
62
|
+
├── slides/slide1.xml …
|
|
63
|
+
├── slideLayouts/ slideMasters/ theme/
|
|
64
|
+
└── media/image1.png …
|
|
65
|
+
◀──implode──
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Why not just unzip?
|
|
69
|
+
|
|
70
|
+
`unzip` and `xmllint --format` give you readable XML. Getting a working document back is the
|
|
71
|
+
hard part:
|
|
72
|
+
|
|
73
|
+
- **Reformatting can change the text.** In OpenDocument paragraphs and EPUB chapters,
|
|
74
|
+
whitespace between elements is visible text, so a general-purpose pretty-printer adds or
|
|
75
|
+
removes spaces in the document. exploderino indents only where whitespace is formatting, and
|
|
76
|
+
checks that each part comes back identical before it indents it.
|
|
77
|
+
- **`zip -r` builds archives that applications reject.** OpenDocument and EPUB need `mimetype`
|
|
78
|
+
stored first and uncompressed. exploderino records each part's order, compression and
|
|
79
|
+
timestamp, and rebuilds the archive from them.
|
|
80
|
+
- **Signatures break.** Re-serializing a signed document's XML invalidates the signature.
|
|
81
|
+
exploderino keeps signed parts byte for byte, so an unedited round trip stays valid.
|
|
82
|
+
- **Documents from elsewhere can be hostile.** exploderino rejects path traversal,
|
|
83
|
+
decompression bombs and XML entity attacks, and never runs macros.
|
|
84
|
+
|
|
85
|
+
`exploderino verify` proves the round trip for any document before you build on it.
|
|
86
|
+
|
|
87
|
+
## Features
|
|
88
|
+
|
|
89
|
+
- **Readable parts:** XML is indented for reading, diffing and editing; images, fonts and
|
|
90
|
+
other binary parts are copied as they are.
|
|
91
|
+
- **Exact round trips:** unedited documents come back with every part's content unchanged,
|
|
92
|
+
including part order, compression and timestamps.
|
|
93
|
+
- **Many formats:** Office Open XML, OpenDocument, EPUB and XPS, detected from file content.
|
|
94
|
+
Legacy `.doc`, `.xls` and `.ppt` files can be inspected read-only.
|
|
95
|
+
- **Embedded documents:** a workbook inside a document can be exploded in place, and is
|
|
96
|
+
rebuilt automatically.
|
|
97
|
+
- **Safe with untrusted files:** protection against path traversal, decompression bombs and
|
|
98
|
+
XML attacks; encrypted and signed content is detected and preserved.
|
|
99
|
+
- **Several ways to run:** a command-line tool, a typed Python API, a Docker image and a
|
|
100
|
+
Makefile, with JSON output for scripts.
|
|
101
|
+
|
|
102
|
+
## Installation
|
|
103
|
+
|
|
104
|
+
exploderino needs **Python 3.9 or newer** (tested on 3.9 to 3.15) on **macOS or Linux**.
|
|
105
|
+
Windows isn't tested. The only required dependency, `lxml`, is installed automatically.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# A standalone exploderino command, with legacy .doc/.xls/.ppt support (recommended)
|
|
109
|
+
uv tool install 'exploderino[ole]' # or: pipx install 'exploderino[ole]'
|
|
110
|
+
|
|
111
|
+
# Or into the current Python environment
|
|
112
|
+
pip install 'exploderino[ole]'
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Leave out `[ole]` if you don't need legacy files; it adds the `olefile` package. After
|
|
116
|
+
`pip install`, `python -m exploderino` works too. To upgrade, run `uv tool upgrade
|
|
117
|
+
exploderino`, `pipx upgrade exploderino` or `pip install -U exploderino`; to uninstall,
|
|
118
|
+
`uv tool uninstall exploderino`, `pipx uninstall exploderino` or `pip uninstall exploderino`.
|
|
119
|
+
|
|
120
|
+
To try the latest unreleased code, install from GitHub:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
uv tool install 'exploderino[ole] @ git+https://github.com/ChickenWorks/exploderino'
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Docker
|
|
127
|
+
|
|
128
|
+
Each release is published as a multi-platform image (linux/amd64 and linux/arm64) with the
|
|
129
|
+
`[ole]` extra. It runs as a non-root user in `/work`, so mount the directory that holds your
|
|
130
|
+
documents there; paths are then relative to it.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/chickenworks/exploderino deck.pptx
|
|
134
|
+
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/chickenworks/exploderino deck.pptx.exploded -o deck-edited.pptx
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`-u "$(id -u):$(id -g)"` makes the files the container writes belong to you. Tags are `X.Y.Z`,
|
|
138
|
+
`X.Y` and `latest`. To build the image yourself, run `docker build -t exploderino .` in a
|
|
139
|
+
checkout, or use the [Makefile][makefile], which also saves typing these options.
|
|
140
|
+
|
|
141
|
+
### From source
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
git clone https://github.com/ChickenWorks/exploderino.git
|
|
145
|
+
cd exploderino
|
|
146
|
+
uv tool install '.[ole]' # a standalone command
|
|
147
|
+
uv run exploderino --help # or run it from the checkout without installing
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
This needs [uv](https://docs.astral.sh/uv/). [CONTRIBUTING.md][contributing] covers setting up
|
|
151
|
+
for development.
|
|
152
|
+
|
|
153
|
+
## Quick start
|
|
154
|
+
|
|
155
|
+
Point it at a document to explode it, or at an exploded directory to implode it. It works out
|
|
156
|
+
which from the path, and detects the document's format from its content, not its extension.
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
exploderino deck.pptx # explode -> deck.pptx.exploded/
|
|
160
|
+
grep -o '<a:t>[^<]*</a:t>' deck.pptx.exploded/ppt/slides/slide1.xml # inspect or edit
|
|
161
|
+
exploderino deck.pptx.exploded -o deck-edited.pptx # implode into a new file
|
|
162
|
+
exploderino verify deck.pptx # optional: check the round trip
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Implode never overwrites a file unless you pass `--force`, and the default output name is
|
|
166
|
+
usually the original document, so use `-o` to write a new file. The [user guide][guide] has
|
|
167
|
+
recipes for extracting text, finding and replacing, swapping images and tracking documents in
|
|
168
|
+
git.
|
|
169
|
+
|
|
170
|
+
## Supported formats
|
|
171
|
+
|
|
172
|
+
| Family | Extensions | Explode | Implode |
|
|
173
|
+
|---|---|---|---|
|
|
174
|
+
| Word, Excel, PowerPoint, Visio | `.docx` `.xlsx` `.pptx` `.vsdx` and their macro-enabled, template, add-in and other variants, plus `.xlsb` | Yes | Yes |
|
|
175
|
+
| OpenDocument | `.odt` `.ods` `.odp` `.odg` and the other ODF types, including LibreOffice Base `.odb` | Yes | Yes |
|
|
176
|
+
| EPUB | `.epub` (EPUB 2 and 3) | Yes | Yes |
|
|
177
|
+
| XPS | `.xps` `.oxps` | Yes | Yes |
|
|
178
|
+
| Legacy Office (OLE) | `.doc` `.xls` `.ppt`, Visio, Publisher, Project and Outlook files | Read-only, with `[ole]` | No |
|
|
179
|
+
|
|
180
|
+
[Formats][formats] lists every extension, which parts are pretty-printed, and how password
|
|
181
|
+
protection, DRM and digital signatures are handled.
|
|
182
|
+
|
|
183
|
+
## Documentation
|
|
184
|
+
|
|
185
|
+
- [Command reference][cli]: every command and option, JSON output and exit codes
|
|
186
|
+
- [User guide][guide]: where things are in each format, recipes, adding and removing parts,
|
|
187
|
+
embedded documents
|
|
188
|
+
- [Formats][formats]: extensions, pretty-printed parts, protected, signed and legacy files
|
|
189
|
+
- [Python API][api]: `explode`, `implode`, `verify` and `read_manifest`
|
|
190
|
+
- [How it works][how]: the round-trip guarantee, the manifest, and limitations
|
|
191
|
+
- [Safety][safety]: protections against hostile documents and directories
|
|
192
|
+
- [Troubleshooting][troubleshooting]: error and warning messages, with fixes
|
|
193
|
+
- [Using the Makefile][makefile] and [SBOM][sbom]
|
|
194
|
+
- [Changelog][changelog]
|
|
195
|
+
|
|
196
|
+
## Project status
|
|
197
|
+
|
|
198
|
+
exploderino is stable and follows [Semantic Versioning](https://semver.org/). Its public
|
|
199
|
+
interface is the command line, the JSON output, the Python API and the manifest format: patch
|
|
200
|
+
releases fix bugs, minor releases add features without breaking that interface, and only a new
|
|
201
|
+
major version changes it incompatibly. The [changelog][changelog] lists every change.
|
|
202
|
+
|
|
203
|
+
## Contributing
|
|
204
|
+
|
|
205
|
+
Bug reports, feature requests and pull requests are welcome. [CONTRIBUTING.md][contributing]
|
|
206
|
+
explains how to set up a checkout, the checks a change must pass and the pull request process.
|
|
207
|
+
Everyone taking part is expected to follow the [Code of Conduct][coc].
|
|
208
|
+
|
|
209
|
+
## Security
|
|
210
|
+
|
|
211
|
+
Please report security problems privately, as described in [SECURITY.md][security], not in a
|
|
212
|
+
public issue.
|
|
213
|
+
|
|
214
|
+
## License
|
|
215
|
+
|
|
216
|
+
exploderino is licensed under the [Apache License 2.0][license]. Copyright 2026 Chicken Works.
|
|
217
|
+
|
|
218
|
+
<!-- Absolute links, so that they also work in the README on PyPI -->
|
|
219
|
+
[api]: https://github.com/ChickenWorks/exploderino/blob/main/docs/python-api.md
|
|
220
|
+
[changelog]: https://github.com/ChickenWorks/exploderino/blob/main/CHANGELOG.md
|
|
221
|
+
[cli]: https://github.com/ChickenWorks/exploderino/blob/main/docs/cli.md
|
|
222
|
+
[coc]: https://github.com/ChickenWorks/exploderino/blob/main/CODE_OF_CONDUCT.md
|
|
223
|
+
[contributing]: https://github.com/ChickenWorks/exploderino/blob/main/CONTRIBUTING.md
|
|
224
|
+
[formats]: https://github.com/ChickenWorks/exploderino/blob/main/docs/formats.md
|
|
225
|
+
[guide]: https://github.com/ChickenWorks/exploderino/blob/main/docs/guide.md
|
|
226
|
+
[how]: https://github.com/ChickenWorks/exploderino/blob/main/docs/how-it-works.md
|
|
227
|
+
[license]: https://github.com/ChickenWorks/exploderino/blob/main/LICENSE
|
|
228
|
+
[makefile]: https://github.com/ChickenWorks/exploderino/blob/main/docs/makefile.md
|
|
229
|
+
[safety]: https://github.com/ChickenWorks/exploderino/blob/main/docs/safety.md
|
|
230
|
+
[sbom]: https://github.com/ChickenWorks/exploderino/blob/main/docs/sbom.md
|
|
231
|
+
[security]: https://github.com/ChickenWorks/exploderino/blob/main/SECURITY.md
|
|
232
|
+
[troubleshooting]: https://github.com/ChickenWorks/exploderino/blob/main/docs/troubleshooting.md
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
exploderino/__init__.py,sha256=op6y3Um-llyEuSwXO8EiJ4Lwn0J7P65Ld_GPbE8zFtg,477
|
|
2
|
+
exploderino/__main__.py,sha256=k1ocEWawweo1qCJWNFAAvyxz3tcY13dzvCenHszij30,48
|
|
3
|
+
exploderino/cli.py,sha256=-a5ONMd56INOaygIuQrQL_dTcx1ZiVY_aU4iWxynkYQ,8090
|
|
4
|
+
exploderino/core.py,sha256=LDoOQxIysNf4CbqRm6CLKbbs8tyysV9ma_ot8GC-8wY,33390
|
|
5
|
+
exploderino/formats.py,sha256=5U2qPKGrm17Z_UdGV-KNpq3no9kPdUCtg02y34G6RV8,4567
|
|
6
|
+
exploderino/ole.py,sha256=FUP3PHlySlRpL_MdX-OOqCoQVPgS3gqBvaFzSgRM2Gs,2938
|
|
7
|
+
exploderino/protection.py,sha256=3ukBUu1A8vnQLwDKhqaYpUufLBru-Luy7VjNveJzWC0,5620
|
|
8
|
+
exploderino/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
exploderino/xmlfmt.py,sha256=B15cPpwRAKFP20yQZJi-iUePnBGHqK0913mzKgtGTrI,10085
|
|
10
|
+
exploderino-1.0.1.dist-info/METADATA,sha256=uObNrV7ANnpfaqicEXRLRwvYJMBkZ_DGEyKoEWLzzyE,11742
|
|
11
|
+
exploderino-1.0.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
12
|
+
exploderino-1.0.1.dist-info/entry_points.txt,sha256=GhQdWpW23QO5ym9v47UYbJBkBWA1vFRueuzTTTHM7Do,53
|
|
13
|
+
exploderino-1.0.1.dist-info/licenses/LICENSE,sha256=6KKXL3oG8tDO1EJ0ECMc3aXw0W-8b3qWg0wh9XCAsBE,11344
|
|
14
|
+
exploderino-1.0.1.dist-info/licenses/NOTICE,sha256=SwZYXmnC31Cz_pS4EEdKAr8hPXMPbAVEX1wUOJQX6b4,41
|
|
15
|
+
exploderino-1.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Chicken Works
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|