cocoindex 0.2.3__cp311-abi3-manylinux_2_28_aarch64.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.
@@ -0,0 +1,262 @@
1
+ Metadata-Version: 2.4
2
+ Name: cocoindex
3
+ Version: 0.2.3
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: License :: OSI Approved :: Apache Software License
6
+ Classifier: Operating System :: OS Independent
7
+ Classifier: Programming Language :: Rust
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3 :: Only
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
+ Classifier: Topic :: Text Processing :: Indexing
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Natural Language :: English
18
+ Classifier: Typing :: Typed
19
+ Requires-Dist: click>=8.1.8
20
+ Requires-Dist: rich>=14.0.0
21
+ Requires-Dist: python-dotenv>=1.1.0
22
+ Requires-Dist: watchfiles>=1.1.0
23
+ Requires-Dist: numpy>=1.23.2
24
+ Requires-Dist: pytest ; extra == 'dev'
25
+ Requires-Dist: pytest-asyncio ; extra == 'dev'
26
+ Requires-Dist: ruff ; extra == 'dev'
27
+ Requires-Dist: mypy ; extra == 'dev'
28
+ Requires-Dist: pre-commit ; extra == 'dev'
29
+ Requires-Dist: sentence-transformers>=3.3.1 ; extra == 'embeddings'
30
+ Requires-Dist: colpali-engine ; extra == 'colpali'
31
+ Requires-Dist: sentence-transformers>=3.3.1 ; extra == 'all'
32
+ Requires-Dist: colpali-engine ; extra == 'all'
33
+ Provides-Extra: dev
34
+ Provides-Extra: embeddings
35
+ Provides-Extra: colpali
36
+ Provides-Extra: all
37
+ License-File: LICENSE
38
+ Summary: With CocoIndex, users declare the transformation, CocoIndex creates & maintains an index, and keeps the derived index up to date based on source update, with minimal computation and changes.
39
+ Keywords: indexing,real-time,incremental,pipeline,search,ai,etl,rag,dataflow,context-engineering
40
+ Author-email: CocoIndex <cocoindex.io@gmail.com>
41
+ License-Expression: Apache-2.0
42
+ Requires-Python: >=3.11
43
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
44
+ Project-URL: Homepage, https://cocoindex.io/
45
+
46
+ <p align="center">
47
+ <img src="https://cocoindex.io/images/github.svg" alt="CocoIndex">
48
+ </p>
49
+
50
+ <h1 align="center">Data transformation for AI</h1>
51
+
52
+ <div align="center">
53
+
54
+ [![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex)
55
+ [![Documentation](https://img.shields.io/badge/Documentation-394e79?logo=readthedocs&logoColor=00B9FF)](https://cocoindex.io/docs/getting_started/quickstart)
56
+ [![License](https://img.shields.io/badge/license-Apache%202.0-5B5BD6?logoColor=white)](https://opensource.org/licenses/Apache-2.0)
57
+ [![PyPI version](https://img.shields.io/pypi/v/cocoindex?color=5B5BD6)](https://pypi.org/project/cocoindex/)
58
+ <!--[![PyPI - Downloads](https://img.shields.io/pypi/dm/cocoindex)](https://pypistats.org/packages/cocoindex) -->
59
+ [![PyPI Downloads](https://static.pepy.tech/badge/cocoindex/month)](https://pepy.tech/projects/cocoindex)
60
+ [![CI](https://github.com/cocoindex-io/cocoindex/actions/workflows/CI.yml/badge.svg?event=push&color=5B5BD6)](https://github.com/cocoindex-io/cocoindex/actions/workflows/CI.yml)
61
+ [![release](https://github.com/cocoindex-io/cocoindex/actions/workflows/release.yml/badge.svg?event=push&color=5B5BD6)](https://github.com/cocoindex-io/cocoindex/actions/workflows/release.yml)
62
+ [![Discord](https://img.shields.io/discord/1314801574169673738?logo=discord&color=5B5BD6&logoColor=white)](https://discord.com/invite/zpA9S2DR7s)
63
+
64
+ </div>
65
+
66
+ <div align="center">
67
+ <a href="https://trendshift.io/repositories/13939" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13939" alt="cocoindex-io%2Fcocoindex | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
68
+ </div>
69
+
70
+
71
+ Ultra performant data transformation framework for AI, with core engine written in Rust. Support incremental processing and data lineage out-of-box. Exceptional developer velocity. Production-ready at day 0.
72
+
73
+ ⭐ Drop a star to help us grow!
74
+
75
+ <div align="center">
76
+
77
+ <!-- Keep these links. Translations will automatically update with the README. -->
78
+ [Deutsch](https://readme-i18n.com/cocoindex-io/cocoindex?lang=de) |
79
+ [English](https://readme-i18n.com/cocoindex-io/cocoindex?lang=en) |
80
+ [Español](https://readme-i18n.com/cocoindex-io/cocoindex?lang=es) |
81
+ [français](https://readme-i18n.com/cocoindex-io/cocoindex?lang=fr) |
82
+ [日本語](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ja) |
83
+ [한국어](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ko) |
84
+ [Português](https://readme-i18n.com/cocoindex-io/cocoindex?lang=pt) |
85
+ [Русский](https://readme-i18n.com/cocoindex-io/cocoindex?lang=ru) |
86
+ [中文](https://readme-i18n.com/cocoindex-io/cocoindex?lang=zh)
87
+
88
+ </div>
89
+
90
+ </br>
91
+
92
+ <p align="center">
93
+ <img src="https://cocoindex.io/images/transformation.svg" alt="CocoIndex Transformation">
94
+ </p>
95
+
96
+ </br>
97
+
98
+ CocoIndex makes it effortless to transform data with AI, and keep source data and target in sync. Whether you’re building a vector index for RAG, creating knowledge graphs, or performing any custom data transformations — goes beyond SQL.
99
+
100
+ </br>
101
+
102
+ <p align="center">
103
+ <img alt="CocoIndex Features" src="https://cocoindex.io/images/venn2.svg" />
104
+ </p>
105
+
106
+ </br>
107
+
108
+
109
+
110
+ ## Exceptional velocity
111
+ Just declare transformation in dataflow with ~100 lines of python
112
+
113
+ ```python
114
+ # import
115
+ data['content'] = flow_builder.add_source(...)
116
+
117
+ # transform
118
+ data['out'] = data['content']
119
+ .transform(...)
120
+ .transform(...)
121
+
122
+ # collect data
123
+ collector.collect(...)
124
+
125
+ # export to db, vector db, graph db ...
126
+ collector.export(...)
127
+ ```
128
+
129
+ CocoIndex follows the idea of [Dataflow](https://en.wikipedia.org/wiki/Dataflow_programming) programming model. Each transformation creates a new field solely based on input fields, without hidden states and value mutation. All data before/after each transformation is observable, with lineage out of the box.
130
+
131
+ **Particularly**, developers don't explicitly mutate data by creating, updating and deleting. They just need to define transformation/formula for a set of source data.
132
+
133
+ ## Plug-and-Play Building Blocks
134
+ Native builtins for different source, targets and transformations. Standardize interface, make it 1-line code switch between different components - as easy as assembling building blocks.
135
+
136
+ <p align="center">
137
+ <img src="https://cocoindex.io/images/components.svg" alt="CocoIndex Features">
138
+ </p>
139
+
140
+ ## Data Freshness
141
+ CocoIndex keep source data and target in sync effortlessly.
142
+
143
+ <p align="center">
144
+ <img src="https://github.com/user-attachments/assets/f4eb29b3-84ee-4fa0-a1e2-80eedeeabde6" alt="Incremental Processing" width="700">
145
+ </p>
146
+
147
+ It has out-of-box support for incremental indexing:
148
+ - minimal recomputation on source or logic change.
149
+ - (re-)processing necessary portions; reuse cache when possible
150
+
151
+ ## Quick Start:
152
+ If you're new to CocoIndex, we recommend checking out
153
+ - 📖 [Documentation](https://cocoindex.io/docs)
154
+ - ⚡ [Quick Start Guide](https://cocoindex.io/docs/getting_started/quickstart)
155
+ - 🎬 [Quick Start Video Tutorial](https://youtu.be/gv5R8nOXsWU?si=9ioeKYkMEnYevTXT)
156
+
157
+ ### Setup
158
+
159
+ 1. Install CocoIndex Python library
160
+
161
+ ```bash
162
+ pip install -U cocoindex
163
+ ```
164
+
165
+ 2. [Install Postgres](https://cocoindex.io/docs/getting_started/installation#-install-postgres) if you don't have one. CocoIndex uses it for incremental processing.
166
+
167
+
168
+ ## Define data flow
169
+
170
+ Follow [Quick Start Guide](https://cocoindex.io/docs/getting_started/quickstart) to define your first indexing flow. An example flow looks like:
171
+
172
+ ```python
173
+ @cocoindex.flow_def(name="TextEmbedding")
174
+ def text_embedding_flow(flow_builder: cocoindex.FlowBuilder, data_scope: cocoindex.DataScope):
175
+ # Add a data source to read files from a directory
176
+ data_scope["documents"] = flow_builder.add_source(cocoindex.sources.LocalFile(path="markdown_files"))
177
+
178
+ # Add a collector for data to be exported to the vector index
179
+ doc_embeddings = data_scope.add_collector()
180
+
181
+ # Transform data of each document
182
+ with data_scope["documents"].row() as doc:
183
+ # Split the document into chunks, put into `chunks` field
184
+ doc["chunks"] = doc["content"].transform(
185
+ cocoindex.functions.SplitRecursively(),
186
+ language="markdown", chunk_size=2000, chunk_overlap=500)
187
+
188
+ # Transform data of each chunk
189
+ with doc["chunks"].row() as chunk:
190
+ # Embed the chunk, put into `embedding` field
191
+ chunk["embedding"] = chunk["text"].transform(
192
+ cocoindex.functions.SentenceTransformerEmbed(
193
+ model="sentence-transformers/all-MiniLM-L6-v2"))
194
+
195
+ # Collect the chunk into the collector.
196
+ doc_embeddings.collect(filename=doc["filename"], location=chunk["location"],
197
+ text=chunk["text"], embedding=chunk["embedding"])
198
+
199
+ # Export collected data to a vector index.
200
+ doc_embeddings.export(
201
+ "doc_embeddings",
202
+ cocoindex.targets.Postgres(),
203
+ primary_key_fields=["filename", "location"],
204
+ vector_indexes=[
205
+ cocoindex.VectorIndexDef(
206
+ field_name="embedding",
207
+ metric=cocoindex.VectorSimilarityMetric.COSINE_SIMILARITY)])
208
+ ```
209
+
210
+ It defines an index flow like this:
211
+
212
+ <p align="center">
213
+ <img width="400" alt="Data Flow" src="https://github.com/user-attachments/assets/2ea7be6d-3d94-42b1-b2bd-22515577e463" />
214
+ </p>
215
+
216
+ ## 🚀 Examples and demo
217
+
218
+ | Example | Description |
219
+ |---------|-------------|
220
+ | [Text Embedding](examples/text_embedding) | Index text documents with embeddings for semantic search |
221
+ | [Code Embedding](examples/code_embedding) | Index code embeddings for semantic search |
222
+ | [PDF Embedding](examples/pdf_embedding) | Parse PDF and index text embeddings for semantic search |
223
+ | [Manuals LLM Extraction](examples/manuals_llm_extraction) | Extract structured information from a manual using LLM |
224
+ | [Amazon S3 Embedding](examples/amazon_s3_embedding) | Index text documents from Amazon S3 |
225
+ | [Azure Blob Storage Embedding](examples/azure_blob_embedding) | Index text documents from Azure Blob Storage |
226
+ | [Google Drive Text Embedding](examples/gdrive_text_embedding) | Index text documents from Google Drive |
227
+ | [Docs to Knowledge Graph](examples/docs_to_knowledge_graph) | Extract relationships from Markdown documents and build a knowledge graph |
228
+ | [Embeddings to Qdrant](examples/text_embedding_qdrant) | Index documents in a Qdrant collection for semantic search |
229
+ | [FastAPI Server with Docker](examples/fastapi_server_docker) | Run the semantic search server in a Dockerized FastAPI setup |
230
+ | [Product Recommendation](examples/product_recommendation) | Build real-time product recommendations with LLM and graph database|
231
+ | [Image Search with Vision API](examples/image_search) | Generates detailed captions for images using a vision model, embeds them, enables live-updating semantic search via FastAPI and served on a React frontend|
232
+ | [Face Recognition](examples/face_recognition) | Recognize faces in images and build embedding index |
233
+ | [Paper Metadata](examples/paper_metadata) | Index papers in PDF files, and build metadata tables for each paper |
234
+ | [Multi Format Indexing](examples/multi_format_indexing) | Build visual document index from PDFs and images with ColPali for semantic search |
235
+ | [Custom Output Files](examples/custom_output_files) | Convert markdown files to HTML files and save them to a local directory, using *CocoIndex Custom Targets* |
236
+ | [Patient intake form extraction](examples/patient_intake_extraction) | Use LLM to extract structured data from patient intake forms with different formats |
237
+
238
+
239
+ More coming and stay tuned 👀!
240
+
241
+ ## 📖 Documentation
242
+ For detailed documentation, visit [CocoIndex Documentation](https://cocoindex.io/docs), including a [Quickstart guide](https://cocoindex.io/docs/getting_started/quickstart).
243
+
244
+ ## 🤝 Contributing
245
+ We love contributions from our community ❤️. For details on contributing or running the project for development, check out our [contributing guide](https://cocoindex.io/docs/about/contributing).
246
+
247
+ ## 👥 Community
248
+ Welcome with a huge coconut hug 🥥⋆。˚🤗. We are super excited for community contributions of all kinds - whether it's code improvements, documentation updates, issue reports, feature requests, and discussions in our Discord.
249
+
250
+ Join our community here:
251
+
252
+ - 🌟 [Star us on GitHub](https://github.com/cocoindex-io/cocoindex)
253
+ - 👋 [Join our Discord community](https://discord.com/invite/zpA9S2DR7s)
254
+ - ▶️ [Subscribe to our YouTube channel](https://www.youtube.com/@cocoindex-io)
255
+ - 📜 [Read our blog posts](https://cocoindex.io/blogs/)
256
+
257
+ ## Support us:
258
+ We are constantly improving, and more features and examples are coming soon. If you love this project, please drop us a star ⭐ at GitHub repo [![GitHub](https://img.shields.io/github/stars/cocoindex-io/cocoindex?color=5B5BD6)](https://github.com/cocoindex-io/cocoindex) to stay tuned and help us grow.
259
+
260
+ ## License
261
+ CocoIndex is Apache 2.0 licensed.
262
+
@@ -0,0 +1,34 @@
1
+ cocoindex-0.2.3.dist-info/METADATA,sha256=TzOWNtD0v9YVOXQOdjVaZo0GrfI8QTyz1oWYVPEKbKc,12952
2
+ cocoindex-0.2.3.dist-info/WHEEL,sha256=pQhpX1zEYym7lHVMSudaqVXS44siTf8XBrjmsFdZ39M,108
3
+ cocoindex-0.2.3.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
+ cocoindex-0.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
+ cocoindex/__init__.py,sha256=sLpSVO5Cotgn_82lawxvXnaqfa-qj33rytWBAe2MTtU,2201
6
+ cocoindex/_engine.abi3.so,sha256=bbeLpgqPp4ZHFulC4_mvVX8mkg1IRstq0utgPHlwieM,70015200
7
+ cocoindex/auth_registry.py,sha256=PE1-kVkcyC1G2C_V7b1kvYzeq73OFQehWKQP7ln7fJ8,1478
8
+ cocoindex/cli.py,sha256=8Q2D0gI_yHorxfFC7tzV96oJAR7PtTn_T4qWLorPPoM,20675
9
+ cocoindex/convert.py,sha256=Eh9Co37BtW_PK3Oi-pFEiFt8cc_6g7XLcurV-NeH6GU,22090
10
+ cocoindex/flow.py,sha256=AoWt8i05MfEnnoAQR0EWzZU-9k36UmCFuNLb3itlGO0,37204
11
+ cocoindex/functions.py,sha256=09erNt3WbzY9l1KER-akBF2O5-6xEahV2ORBECaL6yk,12260
12
+ cocoindex/index.py,sha256=j93B9jEvvLXHtpzKWL88SY6wCGEoPgpsQhEGHlyYGFg,540
13
+ cocoindex/lib.py,sha256=f--9dAYd84CZosbDZqNW0oGbBLsY3dXiUTR1VrfQ_QY,817
14
+ cocoindex/llm.py,sha256=Pv_cdnRngTLtuLU9AUmS8izIHhcKVnuBNolC33f9BDI,851
15
+ cocoindex/op.py,sha256=3jTEpmzHPjg-euZhXjQqgF0i8V2LHUdkq7bp4AAIHRM,21627
16
+ cocoindex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
+ cocoindex/runtime.py,sha256=povilB3HH3y1JF-yxKwU-pD8n2WnAqyQxIgvXXHNc60,1080
18
+ cocoindex/setting.py,sha256=cuudZ2uJvS48wh-rDToPAUN7-KMjlyQ-0hWhkHMIx4U,5282
19
+ cocoindex/setup.py,sha256=7uIHKN4FOCuoidPXcKyGTrkqpkl9luL49-6UcnMxYzw,3068
20
+ cocoindex/sources.py,sha256=FYz7cWYasLGDaYoIEQ1dF2uprgUETHWsTIrIS7n6pQE,3188
21
+ cocoindex/subprocess_exec.py,sha256=aq459hCNjEnZvldIPB0eSuosr2jZDqPfT4zMwLsAnqk,9423
22
+ cocoindex/targets.py,sha256=Nfh_tpFd1goTnS_cxBjIs4j9zl3Z4Z1JomAQ1dl3Sic,2796
23
+ cocoindex/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
+ cocoindex/tests/conftest.py,sha256=Q1ev90H_6zncEL0nlzgd4idIaE6OQW_8cMf05V-Wgec,1054
25
+ cocoindex/tests/test_convert.py,sha256=UsQDuz7qukT9UAU5LBv3atNTqdUVc6uW8lrmLA7ys_w,50207
26
+ cocoindex/tests/test_optional_database.py,sha256=snAmkNa6wtOSaxoZE1HgjvL5v_ylitt3Jt_9df4Cgdc,8506
27
+ cocoindex/tests/test_transform_flow.py,sha256=G69w-n-vnCTo3r9hVIk2lJNAQEkGUA7PZfHsXna3oS0,6030
28
+ cocoindex/tests/test_typing.py,sha256=9OF3lO2uSpZBefkEJx7WRbnkXjwQtvlQIeeARYQID68,12391
29
+ cocoindex/tests/test_validation.py,sha256=X6AQzVs-hVKIXcrHMEMQnhfUE8at7iXQnPq8nHNhZ2Q,4543
30
+ cocoindex/typing.py,sha256=lEQYIzAGVKQp6RnhyeopY9Q7xEED7yQj3ZMxvTPblV8,14200
31
+ cocoindex/user_app_loader.py,sha256=o2n25y7CGw9Qrb-RN6tiNlv2YJ9YLM8NSMhJZjLhhKQ,1914
32
+ cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
33
+ cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
34
+ cocoindex-0.2.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.9.4)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-abi3-manylinux_2_28_aarch64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ cocoindex=cocoindex.cli:cli
@@ -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.