logs-py 3.0.4__py3-none-any.whl → 3.0.6__py3-none-any.whl

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 logs-py might be problematic. Click here for more details.

@@ -12,6 +12,17 @@ class DateTimeConverter:
12
12
  utc_offset_re = re.compile(r"([\+-])(\d+)$")
13
13
  multiSpace_re = re.compile(r"( {2,})")
14
14
 
15
+ @classmethod
16
+ def _getLocalTime(cls):
17
+ import platform
18
+
19
+ if platform.system() == "Windows":
20
+ from tzlocal.win32 import get_localzone_name
21
+ return pytz.timezone(get_localzone_name())
22
+ else:
23
+ return pytz.timezone(time.tzname[0])
24
+
25
+
15
26
  @classmethod
16
27
  def convertDateTime(cls, entry: str):
17
28
  entry = re.sub(cls.multiSpace_re, " ", entry)
@@ -30,7 +41,7 @@ class DateTimeConverter:
30
41
 
31
42
  d = dates[0]
32
43
  if d.tzinfo == pytz.UTC or d.tzinfo is None:
33
- local_tz = pytz.timezone(time.tzname[0]) # Change to your local timezone
44
+ local_tz = cls._getLocalTime()
34
45
  d = d.replace(tzinfo=pytz.utc).astimezone(local_tz)
35
46
 
36
47
  return d
@@ -1,9 +1,9 @@
1
1
  """
2
- This Module is written for the LOGS Repository.
3
-
4
- It's objects can be used to access the LOGS public API
5
- programatically via python scripts.
6
- ...
2
+ This Module is written for the LOGS Repository.
3
+
4
+ It's objects can be used to access the LOGS public API
5
+ programatically via python scripts.
6
+ ...
7
7
  """
8
8
 
9
9
  from .Constants import *
@@ -1,11 +1,11 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
10
10
 
11
11
  from .Conversion import *
