blaueis-core 0.1.0rc1__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 (81) hide show
  1. blaueis_core-0.1.0rc1/LICENSE +21 -0
  2. blaueis_core-0.1.0rc1/PKG-INFO +45 -0
  3. blaueis_core-0.1.0rc1/README.md +16 -0
  4. blaueis_core-0.1.0rc1/pyproject.toml +47 -0
  5. blaueis_core-0.1.0rc1/setup.cfg +4 -0
  6. blaueis_core-0.1.0rc1/src/blaueis/core/__init__.py +16 -0
  7. blaueis_core-0.1.0rc1/src/blaueis/core/codec.py +1234 -0
  8. blaueis_core-0.1.0rc1/src/blaueis/core/command.py +614 -0
  9. blaueis_core-0.1.0rc1/src/blaueis/core/crypto.py +246 -0
  10. blaueis_core-0.1.0rc1/src/blaueis/core/data/device_quirks/xtremesaveblue_full_profile_v1.yaml +203 -0
  11. blaueis_core-0.1.0rc1/src/blaueis/core/data/device_quirks/xtremesaveblue_power_quirk.yaml +45 -0
  12. blaueis_core-0.1.0rc1/src/blaueis/core/data/device_quirks_schema.json +65 -0
  13. blaueis_core-0.1.0rc1/src/blaueis/core/data/glossary.yaml +10086 -0
  14. blaueis_core-0.1.0rc1/src/blaueis/core/data/glossary_collisions.allow.yaml +36 -0
  15. blaueis_core-0.1.0rc1/src/blaueis/core/data/glossary_schema.json +1032 -0
  16. blaueis_core-0.1.0rc1/src/blaueis/core/debug_ring.py +250 -0
  17. blaueis_core-0.1.0rc1/src/blaueis/core/decode_predicates.py +52 -0
  18. blaueis_core-0.1.0rc1/src/blaueis/core/formula.py +103 -0
  19. blaueis_core-0.1.0rc1/src/blaueis/core/frame.py +509 -0
  20. blaueis_core-0.1.0rc1/src/blaueis/core/gate_anchors.py +127 -0
  21. blaueis_core-0.1.0rc1/src/blaueis/core/gate_eval.py +156 -0
  22. blaueis_core-0.1.0rc1/src/blaueis/core/glossary_override.py +337 -0
  23. blaueis_core-0.1.0rc1/src/blaueis/core/inventory.py +1151 -0
  24. blaueis_core-0.1.0rc1/src/blaueis/core/process.py +430 -0
  25. blaueis_core-0.1.0rc1/src/blaueis/core/query.py +194 -0
  26. blaueis_core-0.1.0rc1/src/blaueis/core/quirks.py +204 -0
  27. blaueis_core-0.1.0rc1/src/blaueis/core/scan_queries.py +200 -0
  28. blaueis_core-0.1.0rc1/src/blaueis/core/status.py +125 -0
  29. blaueis_core-0.1.0rc1/src/blaueis/core/ux_gating.py +108 -0
  30. blaueis_core-0.1.0rc1/src/blaueis/core/validation.py +196 -0
  31. blaueis_core-0.1.0rc1/src/blaueis_core.egg-info/PKG-INFO +45 -0
  32. blaueis_core-0.1.0rc1/src/blaueis_core.egg-info/SOURCES.txt +79 -0
  33. blaueis_core-0.1.0rc1/src/blaueis_core.egg-info/dependency_links.txt +1 -0
  34. blaueis_core-0.1.0rc1/src/blaueis_core.egg-info/requires.txt +7 -0
  35. blaueis_core-0.1.0rc1/src/blaueis_core.egg-info/top_level.txt +1 -0
  36. blaueis_core-0.1.0rc1/tests/test_apply_device_quirks.py +448 -0
  37. blaueis_core-0.1.0rc1/tests/test_b0b1_bulk_properties.py +537 -0
  38. blaueis_core-0.1.0rc1/tests/test_b0b1_property.py +394 -0
  39. blaueis_core-0.1.0rc1/tests/test_b0b1_status_handling.py +363 -0
  40. blaueis_core-0.1.0rc1/tests/test_b1_query_builder.py +51 -0
  41. blaueis_core-0.1.0rc1/tests/test_b5_integrity_guard.py +43 -0
  42. blaueis_core-0.1.0rc1/tests/test_breeze_family.py +173 -0
  43. blaueis_core-0.1.0rc1/tests/test_build_status.py +194 -0
  44. blaueis_core-0.1.0rc1/tests/test_cap_gate_over_offer.py +25 -0
  45. blaueis_core-0.1.0rc1/tests/test_caps_freeze.py +122 -0
  46. blaueis_core-0.1.0rc1/tests/test_capture_replay.py +278 -0
  47. blaueis_core-0.1.0rc1/tests/test_category_boundary.py +125 -0
  48. blaueis_core-0.1.0rc1/tests/test_command_builder.py +110 -0
  49. blaueis_core-0.1.0rc1/tests/test_command_mask.py +144 -0
  50. blaueis_core-0.1.0rc1/tests/test_crypto_v2.py +134 -0
  51. blaueis_core-0.1.0rc1/tests/test_debug_ring.py +264 -0
  52. blaueis_core-0.1.0rc1/tests/test_decode_predicates.py +120 -0
  53. blaueis_core-0.1.0rc1/tests/test_decode_retention.py +89 -0
  54. blaueis_core-0.1.0rc1/tests/test_default_constraints.py +336 -0
  55. blaueis_core-0.1.0rc1/tests/test_dissector_gen.py +231 -0
  56. blaueis_core-0.1.0rc1/tests/test_duration_counter_codec.py +81 -0
  57. blaueis_core-0.1.0rc1/tests/test_error_paths.py +103 -0
  58. blaueis_core-0.1.0rc1/tests/test_fan_mode_labels.py +113 -0
  59. blaueis_core-0.1.0rc1/tests/test_field_boundary_coverage.py +544 -0
  60. blaueis_core-0.1.0rc1/tests/test_field_query.py +313 -0
  61. blaueis_core-0.1.0rc1/tests/test_filter_clean.py +89 -0
  62. blaueis_core-0.1.0rc1/tests/test_formula_evaluator.py +103 -0
  63. blaueis_core-0.1.0rc1/tests/test_frame.py +148 -0
  64. blaueis_core-0.1.0rc1/tests/test_frames_dict.py +487 -0
  65. blaueis_core-0.1.0rc1/tests/test_gate_anchors.py +103 -0
  66. blaueis_core-0.1.0rc1/tests/test_gate_eval.py +263 -0
  67. blaueis_core-0.1.0rc1/tests/test_glossary_invariants.py +285 -0
  68. blaueis_core-0.1.0rc1/tests/test_glossary_override.py +376 -0
  69. blaueis_core-0.1.0rc1/tests/test_glossary_override_sticky_never.py +121 -0
  70. blaueis_core-0.1.0rc1/tests/test_inventory.py +469 -0
  71. blaueis_core-0.1.0rc1/tests/test_last_ingest_at.py +93 -0
  72. blaueis_core-0.1.0rc1/tests/test_multibyte_encoding.py +291 -0
  73. blaueis_core-0.1.0rc1/tests/test_pipeline.py +127 -0
  74. blaueis_core-0.1.0rc1/tests/test_process_frame.py +154 -0
  75. blaueis_core-0.1.0rc1/tests/test_scan_queries.py +72 -0
  76. blaueis_core-0.1.0rc1/tests/test_scan_queue.py +252 -0
  77. blaueis_core-0.1.0rc1/tests/test_schema_validation.py +242 -0
  78. blaueis_core-0.1.0rc1/tests/test_set_command_preflight.py +664 -0
  79. blaueis_core-0.1.0rc1/tests/test_ux_gating.py +128 -0
  80. blaueis_core-0.1.0rc1/tests/test_validation.py +316 -0
  81. blaueis_core-0.1.0rc1/tests/test_value_suppression.py +368 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fabian Schwamborn
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,45 @@
1
+ Metadata-Version: 2.4
2
+ Name: blaueis-core
3
+ Version: 0.1.0rc1
4
+ Summary: Midea HVAC serial protocol library — codec, glossary, state, query, command
5
+ Author: Fabian Schwamborn
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/fabcoded/blaueis-libmidea
8
+ Project-URL: Repository, https://github.com/fabcoded/blaueis-libmidea
9
+ Project-URL: Documentation, https://github.com/fabcoded/blaueis-libmidea/tree/main/docs
10
+ Project-URL: Issues, https://github.com/fabcoded/blaueis-libmidea/issues
11
+ Keywords: midea,hvac,air-conditioner,uart,home-automation
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Home Automation
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: pyyaml>=6.0
23
+ Requires-Dist: jsonschema>=4.0
24
+ Requires-Dist: cryptography>=41.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=7.0; extra == "dev"
27
+ Requires-Dist: ruff>=0.4; extra == "dev"
28
+ Dynamic: license-file
29
+
30
+ # blaueis-core
31
+
32
+ Midea HVAC serial-protocol library — codec, glossary, state, query, and
33
+ command construction for Midea AC units.
34
+
35
+ ## Install
36
+
37
+ ```sh
38
+ pip install blaueis-core
39
+ ```
40
+
41
+ ## Documentation
42
+
43
+ Part of the [blaueis-libmidea](https://github.com/fabcoded/blaueis-libmidea)
44
+ project. See the [repo docs](https://github.com/fabcoded/blaueis-libmidea/tree/main/docs)
45
+ for architecture, protocol, and versioning details.
@@ -0,0 +1,16 @@
1
+ # blaueis-core
2
+
3
+ Midea HVAC serial-protocol library — codec, glossary, state, query, and
4
+ command construction for Midea AC units.
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ pip install blaueis-core
10
+ ```
11
+
12
+ ## Documentation
13
+
14
+ Part of the [blaueis-libmidea](https://github.com/fabcoded/blaueis-libmidea)
15
+ project. See the [repo docs](https://github.com/fabcoded/blaueis-libmidea/tree/main/docs)
16
+ for architecture, protocol, and versioning details.
@@ -0,0 +1,47 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "blaueis-core"
7
+ version = "0.1.0rc1"
8
+ description = "Midea HVAC serial protocol library — codec, glossary, state, query, command"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{name = "Fabian Schwamborn"}]
14
+ keywords = ["midea", "hvac", "air-conditioner", "uart", "home-automation"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Topic :: Home Automation",
23
+ ]
24
+ dependencies = [
25
+ "pyyaml>=6.0",
26
+ "jsonschema>=4.0",
27
+ "cryptography>=41.0",
28
+ ]
29
+
30
+ [project.optional-dependencies]
31
+ dev = ["pytest>=7.0", "ruff>=0.4"]
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/fabcoded/blaueis-libmidea"
35
+ Repository = "https://github.com/fabcoded/blaueis-libmidea"
36
+ Documentation = "https://github.com/fabcoded/blaueis-libmidea/tree/main/docs"
37
+ Issues = "https://github.com/fabcoded/blaueis-libmidea/issues"
38
+
39
+ [tool.setuptools.packages.find]
40
+ where = ["src"]
41
+
42
+ [tool.setuptools.package-data]
43
+ "blaueis.core" = ["data/*.yaml", "data/*.json", "data/device_quirks/*.yaml"]
44
+
45
+ [tool.pytest.ini_options]
46
+ testpaths = ["tests"]
47
+ python_files = ["test_*.py", "validate_*.py"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,16 @@
1
+ """blaueis.core — Midea HVAC serial protocol library.
2
+
3
+ Pure sync Python. No I/O, no async, no transport. Glossary-driven
4
+ codec, state management, command building, and field query API.
5
+
6
+ Public API:
7
+
8
+ from blaueis.core.codec import load_glossary, decode_frame_fields, encode_field
9
+ from blaueis.core.status import build_status
10
+ from blaueis.core.process import process_raw_frame, finalize_capabilities
11
+ from blaueis.core.query import read_field
12
+ from blaueis.core.command import build_command_body, build_b0_command_body
13
+ from blaueis.core.quirks import apply_device_quirks, load_device_quirks
14
+ from blaueis.core.frame import build_frame, parse_frame
15
+ from blaueis.core.codec import identify_frame, infer_generation
16
+ """