PyMI 1.0.5__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.
- PyMI-1.0.5/.gitattributes +1 -0
- PyMI-1.0.5/AUTHORS +5 -0
- PyMI-1.0.5/ChangeLog +278 -0
- PyMI-1.0.5/LICENSE +176 -0
- PyMI-1.0.5/MI/MI++.cpp +1310 -0
- PyMI-1.0.5/MI/MI++.h +353 -0
- PyMI-1.0.5/MI/MI.vcxproj +556 -0
- PyMI-1.0.5/MI/MI.vcxproj.filters +51 -0
- PyMI-1.0.5/MI/MIExceptions.cpp +73 -0
- PyMI-1.0.5/MI/MIExceptions.h +57 -0
- PyMI-1.0.5/MI/MIValue.cpp +260 -0
- PyMI-1.0.5/MI/MIValue.h +52 -0
- PyMI-1.0.5/MI/PythonDir.props +8 -0
- PyMI-1.0.5/MI/ReadMe.txt +37 -0
- PyMI-1.0.5/MI/stdafx.cpp +8 -0
- PyMI-1.0.5/MI/stdafx.h +17 -0
- PyMI-1.0.5/MI/targetver.h +8 -0
- PyMI-1.0.5/PKG-INFO +203 -0
- PyMI-1.0.5/PyMI/Application.cpp +298 -0
- PyMI-1.0.5/PyMI/Application.h +14 -0
- PyMI-1.0.5/PyMI/Callbacks.cpp +71 -0
- PyMI-1.0.5/PyMI/Callbacks.h +18 -0
- PyMI-1.0.5/PyMI/Class.cpp +212 -0
- PyMI-1.0.5/PyMI/Class.h +16 -0
- PyMI-1.0.5/PyMI/DestinationOptions.cpp +267 -0
- PyMI-1.0.5/PyMI/DestinationOptions.h +17 -0
- PyMI-1.0.5/PyMI/Instance.cpp +321 -0
- PyMI-1.0.5/PyMI/Instance.h +16 -0
- PyMI-1.0.5/PyMI/MiError.cpp +30 -0
- PyMI-1.0.5/PyMI/MiError.h +20 -0
- PyMI-1.0.5/PyMI/Operation.cpp +224 -0
- PyMI-1.0.5/PyMI/Operation.h +16 -0
- PyMI-1.0.5/PyMI/OperationOptions.cpp +184 -0
- PyMI-1.0.5/PyMI/OperationOptions.h +17 -0
- PyMI-1.0.5/PyMI/PyMI.cpp +209 -0
- PyMI-1.0.5/PyMI/PyMI.h +6 -0
- PyMI-1.0.5/PyMI/PyMI.vcxproj +832 -0
- PyMI-1.0.5/PyMI/PyMI.vcxproj.filters +115 -0
- PyMI-1.0.5/PyMI/PythonDir.props +54 -0
- PyMI-1.0.5/PyMI/README.rst +175 -0
- PyMI-1.0.5/PyMI/Serializer.cpp +161 -0
- PyMI-1.0.5/PyMI/Serializer.h +16 -0
- PyMI-1.0.5/PyMI/Session.cpp +470 -0
- PyMI-1.0.5/PyMI/Session.h +18 -0
- PyMI-1.0.5/PyMI/Utils.cpp +517 -0
- PyMI-1.0.5/PyMI/Utils.h +22 -0
- PyMI-1.0.5/PyMI/setup_vs.py +48 -0
- PyMI-1.0.5/PyMI/src/mi/__init__.py +1 -0
- PyMI-1.0.5/PyMI/stdafx.cpp +8 -0
- PyMI-1.0.5/PyMI/stdafx.h +41 -0
- PyMI-1.0.5/PyMI/targetver.h +8 -0
- PyMI-1.0.5/PyMI.egg-info/PKG-INFO +203 -0
- PyMI-1.0.5/PyMI.egg-info/SOURCES.txt +77 -0
- PyMI-1.0.5/PyMI.egg-info/dependency_links.txt +1 -0
- PyMI-1.0.5/PyMI.egg-info/not-zip-safe +1 -0
- PyMI-1.0.5/PyMI.egg-info/pbr.json +1 -0
- PyMI-1.0.5/PyMI.egg-info/requires.txt +2 -0
- PyMI-1.0.5/PyMI.egg-info/top_level.txt +2 -0
- PyMI-1.0.5/PyMI.sln +104 -0
- PyMI-1.0.5/README.rst +13 -0
- PyMI-1.0.5/requirements.txt +2 -0
- PyMI-1.0.5/setup.cfg +33 -0
- PyMI-1.0.5/setup.py +48 -0
- PyMI-1.0.5/wmi/__init__.py +935 -0
- PyMI-1.0.5/wmi/samples/benchmark.py +27 -0
- PyMI-1.0.5/wmi/samples/benchmark2.py +110 -0
- PyMI-1.0.5/wmi/samples/benchmark3.py +87 -0
- PyMI-1.0.5/wmi/samples/custom_operation_options.py +25 -0
- PyMI-1.0.5/wmi/tests/__init__.py +0 -0
- PyMI-1.0.5/wmi/tests/functional/__init__.py +0 -0
- PyMI-1.0.5/wmi/tests/functional/test_base.py +46 -0
- PyMI-1.0.5/wmi/tests/functional/test_basic_ops.py +65 -0
- PyMI-1.0.5/wmi/tests/functional/test_timeouts.py +69 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text eol=lf
|
PyMI-1.0.5/AUTHORS
ADDED
PyMI-1.0.5/ChangeLog
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
CHANGES
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
1.0.5
|
|
5
|
+
-----
|
|
6
|
+
|
|
7
|
+
* Markup fixes
|
|
8
|
+
* [trivial] Fix attribute error handling
|
|
9
|
+
* Refactor build process
|
|
10
|
+
* EventWatcher: avoid using weakref conn
|
|
11
|
+
* Fix event listener crash
|
|
12
|
+
* Fix deleting WMI instances
|
|
13
|
+
* Add Py3.7 build config
|
|
14
|
+
* Implements \_\_str\_\_ and \_\_repr\_\_ method for PyMI objects
|
|
15
|
+
* Do an explicit unicode cast
|
|
16
|
+
* Use proper casing including MI.h
|
|
17
|
+
* Fix Instance::Clone declaration in header
|
|
18
|
+
* Add noexcept to what() const
|
|
19
|
+
* Update README with Python packages needed on build
|
|
20
|
+
* Fix Win32 and x64 release and debug build
|
|
21
|
+
* Adds Python 3.6 x64 build
|
|
22
|
+
* Enable eventlet nb mode by default only if 'thread' is patched
|
|
23
|
+
|
|
24
|
+
1.0.4
|
|
25
|
+
-----
|
|
26
|
+
|
|
27
|
+
* Add custom operation options support
|
|
28
|
+
* Enable credentials support
|
|
29
|
+
* Add basic functional tests
|
|
30
|
+
* Ensure destination options are preserved when having references
|
|
31
|
+
* Add operation timeout support
|
|
32
|
+
* Set destination options timeouts
|
|
33
|
+
* Greenify PyMI
|
|
34
|
+
* Adds computer, user, password arguments to WMI constructor
|
|
35
|
+
|
|
36
|
+
1.0.3
|
|
37
|
+
-----
|
|
38
|
+
|
|
39
|
+
* Properly handle null error messages
|
|
40
|
+
* Fixes moniker parsing when value is missing quotes
|
|
41
|
+
|
|
42
|
+
1.0.2
|
|
43
|
+
-----
|
|
44
|
+
|
|
45
|
+
* Properly handle accessing instance/class invalid attributes
|
|
46
|
+
* Expose MI exceptions to the Python module
|
|
47
|
+
* Fix line endings
|
|
48
|
+
* Forbid setting array items to NULL
|
|
49
|
+
|
|
50
|
+
1.0.2.dev1
|
|
51
|
+
----------
|
|
52
|
+
|
|
53
|
+
* Provide a reference to the previous instance in case of events
|
|
54
|
+
|
|
55
|
+
1.0.1
|
|
56
|
+
-----
|
|
57
|
+
|
|
58
|
+
* Fixes compatibility with the WMI module
|
|
59
|
+
* Removes unnecessary try-except
|
|
60
|
+
* Adds support for DestinationOptions in the wmi wrapper
|
|
61
|
+
* Adds support for DestinationOptions in PyMI
|
|
62
|
+
* Adds support for DestinationOptions in MI
|
|
63
|
+
* Normalize line endings to Unix style
|
|
64
|
+
|
|
65
|
+
1.0.0
|
|
66
|
+
-----
|
|
67
|
+
|
|
68
|
+
* Fixes get\_class when the class has no attributes
|
|
69
|
+
|
|
70
|
+
1.0.0.dev15
|
|
71
|
+
-----------
|
|
72
|
+
|
|
73
|
+
* wmi: Makes \_get\_method\_params thread safe
|
|
74
|
+
* Revert "wmi: Makes \_get\_method\_params thread safe"
|
|
75
|
+
* wmi: Makes \_get\_method\_params thread safe
|
|
76
|
+
* Adds mi.pdb to the PyMI package
|
|
77
|
+
* Adds watch\_for in the Connection class
|
|
78
|
+
|
|
79
|
+
1.0.0.dev14
|
|
80
|
+
-----------
|
|
81
|
+
|
|
82
|
+
* Fixes issue in \_EventWatcher
|
|
83
|
+
* Update com error excepinfo
|
|
84
|
+
|
|
85
|
+
1.0.0.dev13
|
|
86
|
+
-----------
|
|
87
|
+
|
|
88
|
+
* Improves exception handling
|
|
89
|
+
|
|
90
|
+
1.0.0.dev12
|
|
91
|
+
-----------
|
|
92
|
+
|
|
93
|
+
* Fixes issue in RelPath with ':' chars
|
|
94
|
+
* Removes obsolete TODO comment
|
|
95
|
+
|
|
96
|
+
1.0.0.dev11
|
|
97
|
+
-----------
|
|
98
|
+
|
|
99
|
+
* Adds a WMI SWbemObjectPath replacement
|
|
100
|
+
* Adds get\_server\_name for Class and Instance
|
|
101
|
+
|
|
102
|
+
1.0.0.dev10
|
|
103
|
+
-----------
|
|
104
|
+
|
|
105
|
+
* Adds workaround for methods returning void
|
|
106
|
+
* More checks for empty base class
|
|
107
|
+
* Checks for empty base class
|
|
108
|
+
* Adds error\_code to MIException
|
|
109
|
+
* Replaces CIM\_Error with MSFT\_WmiError
|
|
110
|
+
|
|
111
|
+
1.0.0.dev9
|
|
112
|
+
----------
|
|
113
|
+
|
|
114
|
+
* Adds parent class and better error handling
|
|
115
|
+
* Adds supports for integers in GetPath()
|
|
116
|
+
|
|
117
|
+
1.0.0.dev8
|
|
118
|
+
----------
|
|
119
|
+
|
|
120
|
+
* Adds loops for GetNextInstance
|
|
121
|
+
* Adds Operation::HasMoreResults()
|
|
122
|
+
* Adds workaround for Delete\_()
|
|
123
|
+
* Fixes issue in WMI call WQL syntax
|
|
124
|
+
|
|
125
|
+
1.0.0.dev7
|
|
126
|
+
----------
|
|
127
|
+
|
|
128
|
+
* Enter critical section after PyEval\_SaveThread
|
|
129
|
+
* Uses single MI application
|
|
130
|
+
* Adds critical sections for MI API calls
|
|
131
|
+
* Removes PyType\_GenericNew usage
|
|
132
|
+
* Adds weakref connection refs
|
|
133
|
+
|
|
134
|
+
1.0.0.dev6
|
|
135
|
+
----------
|
|
136
|
+
|
|
137
|
+
* Wraps MI exceptions with x\_wmi
|
|
138
|
+
|
|
139
|
+
1.0.0.dev5
|
|
140
|
+
----------
|
|
141
|
+
|
|
142
|
+
* Adds WMI instance Delete\_ method
|
|
143
|
+
|
|
144
|
+
1.0.0.dev4
|
|
145
|
+
----------
|
|
146
|
+
|
|
147
|
+
* Adds comment for setting ScopeContextOwner
|
|
148
|
+
* Sets Python errors for failed type checks
|
|
149
|
+
* Adds PyCheckNone
|
|
150
|
+
* Declares OperationOptions::Clone as const
|
|
151
|
+
* Adds VLD comment in stdafx.c
|
|
152
|
+
* Adds get\_namespace Class and Instance methods
|
|
153
|
+
* Improves GIL usage for multithreading
|
|
154
|
+
* Improves benchmark2 sample
|
|
155
|
+
* Clones instances returned from method calls
|
|
156
|
+
* Fixes issue with None type in method invoke
|
|
157
|
+
* Uses the v140 platform toolset by default
|
|
158
|
+
* Converts strings / unicode to numeric MI types
|
|
159
|
+
* Passes None for invoke empty params
|
|
160
|
+
* Fixes issue when invoking methods with empty params
|
|
161
|
+
* Adds Class methods support
|
|
162
|
+
* Removes unused import
|
|
163
|
+
* Fixes WMIDCOM method invoke issue on 2012 R2
|
|
164
|
+
* Revert "Sets MI protocol bases on target host or local OS"
|
|
165
|
+
* Sets MI protocol bases on target host or local OS
|
|
166
|
+
* Sorts method call return params by name
|
|
167
|
+
* Removes old samples
|
|
168
|
+
* Samples cleanup
|
|
169
|
+
* Retrieves class key using MI\_FLAG\_KEY
|
|
170
|
+
* Fixes NULL DECREF issue in Callbacks.py
|
|
171
|
+
|
|
172
|
+
1.0.0.dev3
|
|
173
|
+
----------
|
|
174
|
+
|
|
175
|
+
* Fixes issue in returning empty WMI events
|
|
176
|
+
* Fixes wmi module caching issues
|
|
177
|
+
* Renames className param to class\_name
|
|
178
|
+
* Adds MIValue type
|
|
179
|
+
* Fixes memory leak in serializer
|
|
180
|
+
* Additional std::shared\_ptr usage
|
|
181
|
+
* Fixes wrong type in Instance::operator[]
|
|
182
|
+
* Copies mi.pdb to src dir on release build
|
|
183
|
+
* Refactoring for std::shared\_ptr
|
|
184
|
+
* Removes scope owner reference in SetOutOfScope
|
|
185
|
+
* Fixes memory leak in PythonMICallbacks
|
|
186
|
+
* Adds scoped items and context owner
|
|
187
|
+
* Adds private copy constructors
|
|
188
|
+
* Fixes wrong exception cast operation
|
|
189
|
+
* Fixes WMI wrapper events
|
|
190
|
+
* Fixes Python 2.7 build issue
|
|
191
|
+
* Adds OperationOptions and event timeout in PyMI
|
|
192
|
+
* Adds OperationOptions in MI++
|
|
193
|
+
* Implements watch\_for in wmi module
|
|
194
|
+
* Renames a Session\_Subscribe parameter
|
|
195
|
+
* Adds sync subscription support
|
|
196
|
+
* Allows Python threads on long calls
|
|
197
|
+
* Adds MI event subcribe
|
|
198
|
+
* Minor update in README.rst
|
|
199
|
+
* Adds a top level README.rst
|
|
200
|
+
* Adds README.rst
|
|
201
|
+
|
|
202
|
+
1.0.0.dev2
|
|
203
|
+
----------
|
|
204
|
+
|
|
205
|
+
* Adds Python packaging
|
|
206
|
+
* Adds VM NIC switch port binding and default SG rules
|
|
207
|
+
* Adds WMI class cache and instance put, set
|
|
208
|
+
* Fixes namespace issue on new instances
|
|
209
|
+
* Improves benchmark3 test
|
|
210
|
+
* Adds some more type conversions
|
|
211
|
+
* Adds more Python type conversions
|
|
212
|
+
* Fixes WMI path unescaping
|
|
213
|
+
* Adds WMI str to bool conversion
|
|
214
|
+
* Adds WMI \_Instance path()
|
|
215
|
+
* Adds element assignment \_\_str\_\_ conversion
|
|
216
|
+
* Improves instance path escaping
|
|
217
|
+
* Adds WMI.py element unwrap
|
|
218
|
+
* Adds MI\_ type constants
|
|
219
|
+
* Fixes WMI moniker regex when the class is None
|
|
220
|
+
* Adds dummy WMI watch\_for
|
|
221
|
+
* Adds dynamic buffers in GetIndexOrName
|
|
222
|
+
* Fixes Py 2.7 module init naming
|
|
223
|
+
* Adds PythonDir project property sheet
|
|
224
|
+
* Fixes MI release CRT linking
|
|
225
|
+
* Updates benchmark3 to Liberty branch
|
|
226
|
+
* Adds Python 3.4 support
|
|
227
|
+
* Adds Python 3 support
|
|
228
|
+
* Fixes bool compiler warning
|
|
229
|
+
* Replaces unicode with u.text\_type
|
|
230
|
+
* Adds license file
|
|
231
|
+
* Improves samples
|
|
232
|
+
* Handle instance and ref types in invoke
|
|
233
|
+
* Moves sample files to Samples dir
|
|
234
|
+
* Sets wmi.py Unix EOL convention
|
|
235
|
+
* Adds WMI.py
|
|
236
|
+
* Adds Instance.get\_element
|
|
237
|
+
* Fixes string conversion issues
|
|
238
|
+
* Explicitly set RTTI default flag
|
|
239
|
+
* Normalizes method keywords
|
|
240
|
+
* Adds get\_instance
|
|
241
|
+
* Fixes None type issue
|
|
242
|
+
* Adds additional test modules
|
|
243
|
+
* Adds wmi Python module
|
|
244
|
+
* Adds MI serializer support
|
|
245
|
+
* Adds type conversions
|
|
246
|
+
* Fixes instance item assign issue
|
|
247
|
+
* Adds pyc files to .gitignore
|
|
248
|
+
* Adds IsClosed
|
|
249
|
+
* Fixes instance / class access issues
|
|
250
|
+
* Adds protocol Python module attributes
|
|
251
|
+
* Improves information hiding
|
|
252
|
+
* Disable direct object allocation
|
|
253
|
+
* Updates samples
|
|
254
|
+
* Adds Py with statement support
|
|
255
|
+
* Adds excetion handling
|
|
256
|
+
* More fixes for PyCFuntion functions
|
|
257
|
+
* Fixes some PyCFuntion return values
|
|
258
|
+
* Adds NewInstanceFromClass Py wrapper
|
|
259
|
+
* Adds Python instance CRUD methods
|
|
260
|
+
* Adds NewInstanceFromClass
|
|
261
|
+
* Adds more instance CRUD
|
|
262
|
+
* Adds associators support
|
|
263
|
+
* Fixes GetPath issue
|
|
264
|
+
* Adds benchmark2.py
|
|
265
|
+
* Adds instances values and array of instances
|
|
266
|
+
* Element data refactoring and some array support
|
|
267
|
+
* Adds NewMethodParamsInstance in MI++
|
|
268
|
+
* Adds params creation method
|
|
269
|
+
* Session creation refactoring
|
|
270
|
+
* PyMI refactoring
|
|
271
|
+
* Adds Python Class
|
|
272
|
+
* Adds GetMethodInfo
|
|
273
|
+
* Adds Py2MI and setattro
|
|
274
|
+
* Adds method call
|
|
275
|
+
* Some refactoring
|
|
276
|
+
* Adds simple type conversions
|
|
277
|
+
* Updated WiP
|
|
278
|
+
* WiP
|
PyMI-1.0.5/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
|