redqueue 0.10.0__tar.gz → 0.11.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 (61) hide show
  1. redqueue-0.11.0/CHANGELOG.md +147 -0
  2. redqueue-0.11.0/CODE_OF_CONDUCT.md +40 -0
  3. redqueue-0.11.0/CONTRIBUTING.md +87 -0
  4. {redqueue-0.10.0 → redqueue-0.11.0}/LICENSE +158 -158
  5. redqueue-0.11.0/PKG-INFO +346 -0
  6. redqueue-0.11.0/README-zh-CN.md +303 -0
  7. redqueue-0.11.0/README.md +313 -0
  8. {redqueue-0.10.0 → redqueue-0.11.0}/docs/API.md +312 -249
  9. {redqueue-0.10.0 → redqueue-0.11.0}/docs/RELEASE.md +151 -131
  10. redqueue-0.11.0/examples/README.md +50 -0
  11. redqueue-0.11.0/examples/__init__.py +4 -0
  12. redqueue-0.11.0/examples/async_list_queue.py +42 -0
  13. redqueue-0.11.0/examples/common.py +16 -0
  14. redqueue-0.11.0/examples/compatibility_check.py +40 -0
  15. redqueue-0.11.0/examples/custom_serializer.py +50 -0
  16. redqueue-0.11.0/examples/delayed_tasks.py +38 -0
  17. redqueue-0.11.0/examples/monitoring_hooks.py +56 -0
  18. redqueue-0.11.0/examples/stream_queue.py +42 -0
  19. redqueue-0.11.0/examples/sync_list_queue.py +63 -0
  20. {redqueue-0.10.0 → redqueue-0.11.0}/pyproject.toml +75 -72
  21. {redqueue-0.10.0 → redqueue-0.11.0}/requirements.txt +3 -0
  22. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/__init__.py +75 -72
  23. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/_version.py +6 -6
  24. redqueue-0.11.0/src/redqueue/async_client.py +386 -0
  25. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/async_delay.py +131 -8
  26. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/async_list.py +139 -8
  27. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/async_stream.py +216 -14
  28. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/base.py +55 -1
  29. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/delay.py +143 -13
  30. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/list.py +141 -8
  31. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/stream.py +210 -14
  32. redqueue-0.11.0/src/redqueue/client.py +371 -0
  33. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/compat.py +128 -8
  34. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/config.py +101 -8
  35. redqueue-0.11.0/src/redqueue/connection.py +132 -0
  36. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/exceptions.py +76 -7
  37. redqueue-0.11.0/src/redqueue/message.py +130 -0
  38. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/monitoring.py +79 -6
  39. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/serialization.py +69 -4
  40. redqueue-0.11.0/tests/README.md +58 -0
  41. redqueue-0.11.0/tests/test_availability.py +253 -0
  42. redqueue-0.11.0/tests/test_performance.py +127 -0
  43. {redqueue-0.10.0 → redqueue-0.11.0}/tests/test_project_skeleton.py +474 -113
  44. redqueue-0.11.0/tests/test_real_redis_availability.py +123 -0
  45. redqueue-0.11.0/tests/test_real_redis_performance.py +166 -0
  46. redqueue-0.10.0/CHANGELOG.md +0 -70
  47. redqueue-0.10.0/PKG-INFO +0 -312
  48. redqueue-0.10.0/README.md +0 -279
  49. redqueue-0.10.0/src/redqueue/async_client.py +0 -194
  50. redqueue-0.10.0/src/redqueue/client.py +0 -168
  51. redqueue-0.10.0/src/redqueue/message.py +0 -67
  52. redqueue-0.10.0/tests/README.md +0 -22
  53. {redqueue-0.10.0 → redqueue-0.11.0}/.github/workflows/ci.yml +0 -0
  54. {redqueue-0.10.0 → redqueue-0.11.0}/.gitignore +0 -0
  55. {redqueue-0.10.0 → redqueue-0.11.0}/NOTICE +0 -0
  56. {redqueue-0.10.0 → redqueue-0.11.0}/scripts/check.py +0 -0
  57. {redqueue-0.10.0 → redqueue-0.11.0}/src/redqueue/backends/__init__.py +0 -0
  58. {redqueue-0.10.0 → redqueue-0.11.0}/tests/__init__.py +0 -0
  59. {redqueue-0.10.0 → redqueue-0.11.0}/tests/fakes.py +0 -0
  60. {redqueue-0.10.0 → redqueue-0.11.0}/tests/test_backend_contracts.py +0 -0
  61. {redqueue-0.10.0 → redqueue-0.11.0}/tests/test_integration_redis.py +0 -0
