layrz-sdk 3.0.8__tar.gz → 3.0.10__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 (98) hide show
  1. layrz_sdk-3.0.10/.github/workflows/checks.yml +54 -0
  2. layrz_sdk-3.0.10/.github/workflows/deploy.yml +36 -0
  3. layrz_sdk-3.0.10/.gitignore +13 -0
  4. layrz_sdk-3.0.10/.vscode/extensions.json +9 -0
  5. layrz_sdk-3.0.10/.vscode/settings.json +15 -0
  6. layrz_sdk-3.0.10/CHANGELOG.md +260 -0
  7. layrz_sdk-3.0.10/CODE_OF_CONDUCT.md +24 -0
  8. layrz_sdk-3.0.10/CONTRIBUTING.md +27 -0
  9. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/PKG-INFO +1 -1
  10. layrz_sdk-3.0.10/layrz_sdk/entities/broadcasts/request.py +30 -0
  11. layrz_sdk-3.0.10/layrz_sdk/entities/broadcasts/response.py +30 -0
  12. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/broadcasts/result.py +13 -11
  13. layrz_sdk-3.0.10/layrz_sdk/entities/broadcasts/service.py +28 -0
  14. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/broadcasts/status.py +10 -9
  15. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/cases/case.py +33 -30
  16. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/cases/comment.py +10 -10
  17. layrz_sdk-3.0.10/layrz_sdk/entities/cases/trigger.py +31 -0
  18. layrz_sdk-3.0.10/layrz_sdk/entities/charts/alignment.py +26 -0
  19. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/bar.py +31 -45
  20. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/color.py +12 -10
  21. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/column.py +30 -49
  22. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/configuration.py +11 -12
  23. layrz_sdk-3.0.10/layrz_sdk/entities/charts/data_type.py +26 -0
  24. layrz_sdk-3.0.10/layrz_sdk/entities/charts/exceptions.py +29 -0
  25. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/html.py +6 -5
  26. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/line.py +52 -46
  27. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/map.py +23 -19
  28. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/number.py +6 -5
  29. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/pie.py +27 -34
  30. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/radar.py +14 -34
  31. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/radial_bar.py +27 -34
  32. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/render_technology.py +9 -8
  33. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/scatter.py +52 -53
  34. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/serie.py +4 -3
  35. layrz_sdk-3.0.10/layrz_sdk/entities/charts/serie_type.py +27 -0
  36. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/table.py +6 -6
  37. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/timeline.py +21 -32
  38. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/checkpoints/checkpoint.py +15 -12
  39. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/checkpoints/geofence.py +9 -10
  40. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/checkpoints/waypoint.py +14 -12
  41. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/events/event.py +15 -13
  42. layrz_sdk-3.0.10/layrz_sdk/entities/formatting/text_align.py +25 -0
  43. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/general/asset.py +16 -13
  44. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/general/asset_operation_mode.py +9 -8
  45. layrz_sdk-3.0.10/layrz_sdk/entities/general/custom_field.py +29 -0
  46. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/general/device.py +13 -12
  47. layrz_sdk-3.0.10/layrz_sdk/entities/general/sensor.py +31 -0
  48. layrz_sdk-3.0.10/layrz_sdk/entities/general/user.py +29 -0
  49. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/repcom/transaction.py +4 -4
  50. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/col.py +17 -15
  51. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/format.py +3 -4
  52. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/header.py +4 -5
  53. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/page.py +12 -11
  54. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/report.py +18 -14
  55. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/row.py +10 -10
  56. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/telemetry/message.py +5 -4
  57. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/telemetry/position.py +13 -12
  58. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/lcl/core.py +53 -53
  59. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk.egg-info/PKG-INFO +1 -1
  60. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk.egg-info/SOURCES.txt +11 -0
  61. layrz_sdk-3.0.10/lint.py +41 -0
  62. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/pyproject.toml +2 -1
  63. layrz_sdk-3.0.10/requirements-dev.txt +1 -0
  64. layrz_sdk-3.0.10/requirements.txt +2 -0
  65. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/tests/test_lcl.py +51 -51
  66. layrz_sdk-3.0.8/layrz_sdk/entities/broadcasts/request.py +0 -29
  67. layrz_sdk-3.0.8/layrz_sdk/entities/broadcasts/response.py +0 -29
  68. layrz_sdk-3.0.8/layrz_sdk/entities/broadcasts/service.py +0 -29
  69. layrz_sdk-3.0.8/layrz_sdk/entities/cases/trigger.py +0 -32
  70. layrz_sdk-3.0.8/layrz_sdk/entities/charts/alignment.py +0 -25
  71. layrz_sdk-3.0.8/layrz_sdk/entities/charts/data_type.py +0 -25
  72. layrz_sdk-3.0.8/layrz_sdk/entities/charts/exceptions.py +0 -30
  73. layrz_sdk-3.0.8/layrz_sdk/entities/charts/serie_type.py +0 -26
  74. layrz_sdk-3.0.8/layrz_sdk/entities/formatting/text_align.py +0 -24
  75. layrz_sdk-3.0.8/layrz_sdk/entities/general/custom_field.py +0 -30
  76. layrz_sdk-3.0.8/layrz_sdk/entities/general/sensor.py +0 -32
  77. layrz_sdk-3.0.8/layrz_sdk/entities/general/user.py +0 -30
  78. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/LICENSE +0 -0
  79. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/README.md +0 -0
  80. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/__init__.py +0 -0
  81. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/__init__.py +0 -0
  82. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/broadcasts/__init__.py +0 -0
  83. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/cases/__init__.py +0 -0
  84. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/charts/__init__.py +0 -0
  85. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/checkpoints/__init__.py +0 -0
  86. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/events/__init__.py +0 -0
  87. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/formatting/__init__.py +0 -0
  88. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/general/__init__.py +0 -0
  89. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/repcom/__init__.py +0 -0
  90. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/reports/__init__.py +0 -0
  91. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/entities/telemetry/__init__.py +0 -0
  92. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/helpers/__init__.py +0 -0
  93. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/helpers/color.py +0 -0
  94. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk/lcl/__init__.py +0 -0
  95. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk.egg-info/dependency_links.txt +0 -0
  96. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk.egg-info/requires.txt +0 -0
  97. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/layrz_sdk.egg-info/top_level.txt +0 -0
  98. {layrz_sdk-3.0.8 → layrz_sdk-3.0.10}/setup.cfg +0 -0
