markitdown-gc 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. markitdown_gc-0.2.0/.gitignore +171 -0
  2. markitdown_gc-0.2.0/LICENSE +21 -0
  3. markitdown_gc-0.2.0/PKG-INFO +137 -0
  4. markitdown_gc-0.2.0/README.md +60 -0
  5. markitdown_gc-0.2.0/ThirdPartyNotices.md +232 -0
  6. markitdown_gc-0.2.0/pyproject.toml +126 -0
  7. markitdown_gc-0.2.0/src/markitdown/GUIDE.md +93 -0
  8. markitdown_gc-0.2.0/src/markitdown/__about__.py +4 -0
  9. markitdown_gc-0.2.0/src/markitdown/__init__.py +34 -0
  10. markitdown_gc-0.2.0/src/markitdown/__main__.py +439 -0
  11. markitdown_gc-0.2.0/src/markitdown/_base_converter.py +109 -0
  12. markitdown_gc-0.2.0/src/markitdown/_exceptions.py +82 -0
  13. markitdown_gc-0.2.0/src/markitdown/_hwp_media.py +132 -0
  14. markitdown_gc-0.2.0/src/markitdown/_markitdown.py +861 -0
  15. markitdown_gc-0.2.0/src/markitdown/_media.py +67 -0
  16. markitdown_gc-0.2.0/src/markitdown/_stream_info.py +32 -0
  17. markitdown_gc-0.2.0/src/markitdown/_uri_utils.py +75 -0
  18. markitdown_gc-0.2.0/src/markitdown/converter_utils/__init__.py +0 -0
  19. markitdown_gc-0.2.0/src/markitdown/converter_utils/_image.py +19 -0
  20. markitdown_gc-0.2.0/src/markitdown/converter_utils/_xlsx_images.py +114 -0
  21. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/__init__.py +0 -0
  22. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/_images.py +118 -0
  23. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/math/__init__.py +0 -0
  24. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/math/latex_dict.py +291 -0
  25. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/math/omml.py +417 -0
  26. markitdown_gc-0.2.0/src/markitdown/converter_utils/docx/pre_process.py +290 -0
  27. markitdown_gc-0.2.0/src/markitdown/converters/__init__.py +56 -0
  28. markitdown_gc-0.2.0/src/markitdown/converters/_audio_converter.py +106 -0
  29. markitdown_gc-0.2.0/src/markitdown/converters/_bing_serp_converter.py +120 -0
  30. markitdown_gc-0.2.0/src/markitdown/converters/_csv_converter.py +133 -0
  31. markitdown_gc-0.2.0/src/markitdown/converters/_cu_converter.py +570 -0
  32. markitdown_gc-0.2.0/src/markitdown/converters/_doc_intel_converter.py +258 -0
  33. markitdown_gc-0.2.0/src/markitdown/converters/_docx_converter.py +163 -0
  34. markitdown_gc-0.2.0/src/markitdown/converters/_epub_converter.py +185 -0
  35. markitdown_gc-0.2.0/src/markitdown/converters/_exiftool.py +57 -0
  36. markitdown_gc-0.2.0/src/markitdown/converters/_html_converter.py +112 -0
  37. markitdown_gc-0.2.0/src/markitdown/converters/_hwp_converter.py +105 -0
  38. markitdown_gc-0.2.0/src/markitdown/converters/_image_converter.py +139 -0
  39. markitdown_gc-0.2.0/src/markitdown/converters/_ipynb_converter.py +103 -0
  40. markitdown_gc-0.2.0/src/markitdown/converters/_llm_caption.py +50 -0
  41. markitdown_gc-0.2.0/src/markitdown/converters/_markdownify.py +178 -0
  42. markitdown_gc-0.2.0/src/markitdown/converters/_outlook_msg_converter.py +349 -0
  43. markitdown_gc-0.2.0/src/markitdown/converters/_pdf_converter.py +593 -0
  44. markitdown_gc-0.2.0/src/markitdown/converters/_plain_text_converter.py +66 -0
  45. markitdown_gc-0.2.0/src/markitdown/converters/_pptx_converter.py +387 -0
  46. markitdown_gc-0.2.0/src/markitdown/converters/_rss_converter.py +488 -0
  47. markitdown_gc-0.2.0/src/markitdown/converters/_transcribe_audio.py +60 -0
  48. markitdown_gc-0.2.0/src/markitdown/converters/_wikipedia_converter.py +99 -0
  49. markitdown_gc-0.2.0/src/markitdown/converters/_xlsx_converter.py +279 -0
  50. markitdown_gc-0.2.0/src/markitdown/converters/_youtube_converter.py +256 -0
  51. markitdown_gc-0.2.0/src/markitdown/converters/_zip_converter.py +130 -0
  52. markitdown_gc-0.2.0/src/markitdown/ocr_triage.py +943 -0
  53. markitdown_gc-0.2.0/src/markitdown/py.typed +0 -0
