padelkit 0.0.1__py3-none-any.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.
padelkit/__init__.py ADDED
@@ -0,0 +1,6 @@
1
+ __version__ = "0.0.1"
2
+
3
+ from padelkit.court.court import PadelCourt
4
+ from padelkit.scoring.score import MatchScore
5
+
6
+ __all__ = ["PadelCourt", "MatchScore", "__version__"]
@@ -0,0 +1,4 @@
1
+ from .court import PadelCourt
2
+ from .dimensions import CourtDimensions
3
+
4
+ __all__ = ["PadelCourt", "CourtDimensions"]
@@ -0,0 +1,68 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .dimensions import CourtDimensions
4
+ from .landmarks import Landmark
5
+
6
+
7
+ @dataclass(frozen=True)
8
+ class PadelCourt:
9
+ """Represents a padel court and its coordinate system."""
10
+ dimensions: CourtDimensions
11
+
12
+ @classmethod
13
+ def fip_standard(cls) -> "PadelCourt":
14
+ """Creates a standard FIP padel court."""
15
+ return cls(dimensions=CourtDimensions.fip_standard())
16
+
17
+ @property
18
+ def length(self) -> float:
19
+ """Total length of the court in meters."""
20
+ return self.dimensions.length
21
+
22
+ @property
23
+ def width(self) -> float:
24
+ """Total width of the court in meters."""
25
+ return self.dimensions.width
26
+
27
+ def landmarks_2d(self) -> dict[str, tuple[float, float]]:
28
+ """
29
+ Returns a dictionary of all standard 2D landmarks.
30
+ Coordinates are (X, Y) in meters, with origin (0,0) at the center of the court.
31
+ X is width (left to right), Y is length (bottom to top).
32
+ """
33
+ half_width = self.width / 2
34
+ half_length = self.length / 2
35
+ service_line_y = half_length - self.dimensions.service_line_distance_from_back
36
+
37
+ return {
38
+ Landmark.CENTER.value: (0.0, 0.0),
39
+
40
+ Landmark.TOP_LEFT.value: (-half_width, half_length),
41
+ Landmark.TOP_RIGHT.value: (half_width, half_length),
42
+ Landmark.BOTTOM_LEFT.value: (-half_width, -half_length),
43
+ Landmark.BOTTOM_RIGHT.value: (half_width, -half_length),
44
+
45
+ Landmark.NET_CENTER.value: (0.0, 0.0),
46
+ Landmark.NET_LEFT.value: (-half_width, 0.0),
47
+ Landmark.NET_RIGHT.value: (half_width, 0.0),
48
+
49
+ Landmark.SERVICE_INTERSECTION_TOP.value: (0.0, service_line_y),
50
+ Landmark.SERVICE_INTERSECTION_BOTTOM.value: (0.0, -service_line_y),
51
+ }
52
+
53
+ def point(self, name: str) -> tuple[float, float]:
54
+ """
55
+ Returns the (X, Y) coordinates of a specific landmark.
56
+
57
+ Args:
58
+ name: The name of the landmark (e.g., "center").
59
+
60
+ Raises:
61
+ ValueError: If the landmark name is not found.
62
+ """
63
+ landmarks = self.landmarks_2d()
64
+ if name not in landmarks:
65
+ raise ValueError(
66
+ f"Unknown landmark: {name}. Available: {list(landmarks.keys())}"
67
+ )
68
+ return landmarks[name]
@@ -0,0 +1,24 @@
1
+ from dataclasses import dataclass
2
+
3
+
4
+ @dataclass(frozen=True)
5
+ class CourtDimensions:
6
+ """Official dimensions of a padel court in meters."""
7
+ length: float
8
+ width: float
9
+ net_height_center: float
10
+ net_height_posts: float
11
+ service_line_distance_from_back: float
12
+ back_wall_height: float
13
+
14
+ @classmethod
15
+ def fip_standard(cls) -> "CourtDimensions":
16
+ """Standard dimensions as defined by the FIP."""
17
+ return cls(
18
+ length=20.0,
19
+ width=10.0,
20
+ net_height_center=0.88,
21
+ net_height_posts=0.92,
22
+ service_line_distance_from_back=3.0,
23
+ back_wall_height=3.0,
24
+ )
@@ -0,0 +1,21 @@
1
+ from enum import Enum
2
+
3
+
4
+ class Landmark(str, Enum):
5
+ """Basic 2D landmarks on a padel court."""
6
+ CENTER = "center"
7
+
8
+ # Corners
9
+ TOP_LEFT = "top_left"
10
+ TOP_RIGHT = "top_right"
11
+ BOTTOM_LEFT = "bottom_left"
12
+ BOTTOM_RIGHT = "bottom_right"
13
+
14
+ # Net
15
+ NET_CENTER = "net_center"
16
+ NET_LEFT = "net_left"
17
+ NET_RIGHT = "net_right"
18
+
19
+ # Service intersections (simplified)
20
+ SERVICE_INTERSECTION_TOP = "service_intersection_top"
21
+ SERVICE_INTERSECTION_BOTTOM = "service_intersection_bottom"
@@ -0,0 +1,3 @@
1
+ from .score import MatchScore, TeamId
2
+
3
+ __all__ = ["MatchScore", "TeamId"]
@@ -0,0 +1,141 @@
1
+ from enum import Enum
2
+
3
+
4
+ class TeamId(str, Enum):
5
+ A = "A"
6
+ B = "B"
7
+
8
+
9
+ class MatchScore:
10
+ """
11
+ A simple match score tracker for a padel match.
12
+ Currently tracks points, games, and sets for a best-of-3 sets match
13
+ without tiebreaks (wins set at 6 games with difference of 2).
14
+ """
15
+
16
+ POINTS_SEQUENCE = [0, 15, 30, 40]
17
+
18
+ def __init__(self):
19
+ # Current game points
20
+ self._points_A = 0
21
+ self._points_B = 0
22
+
23
+ self.advantage: TeamId | None = None
24
+
25
+ # Completed games in current set
26
+ self.games_A = 0
27
+ self.games_B = 0
28
+
29
+ # Completed sets
30
+ self.sets_A = 0
31
+ self.sets_B = 0
32
+
33
+ # History of completed sets scores e.g., [(6, 4), (7, 5)]
34
+ self.completed_sets: list[tuple[int, int]] = []
35
+
36
+ self.match_winner: TeamId | None = None
37
+
38
+ @property
39
+ def game_points(self) -> tuple[int | str, int | str]:
40
+ """Returns the current game score as a tuple or string for advantage."""
41
+ if self.advantage == TeamId.A:
42
+ return ("AD", 40)
43
+ elif self.advantage == TeamId.B:
44
+ return (40, "AD")
45
+
46
+ return (
47
+ self.POINTS_SEQUENCE[self._points_A],
48
+ self.POINTS_SEQUENCE[self._points_B],
49
+ )
50
+
51
+ def point_won_by(self, team: str | TeamId):
52
+ if self.match_winner is not None:
53
+ return # Match is over
54
+
55
+ team = TeamId(team)
56
+
57
+ if self.advantage is not None:
58
+ if self.advantage == team:
59
+ self._win_game(team)
60
+ else:
61
+ # Back to deuce
62
+ self.advantage = None
63
+ return
64
+
65
+ if team == TeamId.A:
66
+ if self._points_A == 3: # 40
67
+ if self._points_B == 3: # 40-40 Deuce
68
+ self.advantage = TeamId.A
69
+ else:
70
+ self._win_game(team)
71
+ else:
72
+ self._points_A += 1
73
+ else: # TeamId.B
74
+ if self._points_B == 3: # 40
75
+ if self._points_A == 3: # 40-40 Deuce
76
+ self.advantage = TeamId.B
77
+ else:
78
+ self._win_game(team)
79
+ else:
80
+ self._points_B += 1
81
+
82
+ def _win_game(self, team: TeamId):
83
+ # Reset points
84
+ self._points_A = 0
85
+ self._points_B = 0
86
+ self.advantage = None
87
+
88
+ if team == TeamId.A:
89
+ self.games_A += 1
90
+ else:
91
+ self.games_B += 1
92
+
93
+ self._check_set_winner()
94
+
95
+ def _check_set_winner(self):
96
+ # Check if a team won the set (6 games with diff 2, or 7 games)
97
+ # Simplified for now (no tiebreak implemented in this first version)
98
+ won_a = (
99
+ self.games_A >= 6 and self.games_A - self.games_B >= 2
100
+ ) or self.games_A == 7
101
+ won_b = (
102
+ self.games_B >= 6 and self.games_B - self.games_A >= 2
103
+ ) or self.games_B == 7
104
+
105
+ if won_a or won_b:
106
+ self.completed_sets.append((self.games_A, self.games_B))
107
+ if won_a:
108
+ self.sets_A += 1
109
+ else:
110
+ self.sets_B += 1
111
+
112
+ # Reset games
113
+ self.games_A = 0
114
+ self.games_B = 0
115
+
116
+ self._check_match_winner()
117
+
118
+ def _check_match_winner(self):
119
+ # Best of 3 sets
120
+ if self.sets_A == 2:
121
+ self.match_winner = TeamId.A
122
+ elif self.sets_B == 2:
123
+ self.match_winner = TeamId.B
124
+
125
+ def __str__(self) -> str:
126
+ if self.match_winner:
127
+ return f"Match Won by Team {self.match_winner.value}"
128
+
129
+ sets_str = " ".join(f"{s[0]}-{s[1]}" for s in self.completed_sets)
130
+ current_set = f"{self.games_A}-{self.games_B}"
131
+
132
+ pts_a, pts_b = self.game_points
133
+ game_str = f"{pts_a}-{pts_b}"
134
+
135
+ parts = []
136
+ if sets_str:
137
+ parts.append(sets_str)
138
+ parts.append(current_set)
139
+ parts.append(f"({game_str})")
140
+
141
+ return " | ".join(parts)
@@ -0,0 +1,80 @@
1
+ Metadata-Version: 2.4
2
+ Name: padelkit
3
+ Version: 0.0.1
4
+ Summary: Open source toolkit for padel analytics and computer vision
5
+ Project-URL: Homepage, https://padelkit.dev
6
+ Project-URL: Documentation, https://padelkit.dev
7
+ Project-URL: Source, https://github.com/padelkit/padelkit
8
+ Project-URL: Issues, https://github.com/padelkit/padelkit/issues
9
+ Author: Fidel Echevarria
10
+ License: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: computer vision,court geometry,padel,scoring,sports analytics
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.10
24
+ Provides-Extra: dev
25
+ Requires-Dist: build; extra == 'dev'
26
+ Requires-Dist: pytest; extra == 'dev'
27
+ Requires-Dist: ruff; extra == 'dev'
28
+ Requires-Dist: twine; extra == 'dev'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # PadelKit
32
+
33
+ PadelKit is an open source toolkit for developers building padel analytics tools.
34
+
35
+ ![PyPI - Version](https://img.shields.io/pypi/v/padelkit)
36
+ ![License](https://img.shields.io/github/license/padelkit/padelkit)
37
+
38
+ > **Status:** Early Alpha. This is a very early version focusing on core domain models.
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ pip install padelkit
44
+ ```
45
+
46
+ ## Quickstart
47
+
48
+ ```python
49
+ from padelkit.court import PadelCourt
50
+ from padelkit.scoring import MatchScore
51
+
52
+ # Court Geometry
53
+ court = PadelCourt.fip_standard()
54
+ print(f"Court dimensions: {court.length}m x {court.width}m")
55
+
56
+ # Scoring
57
+ score = MatchScore()
58
+ score.point_won_by("A")
59
+ print(score)
60
+ ```
61
+
62
+ ## Features
63
+
64
+ - **Court Geometry:** Official dimensions and 2D coordinate system.
65
+ - **Scoring System:** Basic match, set and game scoring logic.
66
+
67
+ ## Roadmap
68
+
69
+ - Extended landmarks and 3D geometries.
70
+ - Event structures (serve, rally, etc.).
71
+ - Camera calibration and world-to-image projections.
72
+
73
+ ## License
74
+
75
+ Apache 2.0 License.
76
+
77
+ ## Links
78
+
79
+ - **Documentation:** [https://padelkit.dev](https://padelkit.dev)
80
+ - **Source Code:** [GitHub](https://github.com/padelkit/padelkit)
@@ -0,0 +1,11 @@
1
+ padelkit/__init__.py,sha256=0cVlwnnRyrDqqE77Xyxum86qUz2k8z8hdom4zMz_WpM,168
2
+ padelkit/court/__init__.py,sha256=3sJZD5tT6nqRn7AHwvgXx3pWWDSeOriVNYJLmGWK-aA,115
3
+ padelkit/court/court.py,sha256=U2n9jynkgmsjOkZ38tOauCpOlin_TheRohVjXFZ1kVU,2393
4
+ padelkit/court/dimensions.py,sha256=lgtvtci1VMEtlxxLhAlNAYg1kGLX8kjf32s2h0wfuUs,660
5
+ padelkit/court/landmarks.py,sha256=4RvbAYB0-WyAjT7I4WrPm_rqWy7S98SEX9705UNQjq8,526
6
+ padelkit/scoring/__init__.py,sha256=u4zRVR5o-jHHuAbVbajY_ViofL5q83i5a0bi4rMfiwE,74
7
+ padelkit/scoring/score.py,sha256=6uASW9A24QP5g_h5laETVd2UH5uF5r-XCSP8FQe51zg,4117
8
+ padelkit-0.0.1.dist-info/METADATA,sha256=5QYjEiIpLKYYZmXwrYP6uOJubIH9cmgnisuCKY6-wY8,2348
9
+ padelkit-0.0.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
10
+ padelkit-0.0.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ padelkit-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -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.