@@ -0,0 +1,54 @@
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:3.11
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: Install dev dependencies
27
+ run: |
28
+ pip3 install -U -r requirements-dev.txt
29
+
30
+ - name: Lint
31
+ run: |
32
+ ruff check
33
+
34
+ uniitest:
35
+ needs: lint
36
+ runs-on: ubuntu-latest
37
+ container:
38
+ image: ghcr.io/goldenm-software/python-builder:3.11
39
+ options: --user root
40
+ credentials:
41
+ username: ${{ github.repository_owner }}
42
+ password: ${{ secrets.GITHUB_TOKEN }}
43
+
44
+ steps:
45
+ - name: Checkout
46
+ uses: actions/checkout@v4
47
+
48
+ - name: Install dependencies
49
+ run: |
50
+ pip install -U pip -r requirements.txt
51
+
52
+ - name: Run unit tests
53
+ run: |
54
+ python3 -m unittest discover -s tests -v
@@ -0,0 +1,36 @@
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:3.11
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
28
+ run: |
29
+ pip install --upgrade pip build twine
30
+ python3 -m build
31
+
32
+ - name: Upload to Python Package Index
33
+ uses: pypa/gh-action-pypi-publish@v1.8.10
34
+ with:
35
+ user: ${{ secrets.LAYRZ_PYPI_USERNAME }}
36
+ password: ${{ secrets.LAYRZ_PYPI_PASSWORD }}
@@ -0,0 +1,13 @@
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
@@ -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,15 @@
1
+ {
2
+ "[python]": {
3
+ "editor.codeActionsOnSave": {
4
+ "source.organizeImports": "explicit",
5
+ "source.fixAll": "explicit"
6
+ },
7
+ "editor.rulers": [120],
8
+ "editor.formatOnSaveMode": "file",
9
+ "editor.formatOnSave": true,
10
+ "editor.defaultFormatter": "charliermarsh.ruff"
11
+ },
12
+ "editor.tabSize": 2,
13
+ "editor.insertSpaces": true,
14
+ "editor.detectIndentation": true
15
+ }
@@ -0,0 +1,260 @@
1
+ # Changelog
2
+
3
+ ## 3.0.10
4
+
5
+ - Removed Self type annotation from all classes
6
+
7
+ ## 3.0.9
8
+
9
+ - Added different return data of Report when password is set
10
+
11
+ ## 3.0.8
12
+
13
+ - New linter and formatter using ruff
14
+ - Added typings on all classes and functions available
15
+ - New Report export format PDF (Not implemented yet)
16
+ - Added new way to encrypt .xslx files directly using the
17
+
18
+ ## 3.0.7
19
+
20
+ - Added the value of `AssetOperationMode.ZONE`
21
+ - Added a check for `Asset.operation_mode == ASSETMULTIPLE` while savind the list of child's
22
+ - Clarified the deprecation of `ReportRow.height`
23
+
24
+ ## 3.0.6
25
+
26
+ - Changed print in `LineChart` to a `log.warning` and `log.fatal` in case of error
27
+
28
+ ## 3.0.3
29
+
30
+ - Implemented new chart rendering library `syncfusion_flutter_charts` for Flutter.
31
+ - Changed rendering method for `LineChart`, now you should provide the `technology` to select the rendering library.
32
+
33
+ ## 3.0.2
34
+
35
+ - Fixed issue with `IF()` LCL function, now only validates the nullability of the first argument.
36
+ - Added new `VERSION()` LCL Function to get the current version of the package
37
+
38
+ ## 3.0.1
39
+
40
+ - Added None validation on every LCL function, when any of the arguments is None, the function will return None
41
+ - Added unit tests for all LCL functions
42
+
43
+ ## 3.0.0
44
+
45
+ - Removed shared namespace to improve compatibility with other packages
46
+
47
+ ## 2.2.4
48
+
49
+ - Defined new class `ReportConfiguration` to handle the configuration of the report in Python scripts
50
+
51
+ ## 2.2.3
52
+
53
+ - Property `text_color` deprectated in `ReportCol`, replaced by a luminance-based color using the background color
54
+ - Property `text_color` deprectated in `ReportHeader`, replaced by a luminance-based color using the background color
55
+ - Property `width` deprectated in `ReportHeader`, replaced by the function `autofit()` to automatically fit the header width
56
+ - New entity `CustomReportPage` that receives a custom builder function to build the page
57
+ - Property `export_format` deprecated in `Report`, replaced to an argument of the function `export()`
58
+
59
+ ## 2.2.2
60
+
61
+ - Updated `AssetOperationMode` to support `STATIC` and removal of `FAILOVER` mode
62
+
63
+ ## 2.2.1
64
+
65
+ - Bug fixes related to removing __ from all classes
66
+
67
+ ## 2.2.0
68
+
69
+ - Removed support to Python 3.12 due to a shared namespace issue.
70
+ - Reorganized classes to better support.
71
+ - Added typings to all classes and functions.
72
+
73
+ ## 2.1.5
74
+ - Added declarative typing on all LCL functions
75
+ - Added support for timezone in `UNIX_TO_STR` LCL function
76
+
77
+ ## 2.1.3
78
+ - Changed build mode to pyproject.toml
79
+ - Updated `LcLCore.perform()` function to receive additional globals and locals in their arguments
80
+
81
+ ## v2.1.2
82
+ - Add UNIX_TO_STR LCL function
83
+
84
+ ## v2.1.1
85
+ - Added `compact` in the json return format in reports
86
+
87
+ ## v2.1.0
88
+ - Add bold format option to Col class
89
+ - Add freeze header option to Page class
90
+
91
+ ## v2.0.1
92
+ - Fixes on package namespace
93
+
94
+ ## v2.0.0
95
+ * Deprecated `lcl.core` module
96
+ * Changed `layrzsdk` to `layrz.sdk` package (With unified Layrz namespace)
97
+
98
+ ## v1.4.5
99
+ * Added CaseIgnoredStatus to init file
100
+
101
+ ## v1.4.4
102
+ * Added CaseIgnoredStatus to Case entity
103
+
104
+ ## v1.4.3
105
+ * Added new ChartType: TableChart and NumberChart
106
+ * Starting to replace documentation format from unstructured to a structured format
107
+
108
+ ## v1.4.2
109
+ * Fix, added SUBSTRING LCL to global functions
110
+
111
+ ## v1.4.1
112
+ * Fixed LineChart xAxis Datetime conversion for CanvasJS, now will multiply the timestamp by 1000 to use milliseconds
113
+
114
+ ## v1.4.0
115
+ * Added support for Flutter `graphic` library
116
+ * LineChart
117
+ * AreaChart (Replaced previous AreaChart to a temporal extend of LineChart)
118
+ * BarChart
119
+ * ColumnChart
120
+ * PieChart
121
+ * MapChart
122
+ * ScatterChart
123
+ * RadialBarChart
124
+ * Future deprecations:
125
+ * HTMLChart
126
+ * TimelineChart
127
+ * RadarChart
128
+
129
+ ## v1.3.9
130
+ * Internal changes related to GitLab CI automation
131
+
132
+ ## v1.3.8
133
+ * Added SUBSTRING LCL function
134
+
135
+ ## v.1.3.7
136
+ * Added sequence in cases
137
+
138
+ ## v1.3.6
139
+ * Added new Map Chart
140
+ - Added required entity MapPoint
141
+ - Added required enum MapCenterType
142
+ * Added new HTML Chart
143
+
144
+
145
+ ## v1.3.5
146
+ * Bug fix related to formula perform, added PRIMARY_DEVICE to simulation environment
147
+
148
+ ## v1.3.4
149
+ * Added Transaction entity for REPCOM reports
150
+
151
+ ## v1.3.3
152
+ - Added PRIMARY_DEVICE() function to Layrz Compute Language
153
+
154
+ ## v1.3.2
155
+ - Updated styles of charts return object to ApexCharts or CanvasJS
156
+ - Replaced all .rst files to .md files
157
+
158
+ ## v1.3.1
159
+ * Removed markerSize (in CanvasJS) for dashed series
160
+
161
+ ## v1.3.0
162
+ * Added support for CanvasJS Javascript Library
163
+ * Deprecated to_apexcharts property in charts.
164
+ * New method render() in charts with support for multiple Javascript rendering library
165
+ * Added color helpers in layrzsdk.helpers
166
+
167
+ ## v1.2.6
168
+ * Removed dataLabels in almost all charts (Except Pie and RadialBar)
169
+
170
+ ## v1.2.5
171
+ * Optimizations for Javascript renderer
172
+
173
+ ## v1.2.4
174
+ * Added dashed attribute to ChartDataSerie
175
+ * Added the Possibility to mix charts, only available for:
176
+ - LineChart
177
+ - AreaChart
178
+ - ColumnChart
179
+ - ScatterChart (Only as serie, not as main chart)
180
+
181
+ ## v1.2.3
182
+ * Added new value in BroadcastStatus
183
+
184
+ ## v1.2.2
185
+ * Updated ReportCol entity to set new default values
186
+ * New entity ReportDataType
187
+ * Possibility to export directly to the Report class
188
+ * Re-organized entities/ folder
189
+ * Added Broadcasts entities
190
+
191
+ ## v1.2.1
192
+ * Added Report Col entity
193
+
194
+ ## v1.2.0
195
+ * Added reports entities
196
+
197
+ ## v1.1.4
198
+ * Bug fixes
199
+
200
+ ## v1.1.3
201
+ * Bug fixes
202
+
203
+ ## v1.1.2
204
+ * Bug fixes
205
+
206
+ ## v1.1.1
207
+ * Bug fixes
208
+
209
+ ## v1.1.0
210
+ * Reorganized files
211
+ * Added new Charts entities
212
+
213
+ ## v1.0.14
214
+ * Added CONTAINS, STARTS_WITH, ENDS_WITH functions to the Layrz Computed Language
215
+
216
+ ## v1.0.13
217
+ * Fixed missing import into `layrzsdk.entities.__init__.py`
218
+
219
+ ## v1.0.12
220
+ * Added Geofence, Comment, Waypoint and Checkpoint entities
221
+
222
+ ## v1.0.11
223
+ * Added User, Comment and Case entities
224
+
225
+ ## v1.0.10
226
+ * Fixes
227
+
228
+ ## v1.0.9
229
+ * Added Event and Trigger entities
230
+ * Renamed file `mesage.py` to `message.py`
231
+
232
+ ## v1.0.8
233
+ * Added title getter of all charts entities
234
+
235
+ ## v1.0.7
236
+ * Added PieChart, BarChart, and RadialBarChart entities
237
+
238
+ ## v1.0.6
239
+ * Fixed STING to STRING bug in ChartDataType enum
240
+
241
+ ## v1.0.5
242
+ * Bug fixes
243
+
244
+ ## v1.0.4
245
+ * Added data_type argument of ChartDataSerie
246
+
247
+ ## v1.0.3
248
+ * Added Chart configuration entity
249
+
250
+ ## v1.0.2
251
+ * Added entities for Range Charts:
252
+ - Line Charts
253
+ - Area Charts
254
+ - Column Charts
255
+
256
+ ## v1.0.1
257
+ * Added entities for Sensors and Triggers
258
+
259
+ ## v1.0.0
260
+ * Initial release
@@ -0,0 +1,24 @@
1
+ # Code of conduct
2
+
3
+ ## Be friendly and patient.
4
+ Our objective is contribute to community and help us together to create better code.
5
+
6
+ ## Be welcoming
7
+ 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.
8
+
9
+ ## Be considerate
10
+ 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.
11
+
12
+ ## Be respectful
13
+ 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.
14
+
15
+ ## Be careful in the words that you choose
16
+ 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:
17
+ * Violent threats or language directed against another person.
18
+ * Discriminatory jokes and language.
19
+ * Posting sexually explicit or violent material.
20
+ * Posting (or threatening to post) other people's personally identifying information ("doxing").
21
+ * Personal insults, especially those using racist or sexist terms.
22
+ * Unwelcome sexual attention.
23
+ * Advocating for, or encouraging, any of the above behavior.
24
+ * Repeated harassment of others. In general, if someone asks you to stop, then stop.
@@ -0,0 +1,27 @@
1
+ # Contributing
2
+
3
+ As an open source project, we welcomes contributions of many forms.
4
+
5
+ ## To request a Merge Request
6
+ Please follow the next structure of your request:
7
+
8
+ ### Title
9
+ A short description of your feature/fix
10
+
11
+ Also, add this prefix in the title according to the scenario:
12
+
13
+ | Prefix/Tag | Meaning |
14
+ |-|-|
15
+ | `feature/` | New feature, like new methods, classes, etc. |
16
+ | `fix/` | Bug fix or documentation related fix |
17
+ | `docs/` | Documentation related changes |
18
+
19
+ ### Description
20
+ Explain your feature/fix request and why we should be approve.
21
+
22
+ Be explicit and precise with your submission, that helps us to review and approve your request.
23
+
24
+ ## Code of Conduct
25
+
26
+ As a contributor, you can help us keep the Layrz community open and inclusive.
27
+ Please read and follow our code of conduct in `CODE_OF_CONDUCT.md`.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: layrz-sdk
3
- Version: 3.0.8
3
+ Version: 3.0.10
4
4
  Summary: Layrz SDK for Python
