cync-lan 0.1.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 (31) hide show
  1. cync_lan-0.1.0/LICENSE +21 -0
  2. cync_lan-0.1.0/LICENSE-3RD-PARTY +381 -0
  3. cync_lan-0.1.0/PKG-INFO +72 -0
  4. cync_lan-0.1.0/README.md +37 -0
  5. cync_lan-0.1.0/pyproject.toml +65 -0
  6. cync_lan-0.1.0/setup.cfg +4 -0
  7. cync_lan-0.1.0/src/cync_lan/__init__.py +1 -0
  8. cync_lan-0.1.0/src/cync_lan/ble_provision.py +462 -0
  9. cync_lan-0.1.0/src/cync_lan/cloud_api.py +773 -0
  10. cync_lan-0.1.0/src/cync_lan/const.py +231 -0
  11. cync_lan-0.1.0/src/cync_lan/devices.py +4910 -0
  12. cync_lan-0.1.0/src/cync_lan/metadata/__init__.py +0 -0
  13. cync_lan-0.1.0/src/cync_lan/metadata/model_info.py +1334 -0
  14. cync_lan-0.1.0/src/cync_lan/packet/__init__.py +2 -0
  15. cync_lan-0.1.0/src/cync_lan/packet/builder.py +268 -0
  16. cync_lan-0.1.0/src/cync_lan/packet/xlink_legacy.py +128 -0
  17. cync_lan-0.1.0/src/cync_lan/protocols.py +87 -0
  18. cync_lan-0.1.0/src/cync_lan/py.typed +0 -0
  19. cync_lan-0.1.0/src/cync_lan/server.py +431 -0
  20. cync_lan-0.1.0/src/cync_lan/structs.py +362 -0
  21. cync_lan-0.1.0/src/cync_lan/utils.py +471 -0
  22. cync_lan-0.1.0/src/cync_lan.egg-info/PKG-INFO +72 -0
  23. cync_lan-0.1.0/src/cync_lan.egg-info/SOURCES.txt +29 -0
  24. cync_lan-0.1.0/src/cync_lan.egg-info/dependency_links.txt +1 -0
  25. cync_lan-0.1.0/src/cync_lan.egg-info/entry_points.txt +2 -0
  26. cync_lan-0.1.0/src/cync_lan.egg-info/requires.txt +13 -0
  27. cync_lan-0.1.0/src/cync_lan.egg-info/top_level.txt +1 -0
  28. cync_lan-0.1.0/tests/test_ble_provision.py +283 -0
  29. cync_lan-0.1.0/tests/test_cloud_api.py +265 -0
  30. cync_lan-0.1.0/tests/test_devices.py +1421 -0
  31. cync_lan-0.1.0/tests/test_xlink_legacy.py +98 -0
