layrz-sdk 3.1.30__tar.gz → 3.1.32__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 layrz-sdk might be problematic. Click here for more details.

Files changed (111) hide show
  1. layrz_sdk-3.1.32/.github/workflows/checks.yml +50 -0
  2. layrz_sdk-3.1.32/.github/workflows/deploy.yml +32 -0
  3. layrz_sdk-3.1.32/.gitignore +19 -0
  4. layrz_sdk-3.1.32/.vscode/extensions.json +9 -0
  5. layrz_sdk-3.1.32/CHANGELOG.md +456 -0
  6. layrz_sdk-3.1.32/CODE_OF_CONDUCT.md +29 -0
  7. layrz_sdk-3.1.32/CONTRIBUTING.md +26 -0
  8. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/PKG-INFO +3 -4
  9. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/__init__.py +10 -0
  10. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/asset.py +1 -1
  11. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/asset_constants.py +2 -13
  12. layrz_sdk-3.1.32/layrz_sdk/entities/ats_reception.py +25 -0
  13. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/payload.py +3 -11
  14. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/service.py +1 -1
  15. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/device.py +1 -1
  16. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/event.py +2 -3
  17. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/telemetry/assetmessage.py +2 -10
  18. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/telemetry/devicemessage.py +1 -5
  19. layrz_sdk-3.1.32/layrz_sdk/entities/trigger.py +119 -0
  20. layrz_sdk-3.1.32/layrz_sdk/entities/trigger_kind.py +88 -0
  21. layrz_sdk-3.1.32/layrz_sdk/entities/weekday.py +29 -0
  22. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk.egg-info/PKG-INFO +3 -4
  23. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk.egg-info/SOURCES.txt +13 -0
  24. layrz_sdk-3.1.32/manual_deploy.py +14 -0
  25. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/pyproject.toml +4 -3
  26. layrz_sdk-3.1.32/tests/__init__.py +0 -0
  27. layrz_sdk-3.1.32/uv.lock +1059 -0
  28. layrz_sdk-3.1.30/layrz_sdk/entities/trigger.py +0 -11
  29. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/LICENSE +0 -0
  30. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/README.md +0 -0
  31. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/__init__.py +0 -0
  32. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/backwards.py +0 -0
  33. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/constants.py +0 -0
  34. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/asset_operation_mode.py +0 -0
  35. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/__init__.py +0 -0
  36. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/request.py +0 -0
  37. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/response.py +0 -0
  38. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/result.py +0 -0
  39. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/broadcast/status.py +0 -0
  40. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/case.py +0 -0
  41. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/case_ignored_status.py +0 -0
  42. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/case_status.py +0 -0
  43. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/axis_config.py +0 -0
  44. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/bar_chart.py +0 -0
  45. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_alignment.py +0 -0
  46. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_color.py +0 -0
  47. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_configuration.py +0 -0
  48. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_data_serie.py +0 -0
  49. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_data_serie_type.py +0 -0
  50. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_data_type.py +0 -0
  51. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/chart_render_technology.py +0 -0
  52. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/column_chart.py +0 -0
  53. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/html_chart.py +0 -0
  54. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/line_chart.py +0 -0
  55. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/map_center_type.py +0 -0
  56. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/map_chart.py +0 -0
  57. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/map_point.py +0 -0
  58. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/number_chart.py +0 -0
  59. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/pie_chart.py +0 -0
  60. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/radar_chart.py +0 -0
  61. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/radial_bar_chart.py +0 -0
  62. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/scatter_chart.py +0 -0
  63. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/scatter_serie.py +0 -0
  64. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/scatter_serie_item.py +0 -0
  65. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/table_chart.py +0 -0
  66. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/table_header.py +0 -0
  67. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/table_row.py +0 -0
  68. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/timeline_chart.py +0 -0
  69. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/timeline_serie.py +0 -0
  70. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/charts/timeline_serie_item.py +0 -0
  71. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/checkpoint.py +0 -0
  72. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/comment.py +0 -0
  73. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/custom_field.py +0 -0
  74. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/custom_report_page.py +0 -0
  75. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/function.py +0 -0
  76. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/geofence.py +0 -0
  77. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/last_message.py +0 -0
  78. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/message.py +0 -0
  79. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/__init__.py +0 -0
  80. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/config.py +0 -0
  81. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/parameter.py +0 -0
  82. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/schema.py +0 -0
  83. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/status.py +0 -0
  84. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/modbus/wait.py +0 -0
  85. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/outbound_service.py +0 -0
  86. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/position.py +0 -0
  87. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/presence_type.py +0 -0
  88. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report.py +0 -0
  89. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_col.py +0 -0
  90. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_configuration.py +0 -0
  91. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_data_type.py +0 -0
  92. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_format.py +0 -0
  93. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_header.py +0 -0
  94. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_page.py +0 -0
  95. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/report_row.py +0 -0
  96. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/sensor.py +0 -0
  97. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/static_position.py +0 -0
  98. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/telemetry/__init__.py +0 -0
  99. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/text_alignment.py +0 -0
  100. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/user.py +0 -0
  101. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/entities/waypoint.py +0 -0
  102. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/helpers/__init__.py +0 -0
  103. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/helpers/color.py +0 -0
  104. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/lcl/__init__.py +0 -0
  105. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/lcl/core.py +0 -0
  106. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk/py.typed +0 -0
  107. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk.egg-info/dependency_links.txt +0 -0
  108. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk.egg-info/requires.txt +0 -0
  109. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/layrz_sdk.egg-info/top_level.txt +0 -0
  110. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/setup.cfg +0 -0
  111. {layrz_sdk-3.1.30 → layrz_sdk-3.1.32}/tests/test_lcl.py +0 -0