5
5
  Author-email: "Golden M, Inc." <software@goldenm.com>
6
6
  Maintainer-email: Kenny Mochizuki <kenny@goldenm.com>, Luis Reyes <lreyes@goldenm.com>, Kasen Li <kli@goldenm.com>
@@ -0,0 +1,30 @@
1
+ """Broadcast Result Request data"""
2
+
3
+ from typing import Dict, List
4
+
5
+
6
+ class BroadcastRequest:
7
+ """
8
+ Broadcast request data
9
+ ---
10
+ Attributes
11
+ - json : Parsed data
12
+ - raw : Raw data
13
+ """
14
+
15
+ def __init__(self, json: Dict | List, raw: str) -> None:
16
+ self.json = json
17
+ self.raw = raw
18
+
19
+ @property
20
+ def _readable(self) -> str | None | bool:
21
+ """Readable"""
22
+ return f'BroadcastRequest(json={self.json}, raw={self.raw})'
23
+
24
+ def __repr__(self) -> str | None | bool:
25
+ """Readable property"""
26
+ return self._readable
27
+
28
+ def __str__(self) -> str | None | bool:
29
+ """Readable property"""
30
+ return self._readable
@@ -0,0 +1,30 @@
1
+ """Broadcast Result Response data"""
2
+
3
+ from typing import Dict, List
4
+
5
+
6
+ class BroadcastResponse:
7
+ """
8
+ Broadcast response data
9
+ ---
10
+ Attributes
11
+ - json (dict|list): Parsed data
12
+ - raw (str): Raw data
13
+ """
14
+
15
+ def __init__(self, json: Dict | List, raw: str) -> str | None | bool:
16
+ self.json = json
17
+ self.raw = raw
18
+
19
+ @property
20
+ def _readable(self) -> str | None | bool:
21
+ """Readable"""
22
+ return f'BroadcastResponse(json={self.json}, raw={self.raw})'
23
+
24
+ def __repr__(self) -> str | None | bool:
25
+ """Readable property"""
26
+ return self._readable
27
+
28
+ def __str__(self) -> str | None | bool:
29
+ """Readable property"""
30
+ return self._readable
@@ -1,6 +1,6 @@
1
- """ Broadcast result """
1
+ """Broadcast result"""
2
+
2
3
  from datetime import datetime