cync_lan-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 baudneo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,381 @@
1
+ cync-lan (original)
2
+ License: MIT
3
+ Copyright (c) 2022 Zachary Linkletter
4
+ This project (github.com/Proxy-alt/cync-lan, forked via github.com/baudneo/cync-lan)
5
+ originated from https://github.com/iburistu/cync-lan.
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+
24
+ ---
25
+
26
+ cync2mqtt
27
+ License: Apache License 2.0
28
+ Source: https://github.com/juanboro/cync2mqtt
29
+ Most/all code from this project has since been removed or rewritten; this
30
+ attribution is kept for respect. Long live OSS.
31
+
32
+ Apache License
33
+ Version 2.0, January 2004
34
+ http://www.apache.org/licenses/
35
+
36
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
37
+
38
+ 1. Definitions.
39
+
40
+ "License" shall mean the terms and conditions for use, reproduction,
41
+ and distribution as defined by Sections 1 through 9 of this document.
42
+
43
+ "Licensor" shall mean the copyright owner or entity authorized by
44
+ the copyright owner that is granting the License.
45
+
46
+ "Legal Entity" shall mean the union of the acting entity and all
47
+ other entities that control, are controlled by, or are under common
48
+ control with that entity. For the purposes of this definition,
49
+ "control" means (i) the power, direct or indirect, to cause the
50
+ direction or management of such entity, whether by contract or
51
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
52
+ outstanding shares, or (iii) beneficial ownership of such entity.
53
+
54
+ "You" (or "Your") shall mean an individual or Legal Entity
55
+ exercising permissions granted by this License.
56
+
57
+ "Source" form shall mean the preferred form for making modifications,
58
+ including but not limited to software source code, documentation
59
+ source, and configuration files.
60
+
61
+ "Object" form shall mean any form resulting from mechanical
62
+ transformation or translation of a Source form, including but
63
+ not limited to compiled object code, generated documentation,
64
+ and conversions to other media types.
65
+
66
+ "Work" shall mean the work of authorship, whether in Source or
67
+ Object form, made available under the License, as indicated by a
68
+ copyright notice that is included in or attached to the work
69
+ (an example is provided in the Appendix below).
70
+
71
+ "Derivative Works" shall mean any work, whether in Source or Object
72
+ form, that is based on (or derived from) the Work and for which the
73
+ editorial revisions, annotations, elaborations, or other modifications
74
+ represent, as a whole, an original work of authorship. For the purposes
75
+ of this License, Derivative Works shall not include works that remain
76
+ separable from, or merely link (or bind by name) to the interfaces of,
77
+ the Work and Derivative Works thereof.
78
+
79
+ "Contribution" shall mean any work of authorship, including
80
+ the original version of the Work and any modifications or additions
81
+ to that Work or Derivative Works thereof, that is intentionally
82
+ submitted to Licensor for inclusion in the Work by the copyright owner
83
+ or by an individual or Legal Entity authorized to submit on behalf of
84
+ the copyright owner. For the purposes of this definition, "submitted"
85
+ means any form of electronic, verbal, or written communication sent
86
+ to the Licensor or its representatives, including but not limited to
87
+ communication on electronic mailing lists, source code control systems,
88
+ and issue tracking systems that are managed by, or on behalf of, the
89
+ Licensor for the purpose of discussing and improving the Work, but
90
+ excluding communication that is conspicuously marked or otherwise
91
+ designated in writing by the copyright owner as "Not a Contribution."
92
+
93
+ "Contributor" shall mean Licensor and any individual or Legal Entity
94
+ on behalf of whom a Contribution has been received by Licensor and
95
+ subsequently incorporated within the Work.
96
+
97
+ 2. Grant of Copyright License. Subject to the terms and conditions of
98
+ this License, each Contributor hereby grants to You a perpetual,
99
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
100
+ copyright license to reproduce, prepare Derivative Works of,
101
+ publicly display, publicly perform, sublicense, and distribute the
102
+ Work and such Derivative Works in Source or Object form.
103
+
104
+ 3. Grant of Patent License. Subject to the terms and conditions of
105
+ this License, each Contributor hereby grants to You a perpetual,
106
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
107
+ (except as stated in this section) patent license to make, have made,
108
+ use, offer to sell, sell, import, and otherwise transfer the Work,
109
+ where such license applies only to those patent claims licensable
110
+ by such Contributor that are necessarily infringed by their
111
+ Contribution(s) alone or by combination of their Contribution(s)
112
+ with the Work to which such Contribution(s) was submitted. If You
113
+ institute patent litigation against any entity (including a
114
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
115
+ or a Contribution incorporated within the Work constitutes direct
116
+ or contributory patent infringement, then any patent licenses
117
+ granted to You under this License for that Work shall terminate
118
+ as of the date such litigation is filed.
119
+
120
+ 4. Redistribution. You may reproduce and distribute copies of the
121
+ Work or Derivative Works thereof in any medium, with or without
122
+ modifications, and in Source or Object form, provided that You
123
+ meet the following conditions:
124
+
125
+ (a) You must give any other recipients of the Work or
126
+ Derivative Works a copy of this License; and
127
+
128
+ (b) You must cause any modified files to carry prominent notices
129
+ stating that You changed the files; and
130
+
131
+ (c) You must retain, in the Source form of any Derivative Works
132
+ that You distribute, all copyright, patent, trademark, and
133
+ attribution notices from the Source form of the Work,
134
+ excluding those notices that do not pertain to any part of
135
+ the Derivative Works; and
136
+
137
+ (d) If the Work includes a "NOTICE" text file as part of its
138
+ distribution, then any Derivative Works that You distribute must
139
+ include a readable copy of the attribution notices contained
140
+ within such NOTICE file, excluding those notices that do not
141
+ pertain to any part of the Derivative Works, in at least one
142
+ of the following places: within a NOTICE text file distributed
143
+ as part of the Derivative Works; within the Source form or
144
+ documentation, if provided along with the Derivative Works; or,
145
+ within a display generated by the Derivative Works, if and
146
+ wherever such third-party notices normally appear. The contents
147
+ of the NOTICE file are for informational purposes only and
148
+ do not modify the License. You may add Your own attribution
149
+ notices within Derivative Works that You distribute, alongside
150
+ or as an addendum to the NOTICE text from the Work, provided
151
+ that such additional attribution notices cannot be construed
152
+ as modifying the License.
153
+
154
+ You may add Your own copyright statement to Your modifications and
155
+ may provide additional or different license terms and conditions
156
+ for use, reproduction, or distribution of Your modifications, or
157
+ for any such Derivative Works as a whole, provided Your use,
158
+ reproduction, and distribution of the Work otherwise complies with
159
+ the conditions stated in this License.
160
+
161
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
162
+ any Contribution intentionally submitted for inclusion in the Work
163
+ by You to the Licensor shall be under the terms and conditions of
164
+ this License, without any additional terms or conditions.
165
+ Notwithstanding the above, nothing herein shall supersede or modify
166
+ the terms of any separate license agreement you may have executed
167
+ with Licensor regarding such Contributions.
168
+
169
+ 6. Trademarks. This License does not grant permission to use the trade
170
+ names, trademarks, service marks, or product names of the Licensor,
171
+ except as required for reasonable and customary use in describing the
172
+ origin of the Work and reproducing the content of the NOTICE file.
173
+
174
+ 7. Disclaimer of Warranty. Unless required by applicable law or
175
+ agreed to in writing, Licensor provides the Work (and each
176
+ Contributor provides its Contributions) on an "AS IS" BASIS,
177
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
178
+ implied, including, without limitation, any warranties or conditions
179
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
180
+ PARTICULAR PURPOSE. You are solely responsible for determining the
181
+ appropriateness of using or redistributing the Work and assume any
182
+ risks associated with Your exercise of permissions under this License.
183
+
184
+ 8. Limitation of Liability. In no event and under no legal theory,
185
+ whether in tort (including negligence), contract, or otherwise,
186
+ unless required by applicable law (such as deliberate and grossly
187
+ negligent acts) or agreed to in writing, shall any Contributor be
188
+ liable to You for damages, including any direct, indirect, special,
189
+ incidental, or consequential damages of any character arising as a
190
+ result of this License or out of the use or inability to use the
191
+ Work (including but not limited to damages for loss of goodwill,
192
+ work stoppage, computer failure or malfunction, or any and all
193
+ other commercial damages or losses), even if such Contributor
194
+ has been advised of the possibility of such damages.
195
+
196
+ 9. Accepting Warranty or Additional Liability. While redistributing
197
+ the Work or Derivative Works thereof, You may choose to offer,
198
+ and charge a fee for, acceptance of support, warranty, indemnity,
199
+ or other liability obligations and/or rights consistent with this
200
+ License. However, in accepting such obligations, You may act only
201
+ on Your own behalf and on Your sole responsibility, not on behalf
202
+ of any other Contributor, and only if You agree to indemnify,
203
+ defend, and hold each Contributor harmless for any liability
204
+ incurred by, or claims asserted against, such Contributor by reason
205
+ of your accepting any such warranty or additional liability.
206
+
207
+ END OF TERMS AND CONDITIONS
208
+
209
+ APPENDIX: How to apply the Apache License to your work.
210
+
211
+ To apply the Apache License to your work, attach the following
212
+ boilerplate notice, with the fields enclosed by brackets "[]"
213
+ replaced with your own identifying information. (Don't include
214
+ the brackets!) The text should be enclosed in the appropriate
215
+ comment syntax for the file format. We also recommend that a
216
+ file or class name and description of purpose be included on the
217
+ same "printed page" as the copyright notice for easier
218
+ identification within third-party archives.
219
+
220
+ Copyright [yyyy] [name of copyright owner]
221
+
222
+ Licensed under the Apache License, Version 2.0 (the "License");
223
+ you may not use this file except in compliance with the License.
224
+ You may obtain a copy of the License at
225
+
226
+ http://www.apache.org/licenses/LICENSE-2.0
227
+
228
+ Unless required by applicable law or agreed to in writing, software
229
+ distributed under the License is distributed on an "AS IS" BASIS,
230
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
231
+ See the License for the specific language governing permissions and
232
+ limitations under the License.
233
+
234
+ ---
235
+
236
+ Tailwind CSS
237
+ License: MIT
238
+ Copyright (c) Tailwind Labs, Inc.
239
+ Permission is hereby granted, free of charge, to any person obtaining a copy
240
+ of this software and associated documentation files (the "Software"), to deal
241
+ in the Software without restriction, including without limitation the rights
242
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
243
+ copies of the Software, and to permit persons to whom the Software is
244
+ furnished to do so, subject to the following conditions:
245
+
246
+ The above copyright notice and this permission notice shall be included in all
247
+ copies or substantial portions of the Software.
248
+
249
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
250
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
251
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
252
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
253
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
254
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
255
+ SOFTWARE.
256
+
257
+ ---
258
+
259
+ Prism.js
260
+ License: MIT
261
+ Copyright (c) 2012 Lea Verou
262
+ Permission is hereby granted, free of charge, to any person obtaining a copy
263
+ of this software and associated documentation files (the "Software"), to deal
264
+ in the Software without restriction, including without limitation the rights
265
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
266
+ copies of the Software, and to permit persons to whom the Software is
267
+ furnished to do so, subject to the following conditions:
268
+
269
+ The above copyright notice and this permission notice shall be included in all
270
+ copies or substantial portions of the Software.
271
+
272
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
273
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
274
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
275
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
276
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
277
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
278
+ SOFTWARE.
279
+
280
+ ---
281
+
282
+ Animate.css
283
+ Copyright 2021 Daniel Eden (“Licensor”)
284
+
285
+ Hippocratic License Version Number: 2.1.
286
+
287
+ Purpose.
288
+ The purpose of this License is for the Licensor named above to permit the Licensee (as defined below) broad
289
+ permission, if consistent with Human Rights Laws and Human Rights Principles (as each is defined below), to use and
290
+ work with the Software (as defined below) within the full scope of Licensor’s copyright and patent rights, if any,
291
+ in the Software, while ensuring attribution and protecting the Licensor from liability.
292
+
293
+ Permission and Conditions.
294
+ The Licensor grants permission by this license (“License”), free of charge, to the extent of Licensor’s rights under
295
+ applicable copyright and patent law, to any person or entity (the “Licensee”) obtaining a copy of this software and
296
+ associated documentation files (the “Software”), to do everything with the Software that would otherwise infringe
297
+ (i) the Licensor’s copyright in the Software or (ii) any patent claims to the Software that the Licensor can license
298
+ or becomes able to license, subject to all of the following terms and conditions:
299
+
300
+ * Acceptance.
301
+ This License is automatically offered to every person and entity subject to its terms and conditions. Licensee accepts
302
+ this License and agrees to its terms and conditions by taking any action with the Software that, absent this License,
303
+ would infringe any intellectual property right held by Licensor.
304
+
305
+ * Notice.
306
+ Licensee must ensure that everyone who gets a copy of any part of this Software from Licensee, with or without changes,
307
+ also receives the License and the above copyright notice (and if included by the Licensor, patent, trademark and
308
+ attribution notice). Licensee must cause any modified versions of the Software to carry prominent notices stating that
309
+ Licensee changed the Software. For clarity, although Licensee is free to create modifications of the Software and
310
+ distribute only the modified portion created by Licensee with additional or different terms, the portion of the
311
+ Software not modified must be distributed pursuant to this License. If anyone notifies Licensee in writing that
312
+ Licensee has not complied with this Notice section, Licensee can keep this License by taking all practical steps to
313
+ comply within 30 days after the notice. If Licensee does not do so, Licensee’s License (and all rights licensed
314
+ hereunder) shall end immediately.
315
+
316
+ * Compliance with Human Rights Principles and Human Rights Laws.
317
+ 1. Human Rights Principles.
318
+ (a) Licensee is advised to consult the articles of the United Nations Universal Declaration of Human Rights
319
+ and the United Nations Global Compact that define recognized principles of international human rights (the
320
+ “Human Rights Principles”). Licensee shall use the Software in a manner consistent with Human Rights Principles.
321
+ (b) Unless the Licensor and Licensee agree otherwise, any dispute, controversy, or claim arising out of or
322
+ relating to (i) Section 1(a) regarding Human Rights Principles, including the breach of Section 1(a),
323
+ termination of this License for breach of the Human Rights Principles, or invalidity of Section 1(a) or (ii) a
324
+ determination of whether any Law is consistent or in conflict with Human Rights Principles pursuant to Section
325
+ 2, below, shall be settled by arbitration in accordance with the Hague Rules on Business and Human Rights
326
+ Arbitration (the “Rules”); provided, however, that Licensee may elect not to participate in such arbitration,
327
+ in which event this License (and all rights licensed hereunder) shall end immediately. The number of arbitrators
328
+ shall be one unless the Rules require otherwise.
329
+
330
+ Unless both the Licensor and Licensee agree to the contrary: (1) All documents and information concerning the
331
+ arbitration shall be public and may be disclosed by any party; (2) The repository referred to under Article 43
332
+ of the Rules shall make available to the public in a timely manner all documents concerning the arbitration
333
+ which are communicated to it, including all submissions of the parties, all evidence admitted into the record
334
+ of the proceedings, all transcripts or other recordings of hearings and all orders, decisions and awards of the
335
+ arbitral tribunal, subject only to the arbitral tribunal's powers to take such measures as may be necessary to
336
+ safeguard the integrity of the arbitral process pursuant to Articles 18, 33, 41 and 42 of the Rules; and (3)
337
+ Article 26(6) of the Rules shall not apply.
338
+
339
+ 2. Human Rights Laws. The Software shall not be used by any person or entity for any systems, activities, or other
340
+ uses that violate any Human Rights Laws. “Human Rights Laws” means any applicable laws, regulations, or rules
341
+ (collectively, “Laws”) that protect human, civil, labor, privacy, political, environmental, security, economic,
342
+ due process, or similar rights; provided, however, that such Laws are consistent and not in conflict with Human
343
+ Rights Principles (a dispute over the consistency or a conflict between Laws and Human Rights Principles shall be
344
+ determined by arbitration as stated above). Where the Human Rights Laws of more than one jurisdiction are
345
+ applicable or in conflict with respect to the use of the Software, the Human Rights Laws that are most protective
346
+ of the individuals or groups harmed shall apply.
347
+
348
+ 3. Indemnity. Licensee shall hold harmless and indemnify Licensor (and any other contributor) against all losses,
349
+ damages, liabilities, deficiencies, claims, actions, judgments, settlements, interest, awards, penalties, fines,
350
+ costs, or expenses of whatever kind, including Licensor’s reasonable attorneys’ fees, arising out of or relating
351
+ to Licensee’s use of the Software in violation of Human Rights Laws or Human Rights Principles.
352
+
353
+ * Failure to Comply.
354
+ Any failure of Licensee to act according to the terms and conditions of this License is both a breach of the License
355
+ and an infringement of the intellectual property rights of the Licensor (subject to exceptions under Laws, e.g.,
356
+ fair use). In the event of a breach or infringement, the terms and conditions of this License may be enforced by
357
+ Licensor under the Laws of any jurisdiction to which Licensee is subject. Licensee also agrees that the Licensor
358
+ may enforce the terms and conditions of this License against Licensee through specific performance (or similar remedy
359
+ under Laws) to the extent permitted by Laws. For clarity, except in the event of a breach of this License, infringement,
360
+ or as otherwise stated in this License, Licensor may not terminate this License with Licensee.
361
+
362
+ * Enforceability and Interpretation.
363
+ If any term or provision of this License is determined to be invalid, illegal, or unenforceable by a court of competent
364
+ jurisdiction, then such invalidity, illegality, or unenforceability shall not affect any other term or provision of this
365
+ License or invalidate or render unenforceable such term or provision in any other jurisdiction; provided, however,
366
+ subject to a court modification pursuant to the immediately following sentence, if any term or provision of this License
367
+ pertaining to Human Rights Laws or Human Rights Principles is deemed invalid, illegal, or unenforceable against Licensee
368
+ by a court of competent jurisdiction, all rights in the Software granted to Licensee shall be deemed null and void as
369
+ between Licensor and Licensee. Upon a determination that any term or provision is invalid, illegal, or unenforceable,
370
+ to the extent permitted by Laws, the court may modify this License to affect the original purpose that the Software be
371
+ used in compliance with Human Rights Principles and Human Rights Laws as closely as possible. The language in this
372
+ License shall be interpreted as to its fair meaning and not strictly for or against any party.
373
+
374
+ * Disclaimer.
375
+ TO THE FULL EXTENT ALLOWED BY LAW, THIS SOFTWARE COMES “AS IS,” WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED, AND LICENSOR
376
+ AND ANY OTHER CONTRIBUTOR SHALL NOT BE LIABLE TO ANYONE FOR ANY DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN
377
+ CONNECTION WITH THE SOFTWARE OR THIS LICENSE, UNDER ANY KIND OF LEGAL CLAIM.
378
+
379
+ This Hippocratic License is an Ethical Source license (https://ethicalsource.dev) and is offered for use by licensors
380
+ and licensees at their own risk, on an “AS IS” basis, and with no warranties express or implied, to the maximum extent
381
+ permitted by Laws.
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: cync-lan
3
+ Version: 0.1.0
4
+ Summary: Core async protocol library for local LAN control of Cync/C by GE smart devices - device/session state machine, packet codec, cloud auth, and BLE provisioning
5
+ Author-email: baudneo <86508179+baudneo@users.noreply.github.com>
6
+ Project-URL: Homepage, https://github.com/Proxy-alt/cync-lan
7
+ Project-URL: Repository, https://github.com/Proxy-alt/cync-lan
8
+ Project-URL: Issues, https://github.com/Proxy-alt/cync-lan/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ License-File: LICENSE-3RD-PARTY
23
+ Requires-Dist: pyyaml==6.0.2
24
+ Requires-Dist: pydantic>=2.0.0
25
+ Requires-Dist: tzlocal>=5.3.1
26
+ Requires-Dist: cryptography>=46.0.7
27
+ Requires-Dist: aiohttp>=3.10.8
28
+ Provides-Extra: dev
29
+ Requires-Dist: python-dotenv>=1.1.0; extra == "dev"
30
+ Requires-Dist: pytest; extra == "dev"
31
+ Requires-Dist: pytest-asyncio; extra == "dev"
32
+ Provides-Extra: ble
33
+ Requires-Dist: bleak>=0.22.0; extra == "ble"
34
+ Dynamic: license-file
35
+
36
+ # cync-lan
37
+
38
+ Core async protocol library for local LAN control of Cync/C by GE smart
39
+ devices - the device/session TCP state machine, wire-format packet codec,
40
+ Cync cloud auth, and BLE GATT provisioning. No MQTT, no Docker, no CLI of
41
+ its own (aside from `cync-lan-ble-provision`, see below) - this package is
42
+ a dependency consumed by other projects, not something you run directly.
43
+
44
+ Requires [DNS redirection](https://github.com/Proxy-alt/cync-lan/blob/feature/ha-custom-component/docs/DNS.md)
45
+ of Cync's cloud hostnames to wherever this package's TCP server (`server.py`)
46
+ runs, same as every consumer of this package.
47
+
48
+ ## Consumers
49
+
50
+ - [`cync-lan-mqtt`](https://github.com/Proxy-alt/cync-lan/tree/python) - the
51
+ Docker/MQTT add-on (standalone daemon, MQTT-based Home Assistant
52
+ discovery, HTTP device-list exporter).
53
+ - [`custom_components/cync_lan`](https://github.com/Proxy-alt/cync-lan/tree/feature/ha-custom-component/custom_components/cync_lan) -
54
+ the native Home Assistant integration (talks to this package's device/
55
+ session objects directly, no MQTT).
56
+
57
+ See either of those repos/branches for end-user installation and setup -
58
+ this package by itself doesn't do anything without a consumer wiring it up
59
+ to a running event loop.
60
+
61
+ ## Installing
62
+
63
+ ```
64
+ pip install cync-lan
65
+ ```
66
+
67
+ Add the `ble` extra (`pip install "cync-lan[ble]"`) for BLE GATT
68
+ provisioning of factory-default devices via `bleak`.
69
+
70
+ ## License
71
+
72
+ MIT - see `LICENSE`.
@@ -0,0 +1,37 @@
1
+ # cync-lan
2
+
3
+ Core async protocol library for local LAN control of Cync/C by GE smart
4
+ devices - the device/session TCP state machine, wire-format packet codec,
5
+ Cync cloud auth, and BLE GATT provisioning. No MQTT, no Docker, no CLI of
6
+ its own (aside from `cync-lan-ble-provision`, see below) - this package is
7
+ a dependency consumed by other projects, not something you run directly.
8
+
9
+ Requires [DNS redirection](https://github.com/Proxy-alt/cync-lan/blob/feature/ha-custom-component/docs/DNS.md)
10
+ of Cync's cloud hostnames to wherever this package's TCP server (`server.py`)
11
+ runs, same as every consumer of this package.
12
+
13
+ ## Consumers
14
+
15
+ - [`cync-lan-mqtt`](https://github.com/Proxy-alt/cync-lan/tree/python) - the
16
+ Docker/MQTT add-on (standalone daemon, MQTT-based Home Assistant
17
+ discovery, HTTP device-list exporter).
18
+ - [`custom_components/cync_lan`](https://github.com/Proxy-alt/cync-lan/tree/feature/ha-custom-component/custom_components/cync_lan) -
19
+ the native Home Assistant integration (talks to this package's device/
20
+ session objects directly, no MQTT).
21
+
22
+ See either of those repos/branches for end-user installation and setup -
23
+ this package by itself doesn't do anything without a consumer wiring it up
24
+ to a running event loop.
25
+
26
+ ## Installing
27
+
28
+ ```
29
+ pip install cync-lan
30
+ ```
31
+
32
+ Add the `ble` extra (`pip install "cync-lan[ble]"`) for BLE GATT
33
+ provisioning of factory-default devices via `bleak`.
34
+
35
+ ## License
36
+
37
+ MIT - see `LICENSE`.
@@ -0,0 +1,65 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "cync-lan"
7
+ version = "0.1.0"
8
+ description = "Core async protocol library for local LAN control of Cync/C by GE smart devices - device/session state machine, packet codec, cloud auth, and BLE provisioning"
9
+ readme = "README.md"
10
+ authors = [{name = "baudneo", email = "86508179+baudneo@users.noreply.github.com"}]
11
+ classifiers = [
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3.9",
14
+ "Programming Language :: Python :: 3.10",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Programming Language :: Python :: 3.14",
19
+ "Operating System :: OS Independent",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Typing :: Typed",
22
+ ]
23
+ requires-python = ">=3.9"
24
+ dependencies = [
25
+ "pyyaml==6.0.2",
26
+ "pydantic>=2.0.0",
27
+ "tzlocal>=5.3.1",
28
+ "cryptography>=46.0.7",
29
+ "aiohttp>=3.10.8",
30
+ ]
31
+
32
+ [project.optional-dependencies]
33
+ dev = [
34
+ "python-dotenv>=1.1.0",
35
+ "pytest",
36
+ "pytest-asyncio",
37
+ ]
38
+ ble = [
39
+ "bleak>=0.22.0",
40
+ ]
41
+
42
+ [project.scripts]
43
+ cync-lan-ble-provision = "cync_lan.ble_provision:main"
44
+
45
+ [project.urls]
46
+ Homepage = "https://github.com/Proxy-alt/cync-lan"
47
+ Repository = "https://github.com/Proxy-alt/cync-lan"
48
+ Issues = "https://github.com/Proxy-alt/cync-lan/issues"
49
+
50
+ [tool.setuptools.package-data]
51
+ cync_lan = ["py.typed"]
52
+
53
+ [tool.ruff]
54
+ line-length = 88
55
+ target-version = "py314"
56
+
57
+ [tool.ruff.lint]
58
+ select = ["E", "F", "I", "B"]
59
+ ignore = []
60
+
61
+ [tool.ruff.format]
62
+ quote-style = "double"
63
+ indent-style = "space"
64
+ skip-magic-trailing-comma = false
65
+ line-ending = "auto"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ __version__: str = "0.1.0"