harbor-python 1.0.0__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.
harbor/mqtt.py ADDED
@@ -0,0 +1,201 @@
1
+ import asyncio
2
+ import json
3
+ import logging
4
+ import sys
5
+ from collections.abc import Awaitable, Callable
6
+ from typing import Any
7
+
8
+ from aiomqtt import Client, MqttError
9
+
10
+ from .config import HarborCameraConfig
11
+ from .utils import get_camera_host, get_ssl_context
12
+
13
+ _LOGGER = logging.getLogger(__name__)
14
+
15
+
16
+ class HarborMQTTClient:
17
+ def __init__(
18
+ self,
19
+ config: HarborCameraConfig,
20
+ topics: list[str],
21
+ message_handler: Callable[[str, Any], Awaitable[None]],
22
+ client_id: str | None = None,
23
+ ssl_context_cache: dict | None = None,
24
+ on_connection_change: Callable[[bool], Awaitable[None]] | None = None,
25
+ ) -> None:
26
+ self.config = config
27
+ self.topics = topics
28
+ self.message_handler = message_handler
29
+ self.client_id = client_id
30
+ self.ssl_context_cache = ssl_context_cache or {}
31
+ self.on_connection_change = on_connection_change
32
+ self.connected: bool = False
33
+ self._stop_event = asyncio.Event()
34
+ self._task: asyncio.Task | None = None
35
+
36
+ async def _handle_message(self, topic: str, payload_raw: str) -> None:
37
+ try:
38
+ payload = json.loads(payload_raw)
39
+ except Exception:
40
+ payload = payload_raw
41
+
42
+ await self.message_handler(topic, payload)
43
+
44
+ async def _set_connected(self, connected: bool) -> None:
45
+ """Update the connection flag and notify the listener if it changed."""
46
+ if self.connected == connected:
47
+ return
48
+ self.connected = connected
49
+ if self.on_connection_change is None:
50
+ return
51
+ try:
52
+ await self.on_connection_change(connected)
53
+ except Exception:
54
+ _LOGGER.exception(
55
+ "Harbor: connection-change listener raised for camera %s",
56
+ self.config.serial,
57
+ )
58
+
59
+ async def run(self) -> None:
60
+ try:
61
+ loop = asyncio.get_running_loop()
62
+ ssl_ctx = await loop.run_in_executor(None, get_ssl_context, self.config, self.ssl_context_cache)
63
+ except Exception as e:
64
+ _LOGGER.error("Harbor: Failed to create SSL context for camera %s: %s", self.config.serial, e)
65
+ # Ensure we clear any partial state
66
+ if self.config.serial in self.ssl_context_cache:
67
+ del self.ssl_context_cache[self.config.serial]
68
+ return
69
+
70
+ reconnect_delay = 2
71
+
72
+ _LOGGER.info("Harbor: MQTT client starting for camera %s", self.config.serial)
73
+
74
+ try:
75
+ while not self._stop_event.is_set():
76
+ try:
77
+ host = get_camera_host(self.config)
78
+ _LOGGER.info(
79
+ "Harbor: MQTT attempting connection to %s:%s for camera %s",
80
+ host,
81
+ 8884,
82
+ self.config.serial,
83
+ )
84
+
85
+ async with Client(
86
+ hostname=host,
87
+ port=8884,
88
+ tls_context=ssl_ctx,
89
+ timeout=10,
90
+ identifier=self.client_id,
91
+ ) as client:
92
+ _LOGGER.info(
93
+ "Harbor: MQTT connected to %s:%s for camera %s",
94
+ host,
95
+ 8884,
96
+ self.config.serial,
97
+ )
98
+ await self._set_connected(True)
99
+ try:
100
+ if self.topics:
101
+ await client.subscribe([(t, 0) for t in self.topics])
102
+ _LOGGER.info(
103
+ "Harbor: MQTT subscribed to topics: %s for camera %s",
104
+ self.topics,
105
+ self.config.serial,
106
+ )
107
+
108
+ async for message in client.messages:
109
+ if self._stop_event.is_set():
110
+ break
111
+
112
+ payload_raw = message.payload.decode("utf-8", errors="replace")
113
+ topic = str(message.topic)
114
+
115
+ _LOGGER.debug(
116
+ "Harbor: MQTT message received on topic '%s' from camera %s: %s",
117
+ topic,
118
+ self.config.serial,
119
+ payload_raw,
120
+ )
121
+
122
+ await self._handle_message(topic, payload_raw)
123
+
124
+ reconnect_delay = 2
125
+ finally:
126
+ await self._set_connected(False)
127
+
128
+ except TimeoutError as e:
129
+ _LOGGER.warning("Harbor: MQTT connection timeout for %s: %s (reconnecting)", self.config.serial, e)
130
+ # Clear SSL context on timeout as it might be a stale session
131
+ if self.config.serial in self.ssl_context_cache:
132
+ del self.ssl_context_cache[self.config.serial]
133
+
134
+ except MqttError as e:
135
+ _LOGGER.warning("Harbor: MQTT error for %s: %s (reconnecting)", self.config.serial, e)
136
+ _LOGGER.info("Harbor: MQTT disconnected from camera %s", self.config.serial)
137
+ # Clear SSL context on MQTT error
138
+ if self.config.serial in self.ssl_context_cache:
139
+ del self.ssl_context_cache[self.config.serial]
140
+
141
+ except OSError as e:
142
+ _LOGGER.warning("Harbor: MQTT OS error for %s: %s (reconnecting)", self.config.serial, e)
143
+ # Critical to clear context here for WinError 10065 cleanup
144
+ if self.config.serial in self.ssl_context_cache:
145
+ del self.ssl_context_cache[self.config.serial]
146
+ except asyncio.CancelledError:
147
+ raise
148
+ except Exception as e:
149
+ _LOGGER.error("Harbor: MQTT unexpected error for %s: %s (reconnecting)", self.config.serial, e)
150
+ # Clear context on unexpected errors too
151
+ if self.config.serial in self.ssl_context_cache:
152
+ del self.ssl_context_cache[self.config.serial]
153
+ import traceback
154
+
155
+ _LOGGER.error(traceback.format_exc())
156
+
157
+ try:
158
+ _LOGGER.info(
159
+ "Harbor: MQTT waiting %s seconds before reconnecting to camera %s",
160
+ reconnect_delay,
161
+ self.config.serial,
162
+ )
163
+ await asyncio.wait_for(self._stop_event.wait(), timeout=reconnect_delay)
164
+ except TimeoutError:
165
+ pass
166
+ reconnect_delay = min(reconnect_delay * 2, 30)
167
+
168
+ except asyncio.CancelledError:
169
+ _LOGGER.info("Harbor: MQTT task cancelled for camera %s", self.config.serial)
170
+ raise
171
+
172
+ async def start(self) -> None:
173
+ if sys.platform == "win32" and isinstance(asyncio.get_running_loop(), asyncio.ProactorEventLoop):
174
+ _LOGGER.warning(
175
+ "Harbor: You are running on Windows with the default ProactorEventLoop. "
176
+ "This is known to cause issues with aiomqtt. "
177
+ "Please use WindowsSelectorEventLoopPolicy instead: "
178
+ "asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())"
179
+ )
180
+
181
+ if self._task and not self._task.done():
182
+ _LOGGER.info("Harbor: MQTT client already running for camera %s", self.config.serial)
183
+ return
184
+ _LOGGER.info("Harbor: MQTT client starting for camera %s", self.config.serial)
185
+ self._stop_event.clear()
186
+ self._task = asyncio.create_task(self.run())
187
+
188
+ async def stop(self) -> None:
189
+ _LOGGER.info("Harbor: MQTT client stopping for camera %s", self.config.serial)
190
+ self._stop_event.set()
191
+ if self._task:
192
+ self._task.cancel()
193
+ try:
194
+ await self._task
195
+ except asyncio.CancelledError:
196
+ pass
197
+ _LOGGER.info("Harbor: MQTT client stopped for camera %s", self.config.serial)
198
+
199
+ def __del__(self) -> None:
200
+ if self._stop_event and not self._stop_event.is_set():
201
+ self._stop_event.set()
harbor/py.typed ADDED
File without changes
harbor/state.py ADDED
@@ -0,0 +1,47 @@
1
+ """State models for Harbor devices."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass, field
6
+ from datetime import datetime
7
+ from typing import Any, Literal
8
+
9
+ HarborSourceType = Literal["camera", "monitor"]
10
+
11
+
12
+ @dataclass(slots=True)
13
+ class HarborViewer:
14
+ """A viewer connected to a Harbor device stream."""
15
+
16
+ viewer_id: str
17
+ identity: str | None = None
18
+ client: str | None = None
19
+ is_local: bool | None = None
20
+ role: str | None = None
21
+
22
+
23
+ @dataclass(slots=True)
24
+ class HarborEventState:
25
+ """State for a transient Harbor camera event."""
26
+
27
+ key: str
28
+ topic: str
29
+ friendly_name: str
30
+ is_on: bool = False
31
+ last_seen: datetime | None = None
32
+ last_payload: Any = None
33
+
34
+
35
+ @dataclass(slots=True)
36
+ class HarborDeviceState:
37
+ """State for a Harbor camera or monitor device."""
38
+
39
+ serial: str
40
+ source_type: HarborSourceType
41
+ display_name: str | None = None
42
+ os_version: str | None = None
43
+ app_version: str | None = None
44
+ last_seen: datetime | None = None
45
+ values: dict[str, Any] = field(default_factory=dict)
46
+ viewers: dict[str, HarborViewer] = field(default_factory=dict)
47
+ events: dict[str, HarborEventState] = field(default_factory=dict)
harbor/utils.py ADDED
@@ -0,0 +1,39 @@
1
+ import logging
2
+ import ssl
3
+
4
+ from .config import HarborCameraConfig
5
+
6
+ _LOGGER = logging.getLogger(__name__)
7
+
8
+
9
+ def get_camera_host(camera_config: HarborCameraConfig) -> str:
10
+ if camera_config.ip_address:
11
+ return camera_config.ip_address
12
+ return f"harborc-{camera_config.serial}.local"
13
+
14
+
15
+ def build_ssl_context(camera_config: HarborCameraConfig) -> ssl.SSLContext:
16
+ _LOGGER.info(
17
+ "Harbor: Building SSL context with cert_path=%s, key_path=%s", camera_config.cert_path, camera_config.key_path
18
+ )
19
+ ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
20
+ ctx.load_cert_chain(certfile=camera_config.cert_path, keyfile=camera_config.key_path)
21
+ ctx.check_hostname = False
22
+ ctx.verify_mode = ssl.CERT_NONE
23
+ return ctx
24
+
25
+
26
+ def get_ssl_context(camera_config: HarborCameraConfig, cache: dict | None = None) -> ssl.SSLContext:
27
+ if cache is None:
28
+ _LOGGER.info("Harbor: Creating new SSL context (no cache)")
29
+ return build_ssl_context(camera_config)
30
+
31
+ key = camera_config.serial
32
+ if key in cache:
33
+ _LOGGER.debug("Harbor: Returning cached SSL context for camera %s", camera_config.serial)
34
+ return cache[key]
35
+
36
+ _LOGGER.info("Harbor: Creating new SSL context for camera %s", camera_config.serial)
37
+ ctx = build_ssl_context(camera_config)
38
+ cache[key] = ctx
39
+ return ctx
@@ -0,0 +1,21 @@
1
+ Metadata-Version: 2.4
2
+ Name: harbor-python
3
+ Version: 1.0.0
4
+ Summary: A package to locally connect to a Harbor Sleep Camera
5
+ Author: Andres Garcia, Lash-L
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Keywords: baby,baby monitor,harbor
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Natural Language :: English
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Requires-Python: <4,>=3.11
15
+ Requires-Dist: aiomqtt>=2.5.0
16
+ Requires-Dist: pydantic>=2.12.2
17
+ Description-Content-Type: text/markdown
18
+
19
+ # Harbor Python
20
+
21
+ A Python package to locally connect to Harbor Sleep Cameras.
@@ -0,0 +1,17 @@
1
+ harbor/__init__.py,sha256=H-yZkUph-wcFtKPjl6KBrsvRr0Yz5d99t5hjoeM6We8,1464
2
+ harbor/config.py,sha256=G259PU-g2Vvuw0NZ0p6A7HVAbqC7gHgBecNkCRqC0_Y,192
3
+ harbor/core.py,sha256=lfO1FAwYKSSW7YZ8fqDdhgpWXS6eA-vL1NgZKmN_H_g,2186
4
+ harbor/device.py,sha256=YvaFWieXJ-EzQJU8VQo_ZERl65CynITTAnMFto-PF_I,5933
5
+ harbor/events.py,sha256=q_WNG_yIkCczOzloe9mDwulgHhXmeQdZFDyyKpCz1Ig,20363
6
+ harbor/mqtt.py,sha256=U0hfRscFzaqeLso0PqDh0EJoXHt-b0Qqrk4MhbRiBBc,8496
7
+ harbor/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ harbor/state.py,sha256=jQDLV8zpkLV2f6zR4LuOtk_B5BtGdp-8dq4NyGZCa-8,1210
9
+ harbor/utils.py,sha256=c-QT2ZDacEIIJInnoQ9twJ82D83TBlmtAygJI6ovuB4,1336
10
+ harbor/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ harbor/data/mqtt_models.py,sha256=yir1maFUxmk_9E2J_JEnTzDJwiAGDdSrbkGN1YaZd_o,4031
12
+ harbor/devices/camera.py,sha256=zBYLBq_Q8lUkmsBVSSGVWgAIskkpQCmiurxuXE7jjPM,6301
13
+ harbor/devices/monitor.py,sha256=hzx4lu92h3i_34QyYK392gE7CihqERiOZuLhyzDtDk0,452
14
+ harbor_python-1.0.0.dist-info/METADATA,sha256=vjy56XY1ZNfKlWMRXF_Ef36of_itlM7xsZukKYQRg2I,688
15
+ harbor_python-1.0.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
16
+ harbor_python-1.0.0.dist-info/licenses/LICENSE,sha256=QEOXEfrOQetemKy4k1WN5XCApJdpiRtyV5jLMSToVVw,11344
17
+ harbor_python-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
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 Derivative
95
+ 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 2026 Harbor Systems
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.