meshcore 2.1.24__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.

Potentially problematic release.


This version of meshcore might be problematic. Click here for more details.

Files changed (62) hide show
  1. meshcore-2.1.24/.github/python-test.yml +41 -0
  2. meshcore-2.1.24/.gitignore +3 -0
  3. meshcore-2.1.24/LICENSE +21 -0
  4. meshcore-2.1.24/PKG-INFO +638 -0
  5. meshcore-2.1.24/README.md +616 -0
  6. meshcore-2.1.24/examples/ble_chat.py +109 -0
  7. meshcore-2.1.24/examples/ble_pin_pairing_example.py +69 -0
  8. meshcore-2.1.24/examples/ble_private_key_export.py +102 -0
  9. meshcore-2.1.24/examples/ble_t1000_chan_msg.py +22 -0
  10. meshcore-2.1.24/examples/ble_t1000_custom_vars.py +17 -0
  11. meshcore-2.1.24/examples/ble_t1000_infos.py +16 -0
  12. meshcore-2.1.24/examples/ble_t1000_msg.py +24 -0
  13. meshcore-2.1.24/examples/ble_t1000_msg_retries.py +15 -0
  14. meshcore-2.1.24/examples/ble_t1000_set_cv.py +20 -0
  15. meshcore-2.1.24/examples/connection_events_example.py +87 -0
  16. meshcore-2.1.24/examples/mepo_mc_gps.py +25 -0
  17. meshcore-2.1.24/examples/pubsub_example.py +123 -0
  18. meshcore-2.1.24/examples/rf_packet_monitor.py +51 -0
  19. meshcore-2.1.24/examples/serial_battery_monitor.py +53 -0
  20. meshcore-2.1.24/examples/serial_channel_manager.py +116 -0
  21. meshcore-2.1.24/examples/serial_chat.py +114 -0
  22. meshcore-2.1.24/examples/serial_contacts.py +26 -0
  23. meshcore-2.1.24/examples/serial_infos.py +16 -0
  24. meshcore-2.1.24/examples/serial_msg.py +71 -0
  25. meshcore-2.1.24/examples/serial_repeater_status.py +81 -0
  26. meshcore-2.1.24/examples/serial_repeater_telemetry.py +61 -0
  27. meshcore-2.1.24/examples/serial_trace.py +80 -0
  28. meshcore-2.1.24/examples/tcp_chat.py +114 -0
  29. meshcore-2.1.24/examples/tcp_login_status.py +94 -0
  30. meshcore-2.1.24/examples/tcp_mchome_contacts.py +23 -0
  31. meshcore-2.1.24/examples/tcp_mchome_infos.py +17 -0
  32. meshcore-2.1.24/examples/tcp_mchome_msg.py +35 -0
  33. meshcore-2.1.24/examples/tcp_mchome_readmsgs.py +31 -0
  34. meshcore-2.1.24/pyproject.toml +28 -0
  35. meshcore-2.1.24/pytest.ini +1 -0
  36. meshcore-2.1.24/src/meshcore/__init__.py +25 -0
  37. meshcore-2.1.24/src/meshcore/ble_cx.py +171 -0
  38. meshcore-2.1.24/src/meshcore/commands/.binary.py.swp +0 -0
  39. meshcore-2.1.24/src/meshcore/commands/__init__.py +23 -0
  40. meshcore-2.1.24/src/meshcore/commands/base.py +185 -0
  41. meshcore-2.1.24/src/meshcore/commands/binary.py +244 -0
  42. meshcore-2.1.24/src/meshcore/commands/contact.py +145 -0
  43. meshcore-2.1.24/src/meshcore/commands/control_data.py +50 -0
  44. meshcore-2.1.24/src/meshcore/commands/device.py +207 -0
  45. meshcore-2.1.24/src/meshcore/commands/messaging.py +230 -0
  46. meshcore-2.1.24/src/meshcore/connection_manager.py +169 -0
  47. meshcore-2.1.24/src/meshcore/events.py +248 -0
  48. meshcore-2.1.24/src/meshcore/lpp_json_encoder.py +64 -0
  49. meshcore-2.1.24/src/meshcore/meshcore.py +469 -0
  50. meshcore-2.1.24/src/meshcore/packets.py +60 -0
  51. meshcore-2.1.24/src/meshcore/parsing.py +109 -0
  52. meshcore-2.1.24/src/meshcore/reader.py +678 -0
  53. meshcore-2.1.24/src/meshcore/serial_cx.py +118 -0
  54. meshcore-2.1.24/src/meshcore/tcp_cx.py +126 -0
  55. meshcore-2.1.24/tests/README.md +25 -0
  56. meshcore-2.1.24/tests/test_ble_connection.py +80 -0
  57. meshcore-2.1.24/tests/test_ble_pin_pairing.py +121 -0
  58. meshcore-2.1.24/tests/test_meshcore_ble_pin.py +35 -0
  59. meshcore-2.1.24/tests/unit/test_commands.py +320 -0
  60. meshcore-2.1.24/tests/unit/test_events.py +129 -0
  61. meshcore-2.1.24/tests/unit/test_private_key_export.py +153 -0
  62. meshcore-2.1.24/tests/unit/test_reader.py +89 -0
@@ -0,0 +1,41 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python package
5
+
6
+ on:
7
+ push:
8
+ branches: [ "main" ]
9
+ pull_request:
10
+ branches: [ "main" ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.10", "3.13"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install flake8 pytest
31
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32
+ - name: Lint with flake8
33
+ run: |
34
+ # TODO: Enable this later
35
+ # stop the build if there are Python syntax errors or undefined names
36
+ # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38
+ # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39
+ - name: Test with pytest
40
+ run: |
41
+ pytest
@@ -0,0 +1,3 @@
1
+ __pycache__
2
+ venv
3
+ dist
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Florent de Lamotte
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.