LOGS/Entities/Dataset.py CHANGED
@@ -243,6 +243,9 @@ class Dataset(
243
243
  if responseError:
244
244
  raise EntityFetchingException(entity=self, responseError=responseError)
245
245
 
246
+ if parameters == "":
247
+ parameters = None
248
+
246
249
  self._parameterTree = self.checkAndConvertNullable(
247
250
  parameters, ParameterList, "parameterTree"
248
251
  )
@@ -1,9 +1,9 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
@@ -1,11 +1,11 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
10
10
 
11
11
  from .EntityAttribute import *
LOGS/Entities/__init__.py CHANGED
@@ -1,11 +1,11 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
10
10
 
11
11
  from .AutoloadClientInfo import *
LOGS/Entity/__init__.py CHANGED
@@ -1,11 +1,11 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
10
10
 
11
11
  from ..Auxiliary.Exceptions import *
@@ -1,7 +1,7 @@
1
1
  """
2
- This Module is written for the LOGS Repository.
3
-
4
- It's objects can be used to access the LOGS public API
5
- programatically via python scripts.
6
- ...
2
+ This Module is written for the LOGS Repository.
3
+
4
+ It's objects can be used to access the LOGS public API
5
+ programatically via python scripts.
6
+ ...
7
7
  """
@@ -1,11 +1,11 @@
1
1
  """
2
- This package is written for the LOGS Repository.
3
-
4
- It's objects can be used to write your own dataset parser.
5
-
6
- License:
7
- Permission to use this libraray and all of its contents is
8
- strictly permitted to the Signals Company.
2
+ This package is written for the LOGS Repository.
3
+
4
+ It's objects can be used to write your own dataset parser.
5
+
6
+ License:
7
+ Permission to use this libraray and all of its contents is
8
+ strictly permitted to the Signals Company.
9
9
  """
10
10
 
11
11
  from .Color import *
LOGS/__init__.py CHANGED
@@ -1,9 +1,9 @@
1
1
  """
2
- This Module is written for the LOGS Repository.
3
-
4
- It's objects can be used to access the LOGS public API
5
- programatically via python scripts.
6
- ...
2
+ This Module is written for the LOGS Repository.
3
+
4
+ It's objects can be used to access the LOGS public API
5
+ programatically via python scripts.
6
+ ...
7
7
  """
8
8
 
9
9
  from .LOGS import *
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: logs-py
3
- Version: 3.0.4
3
+ Version: 3.0.6
4
4
  Summary: A python interface for the LOGS public API
5
5
  Home-page: https://docs.logs-python.com
6
6
  Author: Sina Kazemi
@@ -19,6 +19,17 @@ Requires-Dist: regex>=2019.12.9
19
19
  Requires-Dist: Pillow
20
20
  Requires-Dist: deprecation
21
21
  Requires-Dist: pytz
22
+ Requires-Dist: tzlocal; platform_system == "Windows"
23
+ Dynamic: author
24
+ Dynamic: author-email
25
+ Dynamic: classifier
26
+ Dynamic: description
27
+ Dynamic: description-content-type
28
+ Dynamic: home-page
29
+ Dynamic: license
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
22
33
 
23
34
  # LOGS-Py
24
35
 
@@ -2,9 +2,9 @@ LOGS/LOGS.py,sha256=O0XpA1m7uashHuBIKmowYI6ZeeX_d7p2jS_dUpbhVXU,45399
2
2
  LOGS/LOGSConnection.py,sha256=T8C9vTk4nyy0qJjs3Ee2_pkFyDPMoKapOGTUszP_htY,21581
3
3
  LOGS/LOGSOptions.py,sha256=eDymNMLvms_DcM_71poUxcn7FkUH5K-zSZw28gMsVzs,271
4
4
  LOGS/ServerMetaData.py,sha256=WdXCCiCSFqER6s9c3N3v0O273OvxygxBzmE6_C8FmXs,3361
5
- LOGS/__init__.py,sha256=J5-bGgXlm7MxYhTAhLtqWLn612_rarRRxblT5n5O2bY,280
5
+ LOGS/__init__.py,sha256=zFHOekiFfVI2SnyMhBJCCofrKTn1gXXC-rUk8A9mRw4,260
6
6
  LOGS/Auxiliary/Constants.py,sha256=jKsThb6TS6b1adgnv1uAoqohBJi8ySGo7fULHlE2Es0,2504
7
- LOGS/Auxiliary/DateTimeConverter.py,sha256=4yKS22tSnShDeEEHKMu_rgdtMYkkShEVftoReVwDDmQ,1178
7
+ LOGS/Auxiliary/DateTimeConverter.py,sha256=reUNCFNc4Bi3zHcwlnVzfR-YPRZXaQG5ShpvzLwB5M4,1433
8
8
  LOGS/Auxiliary/Decorators.py,sha256=dzuIa6eTi-iOwhD9A8eICum9XIFeh6QdcKrNWKQ4LEo,3572
9
9
  LOGS/Auxiliary/Exceptions.py,sha256=aurztbezP3RHKL8EaFDnGItDPnjkVugr2sagNWMeBKs,10084
10
10
  LOGS/Auxiliary/LOGSErrorResponse.py,sha256=5dm3Tv7tFtlo8ktuN1fQ1ScIHQWrAHlEtP6zg4_IO2E,1339
@@ -12,12 +12,12 @@ LOGS/Auxiliary/MinimalModelGenerator.py,sha256=ZeFXWJ2s1xchQdfJQApIgmdSU0s878JpX
12
12
  LOGS/Auxiliary/ParameterHelper.py,sha256=rP9DK5c4m7VJSIWRtkhdq7ECDUfNzK0Xs4bq7PAXuCA,1631
13
13
  LOGS/Auxiliary/ReplaceMessage.py,sha256=ilzfyNidpUQguDglqxehZRJw6diF3-FH5mk3rVLr72c,373
14
14
  LOGS/Auxiliary/Tools.py,sha256=Zd2YncaU_qiv3uu8pNbk5C_uYy8_xT-OagxQjn9hTnc,10079
15
- LOGS/Auxiliary/__init__.py,sha256=1EGkaXLM87nZzl85T-cqGc9FZMqZG57Ch0-HnicPqtQ,371
15
+ LOGS/Auxiliary/__init__.py,sha256=345a0imJBwsfWkGqkEyD1frAcouaUc0B6QdMSVJB_ak,351
16
16
  LOGS/Converter/Conversion.py,sha256=eZu_7pCPinP-w0gCJGKzUh-er385oAcIk1UlZ8kx_1o,7783
17
17
  LOGS/Converter/Converter.py,sha256=_0dh12A37SRjjZJP7rH--cHPZtLYZaYL0uW5--oOaT8,2680
18
18
  LOGS/Converter/ConverterParameter.py,sha256=1-0aiKcs00K3Dcv4PbnVDac2KobdhTBmqN6p40Bmr3k,2579
19
19
  LOGS/Converter/ExportParamters.py,sha256=ZSvAtuOhV1tv2nPNvIiV1h1VAD8fnw3IVkWwluHsO_0,3019
20
- LOGS/Converter/__init__.py,sha256=zZo0sT92LhhsLaCsdn1beC-5Ki9GXht0pi8okgk0RQA,344
20
+ LOGS/Converter/__init__.py,sha256=2zs2B7nMYi6CqUdIWhX0ndkurO43Q3nDL_t0DanBf6c,315
21
21
  LOGS/Entities/AutoloadClientInfo.py,sha256=MKTIgkMZOJD0D9sANj1JOXrwRROVPqg6yaWeiyRp080,2623
22
22
  LOGS/Entities/AutoloadFileInfo.py,sha256=thiK1isWkNa719kCzohPJsAkblnKj78BohHDMvracl0,338
23
23
  LOGS/Entities/AutoloadStatus.py,sha256=2qIoRXZih_cWkr_MLINpB6jUfcZHBwm7nwB7DN_EpyY,672
@@ -53,7 +53,7 @@ LOGS/Entities/DataSourceRelations.py,sha256=eIszpHjZqz6v4WyhaPNu8efSzedsJLNrYR9b
53
53
  LOGS/Entities/DataSourceRequestParameter.py,sha256=zAfC61NvVt4XO3HhIy1PLViN3AEBJo7Q6Fa_EtyqNvA,1610
54
54
  LOGS/Entities/DataSourceStatus.py,sha256=81IAcLhdvkrAxgcL1Hw47aJqiZ0Vb7UnZUj-UEo8wX0,430
55
55
  LOGS/Entities/DataSources.py,sha256=UU5ey98_vX4WQknyWITMy-dPOV-wgjblXxu5uXpnVso,481
56
- LOGS/Entities/Dataset.py,sha256=bg_6wny8TdAuTk50qADjoN7jZebROshqvaDQRQzlYhE,27354
56
+ LOGS/Entities/Dataset.py,sha256=xXtovP45oW1pdvNGgJRTrGc9aFeYUHt1OLzaZ6ye2kU,27414
57
57
  LOGS/Entities/DatasetCreator.py,sha256=GJ2e0pcYt5ziVqREViBM_uq45K3rm3FG_3NqIOjrO3Y,3253
58
58
  LOGS/Entities/DatasetInfo.py,sha256=14TNZDR1VIMiZ_14ijzqbxipu44_e9N92k3GE3BSoeo,4975
59
59
  LOGS/Entities/DatasetMatchTypes.py,sha256=f8v5bYEWiDMVBbEKONEDg2jm-Qp-WVbuBLyJ5SlMv9c,4373
@@ -182,11 +182,11 @@ LOGS/Entities/TrackXY.py,sha256=klLXkgK9hkXdSIiTPbpGxnWoBf-fymOxJ4BJtcc97Cc,1332
182
182
  LOGS/Entities/TrackXYComplex.py,sha256=Ts8UusoZY81P8OX4gWgHfSEKiUflT3cr8oUoqFXuc0I,1698
183
183
  LOGS/Entities/TrackXYComplexData.py,sha256=xWd3_jdXa347Gh53NYIMo66nFirA60Zd2KxaPs4KHaY,1368
184
184
  LOGS/Entities/TrackXYData.py,sha256=6AbwG2qa2HN858ROLaLpzkuIlwsb8tN8wznaiKplRdo,819
185
- LOGS/Entities/__init__.py,sha256=LlsKbmmUWg7GIAYHFWOEyuPTxjJ6RYlpgnfIBGz98vA,3913
185
+ LOGS/Entities/__init__.py,sha256=uMfSJpOaBpxjfsCrsuwBXEcPTl6bVEGiNkSBLgfMzT0,3884
186
186
  LOGS/Entities/FormattedTable/DatatypeFormattedTable.py,sha256=_ZoyoygmBenEbU30lmz0HTWowewOZnewxb1ZSzTStos,3591
187
187
  LOGS/Entities/FormattedTable/DatatypeFormattedTableCell.py,sha256=U1JquCrEqgtGD9iEJY9SP5wufpBUTxF7V5dRBgqubgs,2795
188
188
  LOGS/Entities/FormattedTable/DatatypeFormattedTableSettings.py,sha256=P0V2yzkKwl5Zz4HrQeKh1ef53-lPor4ua1nR8e5baqY,311
189
- LOGS/Entities/FormattedTable/__init__.py,sha256=Rt5RDBpLEyVcR2-VDoxioclKmVEUPg9-aeXGRIyAHn8,258
189
+ LOGS/Entities/FormattedTable/__init__.py,sha256=mKuxP-bMvP-oOs6jH4I9Xr52TbTcOjJOoTP0D_Vb9Os,229
190
190
  LOGS/Entities/LabNotebookEntryContent/BasicAttribute.py,sha256=g9D-G0wgDHQ_TdbuoXgcgwTJJ50-uM_vKY6Vy4XXRls,352
191
191
  LOGS/Entities/LabNotebookEntryContent/EntityAttribute.py,sha256=Z3dUjisoNA0aCLd2ebitZOfm0ZsJRl9qxvaKBkjXxcc,2571
192
192
  LOGS/Entities/LabNotebookEntryContent/EntryContentBlockquote.py,sha256=IpTeBaosUZPNsZGp-4iOAKH3hS348MeXDukgcmmTowE,453
@@ -216,7 +216,7 @@ LOGS/Entities/LabNotebookEntryContent/TextAttribute.py,sha256=BZO12CWh9l6SeU2tCe
216
216
  LOGS/Entities/LabNotebookEntryContent/TextMarkAtributes.py,sha256=j09PvsP3SFMeUZHoTyUC0UfVvHssBZPZiwzEonl7TPs,1559
217
217
  LOGS/Entities/LabNotebookEntryContent/TextMarkConverter.py,sha256=esycxCZBj9-KaPM3mQIX5CB8sJ0O2HM4SgikU7KD1Js,1420
218
218
  LOGS/Entities/LabNotebookEntryContent/TextMarks.py,sha256=CQTyP7xtSTC0__kq9hgdEul2D2XxCoro9koYxnX3HSM,1998
219
- LOGS/Entities/LabNotebookEntryContent/__init__.py,sha256=03TqIEBq0R2B0pUcGplIP68RIrsE71SR4iRxenzt1u4,1121
219
+ LOGS/Entities/LabNotebookEntryContent/__init__.py,sha256=VIL4R44IXUOPOADapm1QilZ1uC0g6roAqlOYKAQkLHU,1092
220
220
  LOGS/Entity/ConnectedEntity.py,sha256=FP1jJoDOXoMBTozz6sur36IxjhlfqGI-1qUK-G001vc,2805
221
221
  LOGS/Entity/Entity.py,sha256=WLCtVjRxyRg6nX8UzEMjKJ4MkLICrMmXSo5xrtRHaUE,6300
222
222
  LOGS/Entity/EntityConnector.py,sha256=kjCoieYABujwX1hIaldJVHmg_Js2OdWdbkvNwgBLeNo,2109
@@ -232,7 +232,7 @@ LOGS/Entity/EntityWithIntId.py,sha256=B79VqAQ9I0uEQwbf3DMHXoi064gCw4fv3vCKoXwrHQ
232
232
  LOGS/Entity/EntityWithStrId.py,sha256=5hz8-F_t_X4kf85DMwW3DJ2NqH_RiRV1Io1WiMN11yk,631
233
233
  LOGS/Entity/IdIterator.py,sha256=syaf7ygWPhbpSM3Sa5oukGi4wW9KiYInK8Ry61U85N8,6216
234
234
  LOGS/Entity/SerializeableContent.py,sha256=iN_rW3zorXnvL1RBjyQvwxEJwvx5d3RqZKRtPSlScXk,22203
235
- LOGS/Entity/__init__.py,sha256=8q6dB_AqlLGx-6PexFn8QH7LWOnSGRhgPfFVkYAghR0,749
235
+ LOGS/Entity/__init__.py,sha256=bsW1134ltNbVZ1JSnRb5jSoLwBecdsAbvS59HfsKusc,720
236
236
  LOGS/Interfaces/ICreationRecord.py,sha256=SpACPwz2zA60pkApErZelUOsPq40fHAfiFW3vm9qW9k,1461
237
237
  LOGS/Interfaces/ICustomField.py,sha256=rAMnUKW9wMxgUfkXUFECCclggYt9aGKgXlIep67sEo4,726
238
238
  LOGS/Interfaces/IEntityInterface.py,sha256=WMMxK-XsIqC6IItBRdcJzF7rDxI0p5gQXVqvkQiFneI,167
@@ -250,15 +250,15 @@ LOGS/Interfaces/ISoftDeletable.py,sha256=urnmSfcYJrEm1iIo0k3nyBvMMnpomJWAYAON_uv
250
250
  LOGS/Interfaces/ITypedEntity.py,sha256=QiEXX7HwSEzMTCXQ4XJt0CutAC7KdH7VwCHeI2mUJ1Y,2569
251
251
  LOGS/Interfaces/IUniqueEntity.py,sha256=K-Q80qZX1wTjPnjbs-1PF85BbzYre2su_2xMnescYi4,1894
252
252
  LOGS/Interfaces/IVersionedEntity.py,sha256=fz9fjpDchGcsqISJvmKh9UJtmQcfJyY5QzUgk4dR3ac,1120
253
- LOGS/Interfaces/__init__.py,sha256=tGykqoQeT2_HV-oLYVKJJ9Z0a_Li8_y3AOJjG1btKYw,172
253
+ LOGS/Interfaces/__init__.py,sha256=pD9IGlx-mSMUqFOT7K81XN4ONUKJ5vNbq1OFpQiaKqg,152
254
254
  LOGS/Parameters/Color.py,sha256=4WxvR7N_yIWpDVbFkbk8MVCtBr_UNNAJwEeIyy98VCM,2352
255
255
  LOGS/Parameters/ParameterBase.py,sha256=4yGZ3GzkwfLJBL4sd58m4gQt3IzOpeoWSnMgLyNssxg,1306
256
256
  LOGS/Parameters/ParameterConverter.py,sha256=MU-drxNV2plQBoynZkQo5t9Xmfpkp9E7um6_52yLzuI,758
257
257
  LOGS/Parameters/ParameterElement.py,sha256=fr6AlO_flKRygZZFx1OILP4P-2lV2Tx4PAe6WTZdsdQ,2350
258
258
  LOGS/Parameters/ParameterList.py,sha256=ijukB1__iKI5cefmOIIWz0wKaPz9Cx8KpD7Y7Gz2Pn0,1478
259
259
  LOGS/Parameters/ParameterTable.py,sha256=7Lew4DPgWmKcpV1T-1Pvt00kEI05FB383QqO-LHAjds,1758
260
- LOGS/Parameters/__init__.py,sha256=jNF_VnD9u6V7usDFymzvDx5kzvcYssnpASICiKW0wdU,341
261
- logs_py-3.0.4.dist-info/METADATA,sha256=Orq03RgPS8rejpL-1wp-4iuaWXLT341UScuQFmc36fA,2072
262
- logs_py-3.0.4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
263
- logs_py-3.0.4.dist-info/top_level.txt,sha256=Ckn2LiAmGaR7k3tdEnKAc04z_uboMD4gLreYghRNdCs,5
264
- logs_py-3.0.4.dist-info/RECORD,,
260
+ LOGS/Parameters/__init__.py,sha256=KpMSuBPx964v2YMZ1BqVp8vjrgSpuiW9KYBm-aejRuc,312
261
+ logs_py-3.0.6.dist-info/METADATA,sha256=LnTxXoCq_ClxYxHz-Kn5GpsYctPWilR-QetHeuSVSXk,2339
262
+ logs_py-3.0.6.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
263
+ logs_py-3.0.6.dist-info/top_level.txt,sha256=Ckn2LiAmGaR7k3tdEnKAc04z_uboMD4gLreYghRNdCs,5
264
+ logs_py-3.0.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5