3
- from typing import Self
4
4
 
5
5
  from .request import BroadcastRequest
6
6
  from .response import BroadcastResponse
@@ -21,7 +21,7 @@ class BroadcastResult:
21
21
  """
22
22
 
23
23
  def __init__(
24
- self: Self,
24
+ self,
25
25
  service_id: int,
26
26
  asset_id: int,
27
27
  status: BroadcastStatus,
@@ -37,15 +37,17 @@ class BroadcastResult:
37
37
  self.submitted_at = submitted_at
38
38
 
39
39
  @property
40
- def _readable(self: Self) -> str | None | bool:
41
- """ Readable """
42
- return f'BroadcastResult(service_id={self.service_id}, asset_id={self.asset_id}, status={self.status}, ' +\
43
- f'request={self.request}, response={self.response}, submitted_at={self.submitted_at})'
40
+ def _readable(self) -> str | None | bool:
41
+ """Readable"""
42
+ return (
43
+ f'BroadcastResult(service_id={self.service_id}, asset_id={self.asset_id}, status={self.status}, '
44
+ + f'request={self.request}, response={self.response}, submitted_at={self.submitted_at})'
45
+ )
44
46
 
45
- def __repr__(self: Self) -> str | None | bool:
46
- """ Readable property """
47
+ def __repr__(self) -> str | None | bool:
48
+ """Readable property"""
47
49
  return self._readable
48
50
 
49
- def __str__(self: Self) -> str | None | bool:
50
- """ Readable property """
51
+ def __str__(self) -> str | None | bool:
52
+ """Readable property"""
51
53
  return self._readable
@@ -0,0 +1,28 @@
1
+ """Service entity"""
2
+
3
+
4
+ class OutboundService:
5
+ """
6
+ Outbound service definition
7
+ ---
8
+ Attributes
9
+ - pk : Service ID
10
+ - name : Service Name
11
+ """
12
+
13
+ def __init__(self, pk: int, name: str) -> str | None | bool:
14
+ self.pk = pk
15
+ self.name = name
16
+
17
+ @property
18
+ def _readable(self) -> str | None | bool:
19
+ """Readable"""
20
+ return f'OutboundService(pk={self.pk}, name={self.name})'
21
+
22
+ def __repr__(self) -> str | None | bool:
23
+ """Readable property"""
24
+ return self._readable
25
+
26
+ def __str__(self) -> str | None | bool:
27
+ """Readable property"""
28
+ return self._readable
@@ -1,10 +1,11 @@
1
- """ Broadcast result Status """
1
+ """Broadcast result Status"""
2
+
2
3
  from enum import Enum
3
- from typing import Self
4
4
 
5
5
 
6
6
  class BroadcastStatus(Enum):
7
- """ Broadcast result status """
7
+ """Broadcast result status"""
8
+
8
9
  OK = 'OK'
9
10
  BADREQUEST = 'BADREQUEST'
10
11
  INTERNALERROR = 'INTERNALERROR'
@@ -13,14 +14,14 @@ class BroadcastStatus(Enum):
13
14
  DISCONNECTED = 'DISCONNECTED'
14
15
 
15
16
  @property
16
- def _readable(self: Self) -> str | None | bool:
17
- """ Readable """
17
+ def _readable(self) -> str | None | bool:
18
+ """Readable"""
18
19
  return f'BroadcastStatus.{self.value}'
19
20
 
20
- def __str__(self: Self) -> str | None | bool:
21
- """ Readable property """
21
+ def __str__(self) -> str | None | bool:
22
+ """Readable property"""
22
23
  return self._readable
23
24
 
24
- def __repr__(self: Self) -> str | None | bool:
25
- """ Readable property """
25
+ def __repr__(self) -> str | None | bool:
26
+ """Readable property"""
26
27
  return self._readable