pyreqwest 0.10.1__cp313-cp313-win_arm64.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.
- pyreqwest/__init__.py +3 -0
- pyreqwest/__init__.pyi +1 -0
- pyreqwest/_pyreqwest.cp313-win_arm64.pyd +0 -0
- pyreqwest/bytes/__init__.py +16 -0
- pyreqwest/bytes/__init__.pyi +106 -0
- pyreqwest/client/__init__.py +19 -0
- pyreqwest/client/__init__.pyi +351 -0
- pyreqwest/client/types.py +54 -0
- pyreqwest/compatibility/__init__.py +4 -0
- pyreqwest/compatibility/httpx/__init__.py +11 -0
- pyreqwest/compatibility/httpx/_internal.py +60 -0
- pyreqwest/compatibility/httpx/transport.py +154 -0
- pyreqwest/cookie/__init__.py +5 -0
- pyreqwest/cookie/__init__.pyi +174 -0
- pyreqwest/exceptions/__init__.py +196 -0
- pyreqwest/http/__init__.py +19 -0
- pyreqwest/http/__init__.pyi +344 -0
- pyreqwest/logging/__init__.py +7 -0
- pyreqwest/logging/__init__.pyi +4 -0
- pyreqwest/middleware/__init__.py +5 -0
- pyreqwest/middleware/__init__.pyi +12 -0
- pyreqwest/middleware/asgi/__init__.py +5 -0
- pyreqwest/middleware/asgi/asgi.py +168 -0
- pyreqwest/middleware/types.py +26 -0
- pyreqwest/multipart/__init__.py +5 -0
- pyreqwest/multipart/__init__.pyi +75 -0
- pyreqwest/proxy/__init__.py +5 -0
- pyreqwest/proxy/__init__.pyi +47 -0
- pyreqwest/py.typed +0 -0
- pyreqwest/pytest_plugin/__init__.py +8 -0
- pyreqwest/pytest_plugin/internal/__init__.py +0 -0
- pyreqwest/pytest_plugin/internal/assert_eq.py +6 -0
- pyreqwest/pytest_plugin/internal/assert_message.py +123 -0
- pyreqwest/pytest_plugin/internal/matcher.py +34 -0
- pyreqwest/pytest_plugin/internal/plugin.py +15 -0
- pyreqwest/pytest_plugin/mock.py +512 -0
- pyreqwest/pytest_plugin/types.py +26 -0
- pyreqwest/request/__init__.py +29 -0
- pyreqwest/request/__init__.pyi +218 -0
- pyreqwest/response/__init__.py +19 -0
- pyreqwest/response/__init__.pyi +157 -0
- pyreqwest/runtime/__init__.py +15 -0
- pyreqwest/runtime/__init__.pyi +25 -0
- pyreqwest/simple/__init__.py +1 -0
- pyreqwest/simple/request/__init__.py +21 -0
- pyreqwest/simple/request/__init__.pyi +29 -0
- pyreqwest/simple/sync_request/__init__.py +21 -0
- pyreqwest/simple/sync_request/__init__.pyi +29 -0
- pyreqwest/types.py +12 -0
- pyreqwest-0.10.1.dist-info/METADATA +148 -0
- pyreqwest-0.10.1.dist-info/RECORD +54 -0
- pyreqwest-0.10.1.dist-info/WHEEL +4 -0
- pyreqwest-0.10.1.dist-info/entry_points.txt +2 -0
- pyreqwest-0.10.1.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyreqwest
|
|
3
|
+
Version: 0.10.1
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Programming Language :: Python
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
13
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
14
|
+
Classifier: Programming Language :: Python :: Implementation :: GraalPy
|
|
15
|
+
Classifier: Programming Language :: Rust
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
20
|
+
Classifier: Operating System :: MacOS
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Summary: Powerful and fast Rust based HTTP client
|
|
24
|
+
Author-email: Markus Sintonen <pyreqwest@gmail.com>
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
27
|
+
Project-URL: Homepage, https://github.com/MarkusSintonen/pyreqwest
|
|
28
|
+
Project-URL: Source, https://github.com/MarkusSintonen/pyreqwest
|
|
29
|
+
|
|
30
|
+
<p align="center">
|
|
31
|
+
<img width="250" alt="logo" src="https://raw.githubusercontent.com/MarkusSintonen/pyreqwest/refs/heads/main/docs/logo.png" />
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
[](https://codecov.io/github/markussintonen/pyreqwest)
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
pyreqwest - Powerful and fast Rust based HTTP client. Built on top of and inspired by [reqwest](https://github.com/seanmonstar/reqwest).
|
|
39
|
+
|
|
40
|
+
## Why
|
|
41
|
+
|
|
42
|
+
- No reinvention of the wheel - built on top of widely used reqwest and other Rust HTTP crates
|
|
43
|
+
- Secure and fast - no C-extension code, no Python code/dependencies, no `unsafe` code
|
|
44
|
+
- Ergonomic and easy to use - similar API as in reqwest, fully type-annotated
|
|
45
|
+
- Testing ergonomics - mocking included, can also connect into ASGI apps
|
|
46
|
+
|
|
47
|
+
Using this is a good choice when:
|
|
48
|
+
|
|
49
|
+
- You care about throughput and latency, especially in high concurrency scenarios
|
|
50
|
+
- You want a single solution to serve all your HTTP client needs
|
|
51
|
+
|
|
52
|
+
This is not a good choice when:
|
|
53
|
+
|
|
54
|
+
- You want a pure Python solution allowing debugging of the HTTP client internals
|
|
55
|
+
- You use alternative Python implementations or Python version older than 3.11
|
|
56
|
+
|
|
57
|
+
## Features
|
|
58
|
+
|
|
59
|
+
- High performance, see [notes](https://github.com/MarkusSintonen/pyreqwest/blob/main/docs/performance.md) and [benchmarks](https://github.com/MarkusSintonen/pyreqwest/blob/main/docs/benchmarks.md)
|
|
60
|
+
- Asynchronous and synchronous HTTP clients
|
|
61
|
+
- Customizable via middlewares and custom JSON serializers
|
|
62
|
+
- Ergonomic as `reqwest`
|
|
63
|
+
- HTTP/1.1 and HTTP/2 support (also HTTP/3 when it [stabilizes](https://docs.rs/reqwest/latest/reqwest/#unstable-features))
|
|
64
|
+
- Mocking and testing utilities (can also connect to ASGI apps)
|
|
65
|
+
- Fully type-safe with Python type hints
|
|
66
|
+
- Full test coverage
|
|
67
|
+
- Free threading, see [notes](https://github.com/MarkusSintonen/pyreqwest/blob/main/docs/performance.md#python-313-free-threading)
|
|
68
|
+
|
|
69
|
+
### Standard HTTP features you would expect
|
|
70
|
+
|
|
71
|
+
- HTTPS support (using [rustls](https://github.com/rustls/rustls))
|
|
72
|
+
- Request and response body streaming
|
|
73
|
+
- Connection pooling
|
|
74
|
+
- JSON, URLs, Headers, Cookies etc. (all serializers in Rust)
|
|
75
|
+
- Automatic decompression (zstd, gzip, brotli, deflate)
|
|
76
|
+
- Automatic response decoding (charset detection)
|
|
77
|
+
- Multipart form support
|
|
78
|
+
- Proxy support
|
|
79
|
+
- Redirects
|
|
80
|
+
- Timeouts
|
|
81
|
+
- Authentication (Basic, Bearer)
|
|
82
|
+
- Cookie management
|
|
83
|
+
|
|
84
|
+
## Quickstart
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
# uv add pyreqwest
|
|
88
|
+
|
|
89
|
+
from pyreqwest.client import ClientBuilder, SyncClientBuilder
|
|
90
|
+
|
|
91
|
+
async def example_async():
|
|
92
|
+
async with ClientBuilder().error_for_status(True).build() as client:
|
|
93
|
+
response = await client.get("https://httpbun.com/get").query({"q": "val"}).build().send()
|
|
94
|
+
print(await response.json())
|
|
95
|
+
|
|
96
|
+
def example_sync():
|
|
97
|
+
with SyncClientBuilder().error_for_status(True).build() as client:
|
|
98
|
+
print(client.get("https://httpbun.com/get").query({"q": "val"}).build().send().json())
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Context manager usage is optional, but recommended. Also `close()` methods are available.
|
|
102
|
+
|
|
103
|
+
#### Mocking in pytest
|
|
104
|
+
|
|
105
|
+
```python
|
|
106
|
+
from pyreqwest.client import ClientBuilder
|
|
107
|
+
from pyreqwest.pytest_plugin import ClientMocker
|
|
108
|
+
|
|
109
|
+
async def test_client(client_mocker: ClientMocker) -> None:
|
|
110
|
+
client_mocker.get(path="/api").with_body_text("Hello Mock")
|
|
111
|
+
|
|
112
|
+
async with ClientBuilder().build() as client:
|
|
113
|
+
response = await client.get("http://example.invalid/api").build().send()
|
|
114
|
+
assert response.status == 200 and await response.text() == "Hello Mock"
|
|
115
|
+
assert client_mocker.get_call_count() == 1
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Manual mocking is available via `ClientMocker.create_mocker(MonkeyPatch)`.
|
|
119
|
+
|
|
120
|
+
#### Simple request interface
|
|
121
|
+
|
|
122
|
+
This is only recommended for simple use-cases such as scripts. Usually, the full client API should be used which reuses
|
|
123
|
+
connections and has other optimizations.
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
# Sync example
|
|
127
|
+
from pyreqwest.simple.sync_request import pyreqwest_get
|
|
128
|
+
response = pyreqwest_get("https://httpbun.com/get").query({"q": "val"}).send()
|
|
129
|
+
print(response.json())
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
# Async example
|
|
134
|
+
from pyreqwest.simple.request import pyreqwest_get
|
|
135
|
+
response = await pyreqwest_get("https://httpbun.com/get").query({"q": "val"}).send()
|
|
136
|
+
print(await response.json())
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Documentation
|
|
140
|
+
|
|
141
|
+
See [docs](https://markussintonen.github.io/pyreqwest/pyreqwest.html)
|
|
142
|
+
|
|
143
|
+
See [examples](https://github.com/MarkusSintonen/pyreqwest/tree/main/examples)
|
|
144
|
+
|
|
145
|
+
## Compatibility with other libraries
|
|
146
|
+
|
|
147
|
+
See [compatibility docs](https://markussintonen.github.io/pyreqwest/pyreqwest/compatibility.html)
|
|
148
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
pyreqwest\__init__.py,sha256=eGEf2-1V_yx4UyPwU2UjupijArEzCti_v1Nv3aV6J_c,89
|
|
2
|
+
pyreqwest\__init__.pyi,sha256=xq3DTJlvvVHWjbZ1EvMjKJBpN-UQO3z1Rulqaz2NN6w,18
|
|
3
|
+
pyreqwest\_pyreqwest.cp313-win_arm64.pyd,sha256=udl2x395t3gC4xVWO1JO0nK4v_fwa981_FSnjc_deto,8212992
|
|
4
|
+
pyreqwest\bytes\__init__.py,sha256=ntGCRQKovZ-K-wXdSK1K57rg5bx-ZrcT1w5iYFtkCuQ,481
|
|
5
|
+
pyreqwest\bytes\__init__.pyi,sha256=gxDCQgg-6h0378Ae_PSI7ZA5JGeeZTs6tQMA7RZatpo,4675
|
|
6
|
+
pyreqwest\client\__init__.py,sha256=cE7VQMmsddCjE2cfYY6cBK9D5mZF2AQOUm_tuAIBlOc,344
|
|
7
|
+
pyreqwest\client\__init__.pyi,sha256=MxsD2wWMZQcprxxCg0_OKCNEoIAALNZk3LCoaQU93m0,15183
|
|
8
|
+
pyreqwest\client\types.py,sha256=8H09ror2467lY06R05i4nYdBjCxfPFTaBXM5eonfQRk,1529
|
|
9
|
+
pyreqwest\compatibility\__init__.py,sha256=lniPz0OJHpk9fTmv350YPpLLOvZmQ4VeupuV8SKSIak,106
|
|
10
|
+
pyreqwest\compatibility\httpx\__init__.py,sha256=JY2PbnZ-_Z6OODCjRbgxSpVhslF9dVQPMEBTl95-9ak,345
|
|
11
|
+
pyreqwest\compatibility\httpx\_internal.py,sha256=8UjBQY25gyJw9OvbxiuWeI_gzmN6-Zc2qgdr93Gcs9Y,2280
|
|
12
|
+
pyreqwest\compatibility\httpx\transport.py,sha256=p0WtAdwAbci0iweL47bREkjghPEwon7xSryvz9_v-QU,6826
|
|
13
|
+
pyreqwest\cookie\__init__.py,sha256=NdajTPf8sko4nSdXY89r0TKSz_QO-xSXdyaZ0u9d05Q,133
|
|
14
|
+
pyreqwest\cookie\__init__.pyi,sha256=qB0B3zd6UbjW_NRKzUBbmdF1n-JkTYH4EDlUk4C_22k,6575
|
|
15
|
+
pyreqwest\exceptions\__init__.py,sha256=dT4NdNpdEW9Qv45YjQgafmyegZu37pR5HcXSKqZO3nQ,5556
|
|
16
|
+
pyreqwest\http\__init__.py,sha256=lFWYXlQpT8jSbIRshPYQhx8ltsR1m4lOxw6shZN3--U,337
|
|
17
|
+
pyreqwest\http\__init__.pyi,sha256=wkajOiyXCX9N1NjoT2yydSqR2vghEfvR7yhseegOX_I,14142
|
|
18
|
+
pyreqwest\logging\__init__.py,sha256=AU0dBCjbhNpvR8Ufk3fqrj5dpkJoiWXEtNFtrbb9vuI,132
|
|
19
|
+
pyreqwest\logging\__init__.pyi,sha256=yUVdeynulG3QSJl9Yd9wrkIVmz6sjWMUoAH-cjhCuhM,194
|
|
20
|
+
pyreqwest\middleware\__init__.py,sha256=IIz35nVhQhxDqxZj6BC_gnjQepMK4Ax8WDNdnJ4a6kw,123
|
|
21
|
+
pyreqwest\middleware\__init__.pyi,sha256=sAz6xotp2nxS267M1EGhb5PkuxxbtY5TQyafSQfSkl0,488
|
|
22
|
+
pyreqwest\middleware\asgi\__init__.py,sha256=aAAV48-xNnYJgNmiwCg5bxLq7D0FY4BYhpQ2NyS_5Gg,100
|
|
23
|
+
pyreqwest\middleware\asgi\asgi.py,sha256=wRiB_0cGNT0WxZcORLyOOG4VvGak-eGDrMBznrplvkE,6632
|
|
24
|
+
pyreqwest\middleware\types.py,sha256=Yksexmozwl_ucIOuuRWYkDBcIFeaH0nXo2J0lV5Z3FI,1037
|
|
25
|
+
pyreqwest\multipart\__init__.py,sha256=XaFLJJAy1FhloQqI3RLuc5p_zr6Aw-bqc1ODpbRF1Ek,151
|
|
26
|
+
pyreqwest\multipart\__init__.pyi,sha256=nHlBhJP2_zOObvBCShfHHoS0AIHm-OSBaE4q-oC52mE,2744
|
|
27
|
+
pyreqwest\proxy\__init__.py,sha256=enhEGdumB5VgbJx6pf7lSrqTVxDItnFEa51-uz9lbAo,107
|
|
28
|
+
pyreqwest\proxy\__init__.pyi,sha256=nVH03xPZX9hat784-pElzlXie_iwwc9yTfIhR08z03Q,1700
|
|
29
|
+
pyreqwest\py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
|
+
pyreqwest\pytest_plugin\__init__.py,sha256=0HsZ00qNC_7hMJCb_9IHDGDxVHqlZIVkybUxXRLcZAQ,148
|
|
31
|
+
pyreqwest\pytest_plugin\internal\__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
+
pyreqwest\pytest_plugin\internal\assert_eq.py,sha256=SP7sC0IORGg0jVNE3Jia8FGOKNM8Lte1x178PL0usSM,177
|
|
33
|
+
pyreqwest\pytest_plugin\internal\assert_message.py,sha256=kN_ESDPiYr3PuxRDuuBPOUYp9qo9ajPKWcrhyu7jpZY,4976
|
|
34
|
+
pyreqwest\pytest_plugin\internal\matcher.py,sha256=rvMyO6TN-FSRgMjz-dwGn1DgdlV6hRLa-G1fS88Wm7o,1255
|
|
35
|
+
pyreqwest\pytest_plugin\internal\plugin.py,sha256=QbhfD7r_Rqpy4JOush_CZvQw0KBXszPlkBY-UK45Izo,463
|
|
36
|
+
pyreqwest\pytest_plugin\mock.py,sha256=fY-X9ozT4IArsKPUtoe_wTJXiNw_-WrOpRMURgK-6NI,21507
|
|
37
|
+
pyreqwest\pytest_plugin\types.py,sha256=mxA2ygDDq_I1BJAuxEAz7f9PMMWjG8hUksy1sXsTSfE,921
|
|
38
|
+
pyreqwest\request\__init__.py,sha256=sJ2uYkVIdbPatbEVgzqVTfnKM-cqrKPX-sS56lfDqaQ,633
|
|
39
|
+
pyreqwest\request\__init__.pyi,sha256=dePNK27AUkRsS66Tijsf5Yhdg-GfQ0CE-isXvd7KPUQ,8086
|
|
40
|
+
pyreqwest\response\__init__.py,sha256=MnPdK7_Cng-u_QwFEq5mq2P1TDi4466kHXt7s05xpiY,376
|
|
41
|
+
pyreqwest\response\__init__.pyi,sha256=tJUCSgnyeGdkNd5O2v1JtclpEJY8UwasqX-gJl6HYK8,5896
|
|
42
|
+
pyreqwest\runtime\__init__.py,sha256=6s1kPDoxVDLzjL5AjXTJzTX_vFFCaOmR9txtRtCrmXA,456
|
|
43
|
+
pyreqwest\runtime\__init__.pyi,sha256=QXJS_DSabcjHxOUo819jvJgCyOCrtc0bflrjxL1FKJo,1193
|
|
44
|
+
pyreqwest\simple\__init__.py,sha256=JCgu6mFHIHefvUkBGY_5Cv13nUUdd6jvffOLawPRPMU,53
|
|
45
|
+
pyreqwest\simple\request\__init__.py,sha256=EuNnWDiKIcwR9lSPMTCzxorSclTFORh8Zi_v3H4OXoc,449
|
|
46
|
+
pyreqwest\simple\request\__init__.pyi,sha256=P3nxU4UIvYxRGKGY0pEaZZYAu4Kpv8tkgcNwJj0MdD4,1256
|
|
47
|
+
pyreqwest\simple\sync_request\__init__.py,sha256=5vsmUgRcGGrSPKR1VYAogkr9HZfYNHFLdyyRrMMd4VE,453
|
|
48
|
+
pyreqwest\simple\sync_request\__init__.pyi,sha256=2UYr-aPtiEQBwViD2lgTLv3uE4o92Ouw-a1oXVEoIzM,1288
|
|
49
|
+
pyreqwest\types.py,sha256=nOog4FQyVbak9aOT-o-sLfr8JQBROwaaiB6Zz2Oxau0,655
|
|
50
|
+
pyreqwest-0.10.1.dist-info\METADATA,sha256=EuiHkRRZxCJ3gYrf7tMRkR2ODlNz3UWAPioWK0YaZPc,5969
|
|
51
|
+
pyreqwest-0.10.1.dist-info\WHEEL,sha256=r5MXJhdqhuO_DKptvaw0ZM7_-QxJ_Zoxzk_9U4fMV84,97
|
|
52
|
+
pyreqwest-0.10.1.dist-info\entry_points.txt,sha256=x6BM9g8m805tw6VqKvSe_Kgd2qp4Eq3moyIoFnETeoE,61
|
|
53
|
+
pyreqwest-0.10.1.dist-info\licenses\LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
54
|
+
pyreqwest-0.10.1.dist-info\RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for 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.
|