@@ -0,0 +1,171 @@
1
+ .vscode
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ build/
14
+ develop-eggs/
15
+ dist/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+ share/python-wheels/
26
+ *.egg-info/
27
+ .installed.cfg
28
+ *.egg
29
+ MANIFEST
30
+
31
+ # PyInstaller
32
+ # Usually these files are written by a python script from a template
33
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py,cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+ .test-logs/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
113
+ .pdm.toml
114
+ .pdm-python
115
+ .pdm-build/
116
+
117
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
118
+ __pypackages__/
119
+
120
+ # Celery stuff
121
+ celerybeat-schedule
122
+ celerybeat.pid
123
+
124
+ # SageMath parsed files
125
+ *.sage.py
126
+
127
+ # Environments
128
+ .env
129
+ .venv
130
+ env/
131
+ venv/
132
+ ENV/
133
+ env.bak/
134
+ venv.bak/
135
+
136
+ # Spyder project settings
137
+ .spyderproject
138
+ .spyproject
139
+
140
+ # Rope project settings
141
+ .ropeproject
142
+
143
+ # mkdocs documentation
144
+ /site
145
+
146
+ # mypy
147
+ .mypy_cache/
148
+ .dmypy.json
149
+ dmypy.json
150
+
151
+ # Pyre type checker
152
+ .pyre/
153
+
154
+ # pytype static type analyzer
155
+ .pytype/
156
+
157
+ # Cython debug symbols
158
+ cython_debug/
159
+
160
+ # PyCharm
161
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
162
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
163
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
164
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
165
+ #.idea/
166
+ src/.DS_Store
167
+ .DS_Store
168
+ .cursorrules
169
+
170
+ # OCR triage work files (may contain document content)
171
+ ocr-work/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.5
2
+ Name: markitdown-gc
3
+ Version: 0.2.0
4
+ Summary: Utility tool for converting various files to Markdown
5
+ Project-URL: Documentation, https://github.com/greatgc-flow/markitdown#readme
6
+ Project-URL: Issues, https://github.com/greatgc-flow/markitdown/issues
7
+ Project-URL: Source, https://github.com/greatgc-flow/markitdown
8
+ Author-email: Adam Fourney <adamfo@microsoft.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ License-File: ThirdPartyNotices.md
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Programming Language :: Python :: 3.15
20
+ Classifier: Programming Language :: Python :: Implementation :: CPython
21
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
22
+ Requires-Python: <3.16,>=3.10
23
+ Requires-Dist: beautifulsoup4
24
+ Requires-Dist: certifi>=2026.10.19
25
+ Requires-Dist: charset-normalizer
26
+ Requires-Dist: defusedxml
27
+ Requires-Dist: magika<2,>=0.6.1; python_full_version < '3.15'
28
+ Requires-Dist: markdownify
29
+ Requires-Dist: requests
30
+ Provides-Extra: all
31
+ Requires-Dist: azure-ai-contentunderstanding>=1.2.0b1; extra == 'all'
32
+ Requires-Dist: azure-ai-documentintelligence; extra == 'all'
33
+ Requires-Dist: azure-identity; extra == 'all'
34
+ Requires-Dist: hwp-hwpx-parser<1.1,>=1.0; extra == 'all'
35
+ Requires-Dist: lxml; extra == 'all'
36
+ Requires-Dist: mammoth<2,>=1.12.2; extra == 'all'
37
+ Requires-Dist: olefile; extra == 'all'
38
+ Requires-Dist: openpyxl; extra == 'all'
39
+ Requires-Dist: pandas; extra == 'all'
40
+ Requires-Dist: pdfminer-six>=20251230; extra == 'all'
41
+ Requires-Dist: pdfplumber>=0.11.9; extra == 'all'
42
+ Requires-Dist: pydub; extra == 'all'
43
+ Requires-Dist: python-pptx; extra == 'all'
44
+ Requires-Dist: speechrecognition; extra == 'all'
45
+ Requires-Dist: xlrd; extra == 'all'
46
+ Requires-Dist: youtube-transcript-api~=1.2.3; (python_full_version < '3.15') and extra == 'all'
47
+ Provides-Extra: audio-transcription
48
+ Requires-Dist: pydub; extra == 'audio-transcription'
49
+ Requires-Dist: speechrecognition; extra == 'audio-transcription'
50
+ Provides-Extra: az-content-understanding
51
+ Requires-Dist: azure-ai-contentunderstanding>=1.2.0b1; extra == 'az-content-understanding'
52
+ Requires-Dist: azure-identity; extra == 'az-content-understanding'
53
+ Provides-Extra: az-doc-intel
54
+ Requires-Dist: azure-ai-documentintelligence; extra == 'az-doc-intel'
55
+ Requires-Dist: azure-identity; extra == 'az-doc-intel'
56
+ Provides-Extra: docx
57
+ Requires-Dist: lxml; extra == 'docx'
58
+ Requires-Dist: mammoth<2,>=1.12.2; extra == 'docx'
59
+ Provides-Extra: hwp
60
+ Requires-Dist: hwp-hwpx-parser<1.1,>=1.0; extra == 'hwp'
61
+ Provides-Extra: outlook
62
+ Requires-Dist: olefile; extra == 'outlook'
63
+ Provides-Extra: pdf
64
+ Requires-Dist: pdfminer-six>=20251230; extra == 'pdf'
65
+ Requires-Dist: pdfplumber>=0.11.9; extra == 'pdf'
66
+ Provides-Extra: pptx
67
+ Requires-Dist: python-pptx; extra == 'pptx'
68
+ Provides-Extra: xls
69
+ Requires-Dist: pandas; extra == 'xls'
70
+ Requires-Dist: xlrd; extra == 'xls'
71
+ Provides-Extra: xlsx
72
+ Requires-Dist: openpyxl; extra == 'xlsx'
73
+ Requires-Dist: pandas; extra == 'xlsx'
74
+ Provides-Extra: youtube-transcription
75
+ Requires-Dist: youtube-transcript-api~=1.2.3; (python_full_version < '3.15') and extra == 'youtube-transcription'
76
+ Description-Content-Type: text/markdown
77
+
78
+ # MarkItDown GC
79
+
80
+ > Unofficial fork of [Microsoft MarkItDown](https://github.com/microsoft/markitdown), maintained at [greatgc-flow/markitdown](https://github.com/greatgc-flow/markitdown). This fork is not affiliated with or endorsed by Microsoft.
81
+ > Install the `markitdown-gc` distribution. Do not install it together with upstream `markitdown` in the same environment: both provide the `markitdown` import and CLI, and the same plugin group. Use a fresh virtual environment.
82
+
83
+ > [!TIP]
84
+ > MarkItDown is a Python package and command-line utility for converting various files to Markdown (e.g., for indexing, text analysis, etc).
85
+ >
86
+ > For more information, and full documentation, see the project [README.md](https://github.com/greatgc-flow/markitdown) on GitHub.
87
+
88
+ > [!IMPORTANT]
89
+ > MarkItDown performs I/O with the privileges of the current process. Like open() or requests.get(), it will access resources that the process itself can access. Sanitize your inputs in untrusted environments, and call the narrowest `convert_*` function needed for your use case (e.g., `convert_stream()`, or `convert_local()`). See the [Security Considerations](https://github.com/greatgc-flow/markitdown#security-considerations) section of the documentation for more information.
90
+
91
+ ## Installation
92
+
93
+ From PyPI:
94
+
95
+ ```bash
96
+ pip install 'markitdown-gc[all]'
97
+ ```
98
+
99
+ HWP5/HWPX support is included in `[all]` or installed separately with `pip install 'markitdown-gc[hwp]'`. The backend is pure Python for all platforms. Tables use pipe rows (merged cells lose their spans), images become `[IMAGE]` placeholders, and note bodies are included. HWP < 5, encrypted/distribution documents, headers/footers, and exact layout are unsupported. See the project [HWP/HWPX documentation](https://github.com/greatgc-flow/markitdown#hwphwpx) for details.
100
+
101
+ From source:
102
+
103
+ ```bash
104
+ git clone https://github.com/greatgc-flow/markitdown.git
105
+ cd markitdown
106
+ pip install -e 'packages/markitdown[all]'
107
+ ```
108
+
109
+ ## Usage
110
+
111
+ ### Command-Line
112
+
113
+ ```bash
114
+ markitdown path-to-file.pdf > document.md
115
+ ```
116
+
117
+ ### Python API
118
+
119
+ ```python
120
+ from markitdown import MarkItDown
121
+
122
+ md = MarkItDown()
123
+ result = md.convert("test.xlsx")
124
+ print(result.markdown)
125
+ ```
126
+
127
+ ### More Information
128
+
129
+ For more information, and full documentation, see the project [README.md](https://github.com/greatgc-flow/markitdown) on GitHub.
130
+
131
+ ## Trademarks
132
+
133
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
134
+ trademarks or logos is subject to and must follow
135
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
136
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
137
+ Any use of third-party trademarks or logos are subject to those third-party's policies.
@@ -0,0 +1,60 @@
1
+ # MarkItDown GC
2
+
3
+ > Unofficial fork of [Microsoft MarkItDown](https://github.com/microsoft/markitdown), maintained at [greatgc-flow/markitdown](https://github.com/greatgc-flow/markitdown). This fork is not affiliated with or endorsed by Microsoft.
4
+ > Install the `markitdown-gc` distribution. Do not install it together with upstream `markitdown` in the same environment: both provide the `markitdown` import and CLI, and the same plugin group. Use a fresh virtual environment.
5
+
6
+ > [!TIP]
7
+ > MarkItDown is a Python package and command-line utility for converting various files to Markdown (e.g., for indexing, text analysis, etc).
8
+ >
9
+ > For more information, and full documentation, see the project [README.md](https://github.com/greatgc-flow/markitdown) on GitHub.
10
+
11
+ > [!IMPORTANT]
12
+ > MarkItDown performs I/O with the privileges of the current process. Like open() or requests.get(), it will access resources that the process itself can access. Sanitize your inputs in untrusted environments, and call the narrowest `convert_*` function needed for your use case (e.g., `convert_stream()`, or `convert_local()`). See the [Security Considerations](https://github.com/greatgc-flow/markitdown#security-considerations) section of the documentation for more information.
13
+
14
+ ## Installation
15
+
16
+ From PyPI:
17
+
18
+ ```bash
19
+ pip install 'markitdown-gc[all]'
20
+ ```
21
+
22
+ HWP5/HWPX support is included in `[all]` or installed separately with `pip install 'markitdown-gc[hwp]'`. The backend is pure Python for all platforms. Tables use pipe rows (merged cells lose their spans), images become `[IMAGE]` placeholders, and note bodies are included. HWP < 5, encrypted/distribution documents, headers/footers, and exact layout are unsupported. See the project [HWP/HWPX documentation](https://github.com/greatgc-flow/markitdown#hwphwpx) for details.
23
+
24
+ From source:
25
+
26
+ ```bash
27
+ git clone https://github.com/greatgc-flow/markitdown.git
28
+ cd markitdown
29
+ pip install -e 'packages/markitdown[all]'
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ### Command-Line
35
+
36
+ ```bash
37
+ markitdown path-to-file.pdf > document.md
38
+ ```
39
+
40
+ ### Python API
41
+
42
+ ```python
43
+ from markitdown import MarkItDown
44
+
45
+ md = MarkItDown()
46
+ result = md.convert("test.xlsx")
47
+ print(result.markdown)
48
+ ```
49
+
50
+ ### More Information
51
+
52
+ For more information, and full documentation, see the project [README.md](https://github.com/greatgc-flow/markitdown) on GitHub.
53
+
54
+ ## Trademarks
55
+
56
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
57
+ trademarks or logos is subject to and must follow
58
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
59
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
60
+ Any use of third-party trademarks or logos are subject to those third-party's policies.
@@ -0,0 +1,232 @@
1
+ # THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
2
+
3
+ **Do Not Translate or Localize**
4
+
5
+ This project incorporates components from the projects listed below. The original copyright notices and the licenses
6
+ under which MarkItDown received such components are set forth below. MarkItDown reserves all rights not expressly
7
+ granted herein, whether by implication, estoppel or otherwise.
8
+
9
+ 1.dwml (https://github.com/xiilei/dwml)
10
+
11
+ dwml NOTICES AND INFORMATION BEGIN HERE
12
+
13
+ -----------------------------------------
14
+
15
+ NOTE 1: What follows is a verbatim copy of dwml's LICENSE file, as it appeared on March 28th, 2025 - including
16
+ placeholders for the copyright owner and year.
17
+
18
+ NOTE 2: The Apache License, Version 2.0, requires that modifications to the dwml source code be documented.
19
+ The following section summarizes these changes. The full details are available in the MarkItDown source code
20
+ repository under PR #1160 (https://github.com/microsoft/markitdown/pull/1160)
21
+
22
+ This project incorporates `dwml/latex_dict.py` and `dwml/omml.py` files without any additional logic modifications (which
23
+ lives in `packages/markitdown/src/markitdown/converter_utils/docx/math` location). However, we have reformatted the code
24
+ according to `black` code formatter. From `tests/docx.py` file, we have used `DOCXML_ROOT` XML namespaces and the rest of
25
+ the file is not used.
26
+
27
+ -----------------------------------------
28
+
29
+ Apache License
30
+ Version 2.0, January 2004
31
+ http://www.apache.org/licenses/
32
+
33
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
34
+
35
+ 1. Definitions.
36
+
37
+ "License" shall mean the terms and conditions for use, reproduction,
38
+ and distribution as defined by Sections 1 through 9 of this document.
39
+
40
+ "Licensor" shall mean the copyright owner or entity authorized by
41
+ the copyright owner that is granting the License.
42
+
43
+ "Legal Entity" shall mean the union of the acting entity and all
44
+ other entities that control, are controlled by, or are under common
45
+ control with that entity. For the purposes of this definition,
46
+ "control" means (i) the power, direct or indirect, to cause the
47
+ direction or management of such entity, whether by contract or
48
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
49
+ outstanding shares, or (iii) beneficial ownership of such entity.
50
+
51
+ "You" (or "Your") shall mean an individual or Legal Entity
52
+ exercising permissions granted by this License.
53
+
54
+ "Source" form shall mean the preferred form for making modifications,
55
+ including but not limited to software source code, documentation
56
+ source, and configuration files.
57
+
58
+ "Object" form shall mean any form resulting from mechanical
59
+ transformation or translation of a Source form, including but
60
+ not limited to compiled object code, generated documentation,
61
+ and conversions to other media types.
62
+
63
+ "Work" shall mean the work of authorship, whether in Source or
64
+ Object form, made available under the License, as indicated by a
65
+ copyright notice that is included in or attached to the work
66
+ (an example is provided in the Appendix below).
67
+
68
+ "Derivative Works" shall mean any work, whether in Source or Object
69
+ form, that is based on (or derived from) the Work and for which the
70
+ editorial revisions, annotations, elaborations, or other modifications
71
+ represent, as a whole, an original work of authorship. For the purposes
72
+ of this License, Derivative Works shall not include works that remain
73
+ separable from, or merely link (or bind by name) to the interfaces of,
74
+ the Work and Derivative Works thereof.
75
+
76
+ "Contribution" shall mean any work of authorship, including
77
+ the original version of the Work and any modifications or additions
78
+ to that Work or Derivative Works thereof, that is intentionally
79
+ submitted to Licensor for inclusion in the Work by the copyright owner
80
+ or by an individual or Legal Entity authorized to submit on behalf of
81
+ the copyright owner. For the purposes of this definition, "submitted"
82
+ means any form of electronic, verbal, or written communication sent
83
+ to the Licensor or its representatives, including but not limited to
84
+ communication on electronic mailing lists, source code control systems,
85
+ and issue tracking systems that are managed by, or on behalf of, the
86
+ Licensor for the purpose of discussing and improving the Work, but
87
+ excluding communication that is conspicuously marked or otherwise
88
+ designated in writing by the copyright owner as "Not a Contribution."
89
+
90
+ "Contributor" shall mean Licensor and any individual or Legal Entity
91
+ on behalf of whom a Contribution has been received by Licensor and
92
+ subsequently incorporated within the Work.
93
+
94
+ 2. Grant of Copyright License. Subject to the terms and conditions of
95
+ this License, each Contributor hereby grants to You a perpetual,
96
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
97
+ copyright license to reproduce, prepare Derivative Works of,
98
+ publicly display, publicly perform, sublicense, and distribute the
99
+ Work and such Derivative Works in Source or Object form.
100
+
101
+ 3. Grant of Patent License. Subject to the terms and conditions of
102
+ this License, each Contributor hereby grants to You a perpetual,
103
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ (except as stated in this section) patent license to make, have made,
105
+ use, offer to sell, sell, import, and otherwise transfer the Work,
106
+ where such license applies only to those patent claims licensable
107
+ by such Contributor that are necessarily infringed by their
108
+ Contribution(s) alone or by combination of their Contribution(s)
109
+ with the Work to which such Contribution(s) was submitted. If You
110
+ institute patent litigation against any entity (including a
111
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
112
+ or a Contribution incorporated within the Work constitutes direct
113
+ or contributory patent infringement, then any patent licenses
114
+ granted to You under this License for that Work shall terminate
115
+ as of the date such litigation is filed.
116
+
117
+ 4. Redistribution. You may reproduce and distribute copies of the
118
+ Work or Derivative Works thereof in any medium, with or without
119
+ modifications, and in Source or Object form, provided that You
120
+ meet the following conditions:
121
+
122
+ (a) You must give any other recipients of the Work or
123
+ Derivative Works a copy of this License; and
124
+
125
+ (b) You must cause any modified files to carry prominent notices
126
+ stating that You changed the files; and
127
+
128
+ (c) You must retain, in the Source form of any Derivative Works
129
+ that You distribute, all copyright, patent, trademark, and
130
+ attribution notices from the Source form of the Work,
131
+ excluding those notices that do not pertain to any part of
132
+ the Derivative Works; and
133
+
134
+ (d) If the Work includes a "NOTICE" text file as part of its
135
+ distribution, then any Derivative Works that You distribute must
136
+ include a readable copy of the attribution notices contained
137
+ within such NOTICE file, excluding those notices that do not
138
+ pertain to any part of the Derivative Works, in at least one
139
+ of the following places: within a NOTICE text file distributed
140
+ as part of the Derivative Works; within the Source form or
141
+ documentation, if provided along with the Derivative Works; or,
142
+ within a display generated by the Derivative Works, if and
143
+ wherever such third-party notices normally appear. The contents
144
+ of the NOTICE file are for informational purposes only and
145
+ do not modify the License. You may add Your own attribution
146
+ notices within Derivative Works that You distribute, alongside
147
+ or as an addendum to the NOTICE text from the Work, provided
148
+ that such additional attribution notices cannot be construed
149
+ as modifying the License.
150
+
151
+ You may add Your own copyright statement to Your modifications and
152
+ may provide additional or different license terms and conditions
153
+ for use, reproduction, or distribution of Your modifications, or
154
+ for any such Derivative Works as a whole, provided Your use,
155
+ reproduction, and distribution of the Work otherwise complies with
156
+ the conditions stated in this License.
157
+
158
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
159
+ any Contribution intentionally submitted for inclusion in the Work
160
+ by You to the Licensor shall be under the terms and conditions of
161
+ this License, without any additional terms or conditions.
162
+ Notwithstanding the above, nothing herein shall supersede or modify
163
+ the terms of any separate license agreement you may have executed
164
+ with Licensor regarding such Contributions.
165
+
166
+ 6. Trademarks. This License does not grant permission to use the trade
167
+ names, trademarks, service marks, or product names of the Licensor,
168
+ except as required for reasonable and customary use in describing the
169
+ origin of the Work and reproducing the content of the NOTICE file.
170
+
171
+ 7. Disclaimer of Warranty. Unless required by applicable law or
172
+ agreed to in writing, Licensor provides the Work (and each
173
+ Contributor provides its Contributions) on an "AS IS" BASIS,
174
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
175
+ implied, including, without limitation, any warranties or conditions
176
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
177
+ PARTICULAR PURPOSE. You are solely responsible for determining the
178
+ appropriateness of using or redistributing the Work and assume any
179
+ risks associated with Your exercise of permissions under this License.
180
+
181
+ 8. Limitation of Liability. In no event and under no legal theory,
182
+ whether in tort (including negligence), contract, or otherwise,
183
+ unless required by applicable law (such as deliberate and grossly
184
+ negligent acts) or agreed to in writing, shall any Contributor be
185
+ liable to You for damages, including any direct, indirect, special,
186
+ incidental, or consequential damages of any character arising as a
187
+ result of this License or out of the use or inability to use the
188
+ Work (including but not limited to damages for loss of goodwill,
189
+ work stoppage, computer failure or malfunction, or any and all
190
+ other commercial damages or losses), even if such Contributor
191
+ has been advised of the possibility of such damages.
192
+
193
+ 9. Accepting Warranty or Additional Liability. While redistributing
194
+ the Work or Derivative Works thereof, You may choose to offer,
195
+ and charge a fee for, acceptance of support, warranty, indemnity,
196
+ or other liability obligations and/or rights consistent with this
197
+ License. However, in accepting such obligations, You may act only
198
+ on Your own behalf and on Your sole responsibility, not on behalf
199
+ of any other Contributor, and only if You agree to indemnify,
200
+ defend, and hold each Contributor harmless for any liability
201
+ incurred by, or claims asserted against, such Contributor by reason
202
+ of your accepting any such warranty or additional liability.
203
+
204
+ END OF TERMS AND CONDITIONS
205
+
206
+ APPENDIX: How to apply the Apache License to your work.
207
+
208
+ To apply the Apache License to your work, attach the following
209
+ boilerplate notice, with the fields enclosed by brackets "{}"
210
+ replaced with your own identifying information. (Don't include
211
+ the brackets!) The text should be enclosed in the appropriate
212
+ comment syntax for the file format. We also recommend that a
213
+ file or class name and description of purpose be included on the
214
+ same "printed page" as the copyright notice for easier
215
+ identification within third-party archives.
216
+
217
+ Copyright {yyyy} {name of copyright owner}
218
+
219
+ Licensed under the Apache License, Version 2.0 (the "License");
220
+ you may not use this file except in compliance with the License.
221
+ You may obtain a copy of the License at
222
+
223
+ http://www.apache.org/licenses/LICENSE-2.0
224
+
225
+ Unless required by applicable law or agreed to in writing, software
226
+ distributed under the License is distributed on an "AS IS" BASIS,
227
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228
+ See the License for the specific language governing permissions and
229
+ limitations under the License.
230
+
231
+ -----------------------------------------
232
+ END OF dwml NOTICES AND INFORMATION