@@ -0,0 +1,50 @@
1
+ name: "Checks before merging"
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize
8
+ - reopened
9
+ branches:
10
+ - '*'
11
+
12
+ jobs:
13
+ lint:
14
+ runs-on: ubuntu-latest
15
+ container:
16
+ image: ghcr.io/goldenm-software/python-builder:uv-3.13-x86
17
+ options: --user root
18
+ credentials:
19
+ username: ${{ github.repository_owner }}
20
+ password: ${{ secrets.GITHUB_TOKEN }}
21
+
22
+ steps:
23
+ - name: Checkout
24
+ uses: actions/checkout@v4
25
+
26
+ - name: Lint
27
+ run: |
28
+ uv sync --only-group dev
29
+ uv run ruff check
30
+ uv run mypy .
31
+
32
+ uniitest:
33
+ needs: lint
34
+ runs-on: ubuntu-latest
35
+ container:
36
+ image: ghcr.io/goldenm-software/python-builder:uv-3.13-x86
37
+ options: --user root
38
+ credentials:
39
+ username: ${{ github.repository_owner }}
40
+ password: ${{ secrets.GITHUB_TOKEN }}
41
+
42
+ steps:
43
+ - name: Checkout
44
+ uses: actions/checkout@v4
45
+
46
+ - name: Install dependencies
47
+ run: |
48
+ uv sync
49
+ uv run pytest ./tests/
50
+
@@ -0,0 +1,32 @@
1
+ name: "Deploy package"
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+
7
+ jobs:
8
+ build:
9
+ permissions:
10
+ id-token: write
11
+ contents: read
12
+ repository-projects: read
13
+ packages: read
14
+
15
+ runs-on: ubuntu-latest
16
+ container:
17
+ image: ghcr.io/goldenm-software/python-builder:uv-3.13-x86
18
+ options: --user root
19
+ credentials:
20
+ username: ${{ github.repository_owner }}
21
+ password: ${{ secrets.GITHUB_TOKEN }}
22
+
23
+ steps:
24
+ - name: Checkout
25
+ uses: actions/checkout@v4
26
+
27
+ - name: Build and upload
28
+ run: |
29
+ uv venv --python 3.13
30
+ uv sync --only-group dev
31
+ uv run python -m build
32
+ uv run python -m twine upload -u ${{ secrets.LAYRZ_PYPI_USERNAME }} -p ${{ secrets.LAYRZ_PYPI_PASSWORD }} dist/*
@@ -0,0 +1,19 @@
1
+ /dist
2
+ /build
3
+ /*.egg-info
4
+ /.pypirc
5
+ /test.py
6
+ /**/*.pyc
7
+ /.venv
8
+ /site
9
+
10
+ /**/*/__pycache__
11
+
12
+ tests.py
13
+ *.xlsx
14
+
15
+ .ruff_cache
16
+ .mypy_cache
17
+ .pytest_cache
18
+
19
+ .env
@@ -0,0 +1,9 @@
1
+ {
2
+ "recommendations": [
3
+ "ms-python.python",
4
+ "charliermarsh.ruff",
5
+ "ms-python.vscode-pylance",
6
+ "njpwerner.autodocstring",
7
+ "oderwat.indent-rainbow"
8
+ ]
9
+ }
@@ -0,0 +1,456 @@
1
+ # Changelog
2
+
3
+ ## 3.1.32
4
+
5
+ - New `AtsREception` model
6
+
7
+ ## 3.1.31
8
+
9
+ - Expanded `Trigger` model with new fields (Almost closed to the Dart equivalent on [`layrz_models`](https://pub.dev/packages/layrz_models))
10
+ - Added `Weekday` enum to represent days of the week
11
+ - Added `TriggerKind`, `TriggerGeofenceKind`, `TriggerCaseKind`, and `TriggerCommentPattern` enums to represent different trigger types and patterns
12
+ - Almost removed all aliases from the models
13
+
14
+ ## 3.1.30
15
+
16
+ - New `Function` model
17
+
18
+ ## 3.1.29
19
+
20
+ - Serialization changes
21
+
22
+ ## 3.1.28
23
+
24
+ - Added `BroadcastPayload` and `BroadcastService` models
25
+
26
+ ## 3.1.27
27
+
28
+ - Fixes on `ChartDataSerieType` that can have a `None` value, removed str inheritance to avoid issues
29
+
30
+ ## 3.1.26
31
+
32
+ - Reverted StrEnum in favor to str + Enum due to compatibility issues
33
+
34
+ ## 3.1.25
35
+
36
+ - Added `AssetConstants` class to hold constants related to assets on sensors, triggers and functions.
37
+
38
+ ## 3.1.24
39
+ ## 3.1.23
40
+ ## 3.1.22
41
+
42
+ - Backwards compatibility for `StrEnum` in Python 3.11 and below, now using `layrz_sdk.backwards.StrEnum` for versions below 3.11.
43
+
44
+ ## 3.1.21
45
+
46
+ - Moved all enums to `StrEnum` and added compatibility for Python 3.11 and below.
47
+
48
+ ## 3.1.20
49
+
50
+ - Fixed condition of `StrEnum` on Python 3.11, for versions below 3.11 it will use `strenum.StrEnum` instead of `enum.StrEnum`
51
+
52
+ ## 3.1.19
53
+
54
+ - Added serializers for messages
55
+
56
+ ## 3.1.18
57
+
58
+ - Fixes
59
+
60
+ ## 3.1.17
61
+
62
+ - Fixes
63
+
64
+ ## 3.1.16
65
+
66
+ - Added `primary_id` into `Asset`
67
+
68
+ ## 3.1.15
69
+
70
+ - Added some parameters on `Asset` and `Device` classes
71
+ - Added `AssetMessage` and `DeviceMessage` classes to handle messages related to assets and devices
72
+
73
+ ## 3.1.14
74
+
75
+ - Some changes related to the `Case` entity
76
+
77
+ ## 3.1.12
78
+
79
+ - Adjustment of all typings
80
+
81
+ ## 3.1.11
82
+
83
+ - Fixes on data casting in `Message` class
84
+
85
+ ## 3.1.10
86
+
87
+ - Updated docstrings to provide more information about types and usage
88
+
89
+ ## 3.1.9
90
+
91
+ - Changed `json` to `parsed` on `BroadcastResponse` and `BroadcastRequest` to avoid confusion with the `json` property from `pydantic.BaseModel`
92
+
93
+ ## 3.1.8
94
+
95
+ - Replaced `str` in favor of using `Path` object to manage paths on `Report` export methods
96
+
97
+ ## 3.1.7
98
+
99
+ - Removed validation of asset type `SINGLE`
100
+
101
+ ## 3.1.6
102
+
103
+ - Fixes on model validate on `Asset` class
104
+
105
+ ## 3.1.5
106
+
107
+ - Changed `width` on `ReportHeader` from `int` to `float` due to backwards compatibility
108
+
109
+ ## 3.1.4
110
+
111
+ - Fixed iteration searching for the primary device on `Asset` class
112
+
113
+ ## 3.1.3
114
+
115
+ - Fixes on `Asset` entity validation, found by @simonjrojas!
116
+
117
+ ## 3.1.2
118
+
119
+ - Set as optional the `asset_type` argument in `Asset` class
120
+
121
+ ## 3.1.1
122
+
123
+ - Small fixes on some models to backwards compatibility
124
+
125
+ ## 3.1.0
126
+
127
+ - Migrated all models to Pydantic
128
+ - Removed models `Transaction`.
129
+ - Added `mypy` to the project to enforce type checking
130
+ - Migrated from `uniitest` to `pytest` to the project to enforce unit testing
131
+
132
+ ## 3.0.14
133
+
134
+ - Fixes on `GET_CUSTOM_FIELD` LCL function, now accepts a default value as the second argument (Fallback as '')
135
+
136
+ ## 3.0.13
137
+
138
+ - Added `LastMessage` entity to be used in `Trigger`s
139
+
140
+ ## 3.0.12
141
+
142
+ - Moved `Geofence` model from `checkpoints` to `general`
143
+ - Added `PresenceType` enum to be used in `Event` model
144
+
145
+ ## 3.0.11
146
+
147
+ - Added way to standarize the `int` and `float` arguments to `float`. Allowing comparison between `int` and `float` values in LCL formulas
148
+
149
+ ## 3.0.10
150
+
151
+ - Removed Self type annotation from all classes
152
+
153
+ ## 3.0.9
154
+
155
+ - Added different return data of Report when password is set
156
+
157
+ ## 3.0.8
158
+
159
+ - New linter and formatter using ruff
160
+ - Added typings on all classes and functions available
161
+ - New Report export format PDF (Not implemented yet)
162
+ - Added new way to encrypt .xslx files directly using the `Report` class
163
+
164
+ ## 3.0.7
165
+
166
+ - Added the value of `AssetOperationMode.ZONE`
167
+ - Added a check for `Asset.operation_mode == ASSETMULTIPLE` while savind the list of child's
168
+ - Clarified the deprecation of `ReportRow.height`
169
+
170
+ ## 3.0.6
171
+
172
+ - Changed print in `LineChart` to a `log.warning` and `log.fatal` in case of error
173
+
174
+ ## 3.0.3
175
+
176
+ - Implemented new chart rendering library `syncfusion_flutter_charts` for Flutter.
177
+ - Changed rendering method for `LineChart`, now you should provide the `technology` to select the rendering library.
178
+
179
+ ## 3.0.2
180
+
181
+ - Fixed issue with `IF()` LCL function, now only validates the nullability of the first argument.
182
+ - Added new `VERSION()` LCL Function to get the current version of the package
183
+
184
+ ## 3.0.1
185
+
186
+ - Added None validation on every LCL function, when any of the arguments is None, the function will return None
187
+ - Added unit tests for all LCL functions
188
+
189
+ ## 3.0.0
190
+
191
+ - Removed shared namespace to improve compatibility with other packages
192
+
193
+ ## 2.2.4
194
+
195
+ - Defined new class `ReportConfiguration` to handle the configuration of the report in Python scripts
196
+
197
+ ## 2.2.3
198
+
199
+ - Property `text_color` deprectated in `ReportCol`, replaced by a luminance-based color using the background color
200
+ - Property `text_color` deprectated in `ReportHeader`, replaced by a luminance-based color using the background color
201
+ - Property `width` deprectated in `ReportHeader`, replaced by the function `autofit()` to automatically fit the header width
202
+ - New entity `CustomReportPage` that receives a custom builder function to build the page
203
+ - Property `export_format` deprecated in `Report`, replaced to an argument of the function `export()`
204
+
205
+ ## 2.2.2
206
+
207
+ - Updated `AssetOperationMode` to support `STATIC` and removal of `FAILOVER` mode
208
+
209
+ ## 2.2.1
210
+
211
+ - Bug fixes related to removing __ from all classes
212
+
213
+ ## 2.2.0
214
+
215
+ - Removed support to Python 3.12 due to a shared namespace issue.
216
+ - Reorganized classes to better support.
217
+ - Added typings to all classes and functions.
218
+
219
+ ## 2.1.5
220
+
221
+ - Added declarative typing on all LCL functions
222
+ - Added support for timezone in `UNIX_TO_STR` LCL function
223
+
224
+ ## 2.1.3
225
+
226
+ - Changed build mode to pyproject.toml
227
+ - Updated `LcLCore.perform()` function to receive additional globals and locals in their arguments
228
+
229
+ ## v2.1.2
230
+
231
+ - Add UNIX_TO_STR LCL function
232
+
233
+ ## v2.1.1
234
+
235
+ - Added `compact` in the json return format in reports
236
+
237
+ ## v2.1.0
238
+
239
+ - Add bold format option to Col class
240
+ - Add freeze header option to Page class
241
+
242
+ ## v2.0.1
243
+
244
+ - Fixes on package namespace
245
+
246
+ ## v2.0.0
247
+
248
+ - Deprecated `lcl.core` module
249
+ - Changed `layrzsdk` to `layrz.sdk` package (With unified Layrz namespace)
250
+
251
+ ## v1.4.5
252
+
253
+ - Added CaseIgnoredStatus to init file
254
+
255
+ ## v1.4.4
256
+
257
+ - Added CaseIgnoredStatus to Case entity
258
+
259
+ ## v1.4.3
260
+
261
+ - Added new ChartType: TableChart and NumberChart
262
+ - Starting to replace documentation format from unstructured to a structured format
263
+
264
+ ## v1.4.2
265
+
266
+ - Fix, added SUBSTRING LCL to global functions
267
+
268
+ ## v1.4.1
269
+
270
+ - Fixed LineChart xAxis Datetime conversion for CanvasJS, now will multiply the timestamp by 1000 to use milliseconds
271
+
272
+ ## v1.4.0
273
+
274
+ - Added support for Flutter `graphic` library
275
+ - LineChart
276
+ - AreaChart (Replaced previous AreaChart to a temporal extend of LineChart)
277
+ - BarChart
278
+ - ColumnChart
279
+ - PieChart
280
+ - MapChart
281
+ - ScatterChart
282
+ - RadialBarChart
283
+
284
+ - Future deprecations:
285
+ - HTMLChart
286
+ - TimelineChart
287
+ - RadarChart
288
+
289
+ ## v1.3.9
290
+
291
+ - Internal changes related to GitLab CI automation
292
+
293
+ ## v1.3.8
294
+
295
+ - Added SUBSTRING LCL function
296
+
297
+ ## v.1.3.7
298
+
299
+ - Added sequence in cases
300
+
301
+ ## v1.3.6
302
+
303
+ - Added new Map Chart
304
+ - Added required entity MapPoint
305
+ - Added required enum MapCenterType
306
+ - Added new HTML Chart
307
+
308
+ ## v1.3.5
309
+
310
+ - Bug fix related to formula perform, added PRIMARY_DEVICE to simulation environment
311
+
312
+ ## v1.3.4
313
+
314
+ - Added Transaction entity for REPCOM reports
315
+
316
+ ## v1.3.3
317
+
318
+ - Added PRIMARY_DEVICE() function to Layrz Compute Language
319
+
320
+ ## v1.3.2
321
+
322
+ - Updated styles of charts return object to ApexCharts or CanvasJS
323
+ - Replaced all .rst files to .md files
324
+
325
+ ## v1.3.1
326
+
327
+ - Removed markerSize (in CanvasJS) for dashed series
328
+
329
+ ## v1.3.0
330
+
331
+ - Added support for CanvasJS Javascript Library
332
+ - Deprecated to_apexcharts property in charts.
333
+ - New method render() in charts with support for multiple Javascript rendering library
334
+ - Added color helpers in layrzsdk.helpers
335
+
336
+ ## v1.2.6
337
+
338
+ - Removed dataLabels in almost all charts (Except Pie and RadialBar)
339
+
340
+ ## v1.2.5
341
+
342
+ - Optimizations for Javascript renderer
343
+
344
+ ## v1.2.4
345
+
346
+ - Added dashed attribute to ChartDataSerie
347
+ - Added the Possibility to mix charts, only available for:
348
+ - LineChart
349
+ - AreaChart
350
+ - ColumnChart
351
+ - ScatterChart (Only as serie, not as main chart)
352
+
353
+ ## v1.2.3
354
+
355
+ - Added new value in BroadcastStatus
356
+
357
+ ## v1.2.2
358
+
359
+ - Updated ReportCol entity to set new default values
360
+ - New entity ReportDataType
361
+ - Possibility to export directly to the Report class
362
+ - Re-organized entities/ folder
363
+ - Added Broadcasts entities
364
+
365
+ ## v1.2.1
366
+
367
+ - Added Report Col entity
368
+
369
+ ## v1.2.0
370
+
371
+ - Added reports entities
372
+
373
+ ## v1.1.4
374
+
375
+ - Bug fixes
376
+
377
+ ## v1.1.3
378
+
379
+ - Bug fixes
380
+
381
+ ## v1.1.2
382
+
383
+ - Bug fixes
384
+
385
+ ## v1.1.1
386
+
387
+ - Bug fixes
388
+
389
+ ## v1.1.0
390
+
391
+ - Reorganized files
392
+ - Added new Charts entities
393
+
394
+ ## v1.0.14
395
+
396
+ - Added CONTAINS, STARTS_WITH, ENDS_WITH functions to the Layrz Computed Language
397
+
398
+ ## v1.0.13
399
+
400
+ - Fixed missing import into `layrzsdk.entities.__init__.py`
401
+
402
+ ## v1.0.12
403
+
404
+ - Added Geofence, Comment, Waypoint and Checkpoint entities
405
+
406
+ ## v1.0.11
407
+
408
+ - Added User, Comment and Case entities
409
+
410
+ ## v1.0.10
411
+
412
+ - Fixes
413
+
414
+ ## v1.0.9
415
+
416
+ - Added Event and Trigger entities
417
+ - Renamed file `mesage.py` to `message.py`
418
+
419
+ ## v1.0.8
420
+
421
+ - Added title getter of all charts entities
422
+
423
+ ## v1.0.7
424
+
425
+ - Added PieChart, BarChart, and RadialBarChart entities
426
+
427
+ ## v1.0.6
428
+
429
+ - Fixed STING to STRING bug in ChartDataType enum
430
+
431
+ ## v1.0.5
432
+
433
+ - Bug fixes
434
+
435
+ ## v1.0.4
436
+
437
+ - Added data_type argument of ChartDataSerie
438
+
439
+ ## v1.0.3
440
+
441
+ - Added Chart configuration entity
442
+
443
+ ## v1.0.2
444
+
445
+ - Added entities for Range Charts:
446
+ - Line Charts
447
+ - Area Charts
448
+ - Column Charts
449
+
450
+ ## v1.0.1
451
+
452
+ - Added entities for Sensors and Triggers
453
+
454
+ ## v1.0.0
455
+
456
+ - Initial release
@@ -0,0 +1,29 @@
1
+ # Code of conduct
2
+
3
+ ## Be friendly and patient.
4
+
5
+ Our objective is contribute to community and help us together to create better code.
6
+
7
+ ## Be welcoming
8
+
9
+ We strive to be a community that welcomes and supports people of all backgrounds and identities. This includes, but is not limited to members of any race, ethnicity, culture, national origin, colour, immigration status, social and economic class, educational level, sex, sexual orientation, gender identity and expression, age, size, family status, political belief, religion, and mental and physical ability.
10
+
11
+ ## Be considerate
12
+
13
+ Your work will be used by other people, and you in turn will depend on the work of others. Any decision you take will affect users and colleagues, and you should take those consequences into account when making decisions. Remember that we're a world-wide community, so you might not be communicating in someone else's primary language.
14
+
15
+ ## Be respectful
16
+
17
+ Not all of us will agree all the time, but disagreement is no excuse for poor behavior and poor manners. We might all experience some frustration now and then, but we cannot allow that frustration to turn into a personal attack. It’s important to remember that a community where people feel uncomfortable or threatened is not a productive one.
18
+
19
+ ## Be careful in the words that you choose
20
+
21
+ We are a community of professionals, and we conduct ourselves professionally. Be kind to others. Do not insult or put down other participants. Harassment and other exclusionary behavior aren't acceptable. This includes, but is not limited to:
22
+ * Violent threats or language directed against another person.
23
+ * Discriminatory jokes and language.
24
+ * Posting sexually explicit or violent material.
25
+ * Posting (or threatening to post) other people's personally identifying information ("doxing").
26
+ * Personal insults, especially those using racist or sexist terms.
27
+ * Unwelcome sexual attention.
28
+ * Advocating for, or encouraging, any of the above behavior.
29
+ * Repeated harassment of others. In general, if someone asks you to stop, then stop.
@@ -0,0 +1,26 @@
1
+ # Contributing
2
+
3
+ As an open source project, we welcomes contributions of many forms.
4
+
5
+ ## To request a Pull Request
6
+
7
+ Please follow the next structure of your request:
8
+
9
+ 1. **Title**: A short description of the change.
10
+
11
+ 2. **Description**: A detailed description of the change, including:
12
+ - What is the problem you are solving?
13
+ - How does your change solve the problem?
14
+ - Any additional information that might be helpful for reviewers.
15
+
16
+ 3. **Code**: The code changes you are proposing, including:
17
+ - The files you are changing.
18
+ - The specific lines of code that are being added, modified, or removed.
19
+ - Any tests you have written to verify your changes.
20
+
21
+ 4. **Testing**: A description of how you tested your changes, including:
22
+ - The environment you tested in (e.g., local, staging).
23
+ - Any specific test cases you ran.
24
+ - The results of your tests.
25
+
26
+ You can attach screenshots or other files to help illustrate your changes.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: layrz-sdk
3
- Version: 3.1.30
3
+ Version: 3.1.32
4
4
  Summary: Layrz SDK for Python
5
5
  Author-email: "Golden M, Inc." <software@goldenm.com>
6
- Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>
7
- License: MIT License
6
+ Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>, Miguel Zauzich <miguel@goldenm.com>, Angel Prieto <aprieto@goldenm.com>
7
+ License-Expression: MIT
8
8
  Project-URL: Repository, https://github.com/goldenm-software/layrz-sdk
9
9
  Project-URL: Changelog, https://github.com/goldenm-software/layrz-sdk/blob/main/CHANGELOG.md
10
10
  Keywords: sdk,goldenm,lcl,layrz compute language,layrz
@@ -14,7 +14,6 @@ Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Programming Language :: Python :: 3.14
17
- Classifier: License :: OSI Approved :: MIT License
18
17
  Classifier: Operating System :: OS Independent
19
18
  Requires-Python: >=3.10
20
19
  Description-Content-Type: text/markdown
@@ -3,6 +3,7 @@
3
3
  from .asset import Asset
4
4
  from .asset_constants import AssetConstants
5
5
  from .asset_operation_mode import AssetOperationMode
6
+ from .ats_reception import AtsReception
6
7
  from .broadcast import (
7
8
  BroadcastPayload,
8
9
  BroadcastRequest,
@@ -68,8 +69,10 @@ from .sensor import Sensor
68
69
  from .telemetry import AssetMessage, DeviceMessage
69
70
  from .text_alignment import TextAlignment
70
71
  from .trigger import Trigger
72
+ from .trigger_kind import TriggerCaseKind, TriggerCommentPattern, TriggerGeofenceKind, TriggerKind
71
73
  from .user import User
72
74
  from .waypoint import Waypoint
75
+ from .weekday import Weekday
73
76
 
74
77
  __all__ = [
75
78
  'Asset',
@@ -144,4 +147,11 @@ __all__ = [
144
147
  'AssetMessage',
145
148
  'DeviceMessage',
146
149
  'AssetConstants',
150
+ 'Function',
151
+ 'TriggerKind',
152
+ 'TriggerGeofenceKind',
153
+ 'TriggerCaseKind',
154
+ 'TriggerCommentPattern',
155
+ 'Weekday',
156
+ 'AtsReception',
147
157
  ]
@@ -20,7 +20,7 @@ from .static_position import StaticPosition
20
20
  class Asset(BaseModel):
21
21
  """Asset entity definition"""
22
22
 
23
- pk: int = Field(description='Defines the primary key of the asset', serialization_alias='id')
23
+ pk: int = Field(description='Defines the primary key of the asset')
24
24
  name: str = Field(description='Defines the name of the asset')
25
25
  vin: str | None = Field(
26
26
  default=None,
@@ -14,20 +14,9 @@ class AssetConstants(BaseModel):
14
14
  },
15
15
  }
16
16
 
17
- distance_traveled: float = Field(
18
- default=0.0,
19
- description='Total distance traveled by the asset in meters',
20
- alias='distanceTraveled',
21
- )
22
-
17
+ distance_traveled: float = Field(default=0.0, description='Total distance traveled by the asset in meters')
18
+ primary_device: str = Field(default='N/a', description='Primary device associated with the asset')
23
19
  elapsed_time: timedelta = Field(
24
20
  default=timedelta(seconds=0),
25
21
  description='Total elapsed time for the asset in seconds',
26
- alias='elapsedTime',
27
- )
28
-
29
- primary_device: str = Field(
30
- default='N/a',
31
- description='Primary device associated with the asset',
32
- alias='primaryDevice',
33
22
  )