@@ -0,0 +1,147 @@
1
+ # Changelog / 版本变更记录
2
+
3
+ All notable public release changes are documented here.
4
+
5
+ 所有公开发布版本的重要变更都会记录在此文件中。
6
+
7
+ Development versions are tracked separately from formal release versions.
8
+ 开发版本与正式版本分开管理。
9
+
10
+ ## [0.11.0] - 2026-06-21
11
+
12
+ ### Added
13
+
14
+ - Added synchronous `RedisConnectionManager` and asynchronous
15
+ `AsyncRedisConnectionManager` for shared Redis connection pool ownership.
16
+ - Added client context manager support for explicit sync and async resource
17
+ cleanup.
18
+ - Added `connection_manager` and `pool_options` support to sync and async
19
+ `from_url` constructors.
20
+ - Added `README-zh-CN.md` and converted `README.md` to English-only content.
21
+ - Added `CONTRIBUTING.md` with the project branch model and contribution
22
+ workflow.
23
+ - Added `CODE_OF_CONDUCT.md`.
24
+
25
+ ### Changed
26
+
27
+ - Updated formal release version to `0.11.0`.
28
+ - Documented the branch model: `main`, `develop`, `feature/*`, `release/*`,
29
+ and `hotfix/*`.
30
+
31
+ ### 新增
32
+
33
+ - 新增同步 `RedisConnectionManager` 和异步 `AsyncRedisConnectionManager`,
34
+ 用于共享 Redis 连接池所有权管理。
35
+ - 新增客户端上下文管理器支持,用于显式释放同步和异步资源。
36
+ - 同步和异步 `from_url` 构造器新增 `connection_manager` 和 `pool_options`
37
+ 支持。
38
+ - 新增 `README-zh-CN.md`,并将 `README.md` 调整为纯英文文档。
39
+ - 新增 `CONTRIBUTING.md`,记录项目分支模型和贡献流程。
40
+ - 新增 `CODE_OF_CONDUCT.md`。
41
+
42
+ ### 变更
43
+
44
+ - 正式版本更新为 `0.11.0`。
45
+ - 记录分支模型:`main`、`develop`、`feature/*`、`release/*` 和 `hotfix/*`。
46
+
47
+ ## [0.10.1] - 2026-06-20
48
+
49
+ ### Fixed
50
+
51
+ - Fixed Redis List `ack`, `nack`, `retry`, and dead-letter requeue when custom
52
+ serializers do not produce deterministic bytes.
53
+ - Fixed delayed task scheduling cleanup so payload keys are removed if `ZADD`
54
+ fails after `SET`.
55
+ - Fixed Streams dead-letter reads and moves by ensuring the consumer group also
56
+ exists on the dead-letter stream.
57
+ - Fixed async client creation monitoring so `AsyncQueueClient` emits the same
58
+ `client.created` event as the synchronous client.
59
+ - Removed duplicate delay scheduling monitoring events from the synchronous
60
+ client facade.
61
+ - Normalized internal Redis Streams entry ids returned as bytes.
62
+
63
+ ### 修复
64
+
65
+ - 修复自定义序列化器输出字节不稳定时,Redis List `ack`、`nack`、`retry`
66
+ 和死信重放无法精确删除原始消息的问题。
67
+ - 修复延迟任务在 `SET` 成功但 `ZADD` 失败时残留 payload key 的问题。
68
+ - 修复 Streams 死信读取和搬移前未确保死信 stream 消费组存在的问题。
69
+ - 修复异步客户端创建时未与同步客户端一致发出 `client.created` 监控事件的问题。
70
+ - 移除同步客户端门面层重复发出的延迟调度监控事件。
71
+ - 统一规范化 Redis Streams 返回的 bytes 类型 entry id。
72
+
73
+ ### Validation
74
+
75
+ - `python -m ruff check .`
76
+ - `PYTHONPATH=src python -m mypy`
77
+ - `PYTHONPATH=src python -m pytest`
78
+ - `REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m integration`
79
+
80
+ ### 验证
81
+
82
+ - `python -m ruff check .`
83
+ - `PYTHONPATH=src python -m mypy`
84
+ - `PYTHONPATH=src python -m pytest`
85
+ - `REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m integration`
86
+
87
+ ## [0.10.0] - 2026-06-20
88
+
89
+ ### Added
90
+
91
+ - Initial public release of RedQueue.
92
+ - Synchronous `QueueClient` and asynchronous `AsyncQueueClient`.
93
+ - Redis List backend with reliable processing, ack, nack, retry, recovery, and
94
+ dead-letter support.
95
+ - Redis Streams backend with consumer groups, ack, retry, dead-letter support,
96
+ and pending recovery.
97
+ - Delayed tasks based on Redis Sorted Set.
98
+ - Redis version and capability detection through `INFO server`.
99
+ - Unified exception hierarchy with structured context.
100
+ - JSON serializer and custom serializer protocol.
101
+ - Monitoring hook system with safe wrapper, in-memory hook, and composite hook.
102
+ - Unit, contract, asynchronous, and opt-in Redis integration tests.
103
+ - GitHub Actions CI and local quality check script.
104
+
105
+ ### 新增
106
+
107
+ - RedQueue 首个公开发布版本。
108
+ - 同步 `QueueClient` 与异步 `AsyncQueueClient`。
109
+ - Redis List 后端,支持可靠处理、ack、nack、retry、恢复和死信。
110
+ - Redis Streams 后端,支持消费组、ack、retry、死信和 pending 恢复。
111
+ - 基于 Redis Sorted Set 的延迟任务。
112
+ - 通过 `INFO server` 进行 Redis 版本与能力探测。
113
+ - 带结构化上下文的统一异常体系。
114
+ - JSON 序列化器与自定义序列化协议。
115
+ - 监控 hook 系统,包含安全包装、内存 hook 和组合 hook。
116
+ - 单元测试、契约测试、异步测试和可选 Redis 集成测试。
117
+ - GitHub Actions CI 与本地质量检查脚本。
118
+
119
+ ### Compatibility
120
+
121
+ - Python `>=3.9`.
122
+ - Runtime dependency `redis==6.4.0`.
123
+ - Redis Streams require Redis `>=5.0`.
124
+ - Redis Streams `XAUTOCLAIM` and List `BLMOVE` are used when Redis `>=6.2`.
125
+ - Delayed tasks use Redis Sorted Set.
126
+
127
+ ### 兼容性
128
+
129
+ - Python `>=3.9`。
130
+ - 运行依赖 `redis==6.4.0`。
131
+ - Redis Streams 要求 Redis `>=5.0`。
132
+ - Redis `>=6.2` 时使用 Streams `XAUTOCLAIM` 与 List `BLMOVE`。
133
+ - 延迟任务使用 Redis Sorted Set。
134
+
135
+ ### Validation
136
+
137
+ - `python -m ruff check .`
138
+ - `PYTHONPATH=src python -m mypy`
139
+ - `PYTHONPATH=src python -m pytest`
140
+ - `REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m integration`
141
+
142
+ ### 验证
143
+
144
+ - `python -m ruff check .`
145
+ - `PYTHONPATH=src python -m mypy`
146
+ - `PYTHONPATH=src python -m pytest`
147
+ - `REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m integration`
@@ -0,0 +1,40 @@
1
+ # Code of Conduct
2
+
3
+ RedQueue follows a simple contributor covenant: be respectful, direct, and
4
+ focused on improving the project.
5
+
6
+ ## Expected Behavior
7
+
8
+ - Use welcoming and inclusive language.
9
+ - Be respectful of different experience levels and viewpoints.
10
+ - Give and receive technical feedback with concrete reasoning.
11
+ - Keep discussions focused on the code, documentation, tests, and project
12
+ outcomes.
13
+ - Assume good intent, but correct issues clearly when they affect quality,
14
+ safety, or maintainability.
15
+
16
+ ## Unacceptable Behavior
17
+
18
+ - Harassment, threats, insults, or discriminatory language.
19
+ - Personal attacks or sustained disruption of project discussions.
20
+ - Publishing private information without explicit permission.
21
+ - Sharing credentials, tokens, or sensitive operational data.
22
+ - Any behavior that makes collaboration unsafe or unproductive.
23
+
24
+ ## Scope
25
+
26
+ This code of conduct applies in project repositories, issues, pull requests,
27
+ discussion channels, release processes, and other spaces representing RedQueue.
28
+
29
+ ## Enforcement
30
+
31
+ Maintainers may remove comments, close issues, reject pull requests, or restrict
32
+ participation when behavior violates this code of conduct. Enforcement should be
33
+ proportional, documented where appropriate, and focused on restoring productive
34
+ collaboration.
35
+
36
+ ## Reporting
37
+
38
+ Report issues through the project issue tracker or by contacting the maintainer
39
+ listed in the project metadata. Do not include sensitive personal information in
40
+ public reports.
@@ -0,0 +1,87 @@
1
+ # Contributing to RedQueue
2
+
3
+ Thank you for contributing to RedQueue. This project favors small, well-tested
4
+ changes that preserve Redis compatibility and clear resource ownership.
5
+
6
+ ## Branch Model
7
+
8
+ RedQueue uses a lightweight Git Flow model:
9
+
10
+ - `main`: stable release branch and the latest formal release. Release branches
11
+ and urgent hotfixes merge here.
12
+ - `develop`: integration branch for the next minor release.
13
+ - `feature/<name>`: feature branches created from `develop` and merged back to
14
+ `develop`.
15
+ - `release/<minor>`: release stabilization branches such as `release/0.11`.
16
+ - `hotfix/<version>`: urgent patch branches created from `main`, then merged
17
+ back to both `main` and `develop`.
18
+
19
+ ## Workflow
20
+
21
+ 1. Create feature branches from `develop`.
22
+ 2. Keep changes focused and avoid unrelated refactors.
23
+ 3. Add or update tests for behavioral changes.
24
+ 4. Update documentation when public APIs or workflows change.
25
+ 5. Open a pull request into `develop` for regular work, or into the active
26
+ `release/<minor>` branch for release stabilization fixes.
27
+ 6. After a release is stabilized, merge `release/<minor>` into `main`, tag the
28
+ release from `main`, and publish the package.
29
+
30
+ ## Versioning
31
+
32
+ - Development versions use `0.1x.xdevN`.
33
+ - Formal releases use `0.1x.x`.
34
+ - Development and formal release version streams are independent.
35
+ - Patch releases fix defects.
36
+ - Minor releases may add compatible features.
37
+
38
+ ## Quality Checks
39
+
40
+ Run the local quality gate before opening a pull request:
41
+
42
+ ```bash
43
+ PYTHONPATH=src python scripts/check.py
44
+ ```
45
+
46
+ Run Redis integration tests when Redis behavior changes:
47
+
48
+ ```bash
49
+ REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m integration
50
+ ```
51
+
52
+ Run real Redis availability and performance tests when queue reliability or
53
+ connection behavior changes:
54
+
55
+ ```bash
56
+ REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m "integration and availability"
57
+ REDQUEUE_REDIS_URL=redis://127.0.0.1:6379/0 PYTHONPATH=src python -m pytest -m "integration and performance"
58
+ ```
59
+
60
+ ## Python Source Requirements
61
+
62
+ Every Python source file must include:
63
+
64
+ ```python
65
+ # SPDX-License-Identifier: Apache-2.0
66
+ # Author: SpringMirror-pear
67
+ ```
68
+
69
+ Use Google-style docstrings for public classes, functions, and non-trivial
70
+ internal helpers.
71
+
72
+ ## Compatibility Expectations
73
+
74
+ - Python runtime support starts at `>=3.9`.
75
+ - Redis Streams require Redis `>=5.0`.
76
+ - Redis 5.x must continue to use `XPENDING`/`XCLAIM` fallback for pending
77
+ recovery.
78
+ - Redis `>=6.2` may use `XAUTOCLAIM` and `BLMOVE`.
79
+ - Keep sync and async APIs aligned unless there is a documented reason not to.
80
+
81
+ ## Pull Request Checklist
82
+
83
+ - Tests cover the changed behavior.
84
+ - `ruff`, `mypy`, and `pytest` pass.
85
+ - Public docs are updated when public behavior changes.
86
+ - Changelog entries are added for release branches.
87
+ - No credentials, tokens, local Redis data, or build artifacts are committed.
@@ -1,158 +1,158 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- https://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, and
10
- distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
- owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all other entities
16
- that control, are controlled by, or are under common control with that entity.
17
- For the purposes of this definition, "control" means (i) the power, direct or
18
- indirect, to cause the direction or management of such entity, whether by
19
- contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
- outstanding shares, or (iii) beneficial ownership of such entity.
21
-
22
- "You" (or "Your") shall mean an individual or Legal Entity exercising
23
- permissions granted by this License.
24
-
25
- "Source" form shall mean the preferred form for making modifications, including
26
- but not limited to software source code, documentation source, and configuration
27
- files.
28
-
29
- "Object" form shall mean any form resulting from mechanical transformation or
30
- translation of a Source form, including but not limited to compiled object code,
31
- generated documentation, and conversions to other media types.
32
-
33
- "Work" shall mean the work of authorship, whether in Source or Object form,
34
- made available under the License, as indicated by a copyright notice that is
35
- included in or attached to the work.
36
-
37
- "Derivative Works" shall mean any work, whether in Source or Object form, that
38
- is based on (or derived from) the Work and for which the editorial revisions,
39
- annotations, elaborations, or other modifications represent, as a whole, an
40
- original work of authorship. For the purposes of this License, Derivative Works
41
- shall not include works that remain separable from, or merely link (or bind by
42
- name) to the interfaces of, the Work and Derivative Works thereof.
43
-
44
- "Contribution" shall mean any work of authorship, including the original version
45
- of the Work and any modifications or additions to that Work or Derivative Works
46
- thereof, that is intentionally submitted to Licensor for inclusion in the Work
47
- by the copyright owner or by an individual or Legal Entity authorized to submit
48
- on behalf of the copyright owner. For the purposes of this definition,
49
- "submitted" means any form of electronic, verbal, or written communication sent
50
- to the Licensor or its representatives, including but not limited to
51
- communication on electronic mailing lists, source code control systems, and
52
- issue tracking systems that are managed by, or on behalf of, the Licensor for
53
- the purpose of discussing and improving the Work, but excluding communication
54
- that is conspicuously marked or otherwise designated in writing by the copyright
55
- owner as "Not a Contribution."
56
-
57
- "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58
- of whom a Contribution has been received by Licensor and subsequently
59
- incorporated within the Work.
60
-
61
- 2. Grant of Copyright License. Subject to the terms and conditions of this
62
- License, each Contributor hereby grants to You a perpetual, worldwide,
63
- non-exclusive, no-charge, royalty-free, irrevocable copyright license to
64
- reproduce, prepare Derivative Works of, publicly display, publicly perform,
65
- sublicense, and distribute the Work and such Derivative Works in Source or
66
- Object form.
67
-
68
- 3. Grant of Patent License. Subject to the terms and conditions of this License,
69
- each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
70
- no-charge, royalty-free, irrevocable patent license to make, have made, use,
71
- offer to sell, sell, import, and otherwise transfer the Work, where such license
72
- applies only to those patent claims licensable by such Contributor that are
73
- necessarily infringed by their Contribution(s) alone or by combination of their
74
- Contribution(s) with the Work to which such Contribution(s) was submitted. If
75
- You institute patent litigation against any entity (including a cross-claim or
76
- counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated
77
- within the Work constitutes direct or contributory patent infringement, then any
78
- patent licenses granted to You under this License for that Work shall terminate
79
- as of the date such litigation is filed.
80
-
81
- 4. Redistribution. You may reproduce and distribute copies of the Work or
82
- Derivative Works thereof in any medium, with or without modifications, and in
83
- Source or Object form, provided that You meet the following conditions:
84
-
85
- (a) You must give any other recipients of the Work or Derivative Works a copy of
86
- this License; and
87
-
88
- (b) You must cause any modified files to carry prominent notices stating that You
89
- changed the files; and
90
-
91
- (c) You must retain, in the Source form of any Derivative Works that You
92
- distribute, all copyright, patent, trademark, and attribution notices from the
93
- Source form of the Work, excluding those notices that do not pertain to any part
94
- of the Derivative Works; and
95
-
96
- (d) If the Work includes a "NOTICE" text file as part of its distribution, then
97
- any Derivative Works that You distribute must include a readable copy of the
98
- attribution notices contained within such NOTICE file, excluding those notices
99
- that do not pertain to any part of the Derivative Works, in at least one of the
100
- following places: within a NOTICE text file distributed as part of the
101
- Derivative Works; within the Source form or documentation, if provided along
102
- with the Derivative Works; or, within a display generated by the Derivative
103
- Works, if and wherever such third-party notices normally appear. The contents of
104
- the NOTICE file are for informational purposes only and do not modify the
105
- License. You may add Your own attribution notices within Derivative Works that
106
- You distribute, alongside or as an addendum to the NOTICE text from the Work,
107
- provided that such additional attribution notices cannot be construed as
108
- modifying the License.
109
-
110
- You may add Your own copyright statement to Your modifications and may provide
111
- additional or different license terms and conditions for use, reproduction, or
112
- distribution of Your modifications, or for any such Derivative Works as a whole,
113
- provided Your use, reproduction, and distribution of the Work otherwise complies
114
- with the conditions stated in this License.
115
-
116
- 5. Submission of Contributions. Unless You explicitly state otherwise, any
117
- Contribution intentionally submitted for inclusion in the Work by You to the
118
- Licensor shall be under the terms and conditions of this License, without any
119
- additional terms or conditions. Notwithstanding the above, nothing herein shall
120
- supersede or modify the terms of any separate license agreement you may have
121
- executed with Licensor regarding such Contributions.
122
-
123
- 6. Trademarks. This License does not grant permission to use the trade names,
124
- trademarks, service marks, or product names of the Licensor, except as required
125
- for reasonable and customary use in describing the origin of the Work and
126
- reproducing the content of the NOTICE file.
127
-
128
- 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
129
- writing, Licensor provides the Work (and each Contributor provides its
130
- Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
131
- KIND, either express or implied, including, without limitation, any warranties or
132
- conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
133
- PARTICULAR PURPOSE. You are solely responsible for determining the
134
- appropriateness of using or redistributing the Work and assume any risks
135
- associated with Your exercise of permissions under this License.
136
-
137
- 8. Limitation of Liability. In no event and under no legal theory, whether in
138
- tort (including negligence), contract, or otherwise, unless required by
139
- applicable law (such as deliberate and grossly negligent acts) or agreed to in
140
- writing, shall any Contributor be liable to You for damages, including any
141
- direct, indirect, special, incidental, or consequential damages of any character
142
- arising as a result of this License or out of the use or inability to use the
143
- Work (including but not limited to damages for loss of goodwill, work stoppage,
144
- computer failure or malfunction, or any and all other commercial damages or
145
- losses), even if such Contributor has been advised of the possibility of such
146
- damages.
147
-
148
- 9. Accepting Warranty or Additional Liability. While redistributing the Work or
149
- Derivative Works thereof, You may choose to offer, and charge a fee for,
150
- acceptance of support, warranty, indemnity, or other liability obligations
151
- and/or rights consistent with this License. However, in accepting such
152
- obligations, You may act only on Your own behalf and on Your sole
153
- responsibility, not on behalf of any other Contributor, and only if You agree to
154
- indemnify, defend, and hold each Contributor harmless for any liability incurred
155
- by, or claims asserted against, such Contributor by reason of your accepting any
156
- such warranty or additional liability.
157
-
158
- END OF TERMS AND CONDITIONS
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://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, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work.
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
38
+ is based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship. For the purposes of this License, Derivative Works
41
+ shall not include works that remain separable from, or merely link (or bind by
42
+ name) to the interfaces of, the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including the original version
45
+ of the Work and any modifications or additions to that Work or Derivative Works
46
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work
47
+ by the copyright owner or by an individual or Legal Entity authorized to submit
48
+ on behalf of the copyright owner. For the purposes of this definition,
49
+ "submitted" means any form of electronic, verbal, or written communication sent
50
+ to the Licensor or its representatives, including but not limited to
51
+ communication on electronic mailing lists, source code control systems, and
52
+ issue tracking systems that are managed by, or on behalf of, the Licensor for
53
+ the purpose of discussing and improving the Work, but excluding communication
54
+ that is conspicuously marked or otherwise designated in writing by the copyright
55
+ owner as "Not a Contribution."
56
+
57
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58
+ of whom a Contribution has been received by Licensor and subsequently
59
+ incorporated within the Work.
60
+
61
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
62
+ License, each Contributor hereby grants to You a perpetual, worldwide,
63
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
64
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
65
+ sublicense, and distribute the Work and such Derivative Works in Source or
66
+ Object form.
67
+
68
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
69
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
70
+ no-charge, royalty-free, irrevocable patent license to make, have made, use,
71
+ offer to sell, sell, import, and otherwise transfer the Work, where such license
72
+ applies only to those patent claims licensable by such Contributor that are
73
+ necessarily infringed by their Contribution(s) alone or by combination of their
74
+ Contribution(s) with the Work to which such Contribution(s) was submitted. If
75
+ You institute patent litigation against any entity (including a cross-claim or
76
+ counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated
77
+ within the Work constitutes direct or contributory patent infringement, then any
78
+ patent licenses granted to You under this License for that Work shall terminate
79
+ as of the date such litigation is filed.
80
+
81
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
82
+ Derivative Works thereof in any medium, with or without modifications, and in
83
+ Source or Object form, provided that You meet the following conditions:
84
+
85
+ (a) You must give any other recipients of the Work or Derivative Works a copy of
86
+ this License; and
87
+
88
+ (b) You must cause any modified files to carry prominent notices stating that You
89
+ changed the files; and
90
+
91
+ (c) You must retain, in the Source form of any Derivative Works that You
92
+ distribute, all copyright, patent, trademark, and attribution notices from the
93
+ Source form of the Work, excluding those notices that do not pertain to any part
94
+ of the Derivative Works; and
95
+
96
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
97
+ any Derivative Works that You distribute must include a readable copy of the
98
+ attribution notices contained within such NOTICE file, excluding those notices
99
+ that do not pertain to any part of the Derivative Works, in at least one of the
100
+ following places: within a NOTICE text file distributed as part of the
101
+ Derivative Works; within the Source form or documentation, if provided along
102
+ with the Derivative Works; or, within a display generated by the Derivative
103
+ Works, if and wherever such third-party notices normally appear. The contents of
104
+ the NOTICE file are for informational purposes only and do not modify the
105
+ License. You may add Your own attribution notices within Derivative Works that
106
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
107
+ provided that such additional attribution notices cannot be construed as
108
+ modifying the License.
109
+
110
+ You may add Your own copyright statement to Your modifications and may provide
111
+ additional or different license terms and conditions for use, reproduction, or
112
+ distribution of Your modifications, or for any such Derivative Works as a whole,
113
+ provided Your use, reproduction, and distribution of the Work otherwise complies
114
+ with the conditions stated in this License.
115
+
116
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
117
+ Contribution intentionally submitted for inclusion in the Work by You to the
118
+ Licensor shall be under the terms and conditions of this License, without any
119
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
120
+ supersede or modify the terms of any separate license agreement you may have
121
+ executed with Licensor regarding such Contributions.
122
+
123
+ 6. Trademarks. This License does not grant permission to use the trade names,
124
+ trademarks, service marks, or product names of the Licensor, except as required
125
+ for reasonable and customary use in describing the origin of the Work and
126
+ reproducing the content of the NOTICE file.
127
+
128
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
129
+ writing, Licensor provides the Work (and each Contributor provides its
130
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
131
+ KIND, either express or implied, including, without limitation, any warranties or
132
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
133
+ PARTICULAR PURPOSE. You are solely responsible for determining the
134
+ appropriateness of using or redistributing the Work and assume any risks
135
+ associated with Your exercise of permissions under this License.
136
+
137
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
138
+ tort (including negligence), contract, or otherwise, unless required by
139
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
140
+ writing, shall any Contributor be liable to You for damages, including any
141
+ direct, indirect, special, incidental, or consequential damages of any character
142
+ arising as a result of this License or out of the use or inability to use the
143
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
144
+ computer failure or malfunction, or any and all other commercial damages or
145
+ losses), even if such Contributor has been advised of the possibility of such
146
+ damages.
147
+
148
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
149
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
150
+ acceptance of support, warranty, indemnity, or other liability obligations
151
+ and/or rights consistent with this License. However, in accepting such
152
+ obligations, You may act only on Your own behalf and on Your sole
153
+ responsibility, not on behalf of any other Contributor, and only if You agree to
154
+ indemnify, defend, and hold each Contributor harmless for any liability incurred
155
+ by, or claims asserted against, such Contributor by reason of your accepting any
156
+ such warranty or additional liability.
157
+
158
+ END OF TERMS AND CONDITIONS