wizata-dsapi 1.3.8__py3-none-any.whl → 1.3.10__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.
@@ -148,7 +148,7 @@ def df_from_dict(df_dict: dict) -> pandas.DataFrame:
148
148
  raise ValueError('if using a multi-line dataframe please provide a Timestamp column')
149
149
 
150
150
  if "Timestamp" not in df_dict:
151
- df_dict["Timestamp"] = [datetime.utcnow()]
151
+ df_dict["Timestamp"] = [datetime.now(timezone.utc)]
152
152
  else:
153
153
  timestamp_col = []
154
154
  for timestamp_ms in df_dict["Timestamp"]:
@@ -208,7 +208,7 @@ def verify_relative_datetime(formatted_string: str) -> bool:
208
208
  def generate_epoch(formatted_string: str, now=None):
209
209
  """
210
210
  generate an epoch based on a formatted string (e.g. now+6h) - see documentation.
211
- * now = datetime.utcnow() can be override
211
+ * now = datetime.now(timezone.utc) can be override
212
212
  * units = 'y' = 365d, 'M'=30d , 'w'=7d , 'd'=24h , 'h'=60m, 'm'=60s , 's'=1000'ms'
213
213
  * operators = '+' or '-'
214
214
  :param formatted_string: formatted epoch representation using relative time.
@@ -216,7 +216,7 @@ def generate_epoch(formatted_string: str, now=None):
216
216
  :return: epoch in ms.
217
217
  """
218
218
  if now is None:
219
- now = datetime.utcnow()
219
+ now = datetime.now(timezone.utc)
220
220
 
221
221
  pattern = r'^now([+-]\d+([yMwdHhms]{1,2}))?$'
222
222
  match = re.match(pattern, formatted_string)
@@ -274,5 +274,5 @@ def generate_unique_key() -> str:
274
274
  - 11 char for 'animal_'
275
275
  - 3 car for number XXX
276
276
  """
277
- return f"{datetime.now().strftime('%y%m%d')}_{random.choice(colors).lower()}_" \
277
+ return f"{datetime.now(timezone.utc).strftime('%y%m%d')}_{random.choice(colors).lower()}_" \
278
278
  f"{random.choice(animals).lower()}_{random.randint(1, 999)}"
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.8"
1
+ __version__ = "1.3.10"
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 1.3.8
3
+ Version: 1.3.10
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
7
7
  License-File: LICENSE.txt
8
- Requires-Dist: pandas==1.5.3; python_version < "3.12"
8
+ Requires-Dist: pandas==1.5.3; python_version < "3.11"
9
+ Requires-Dist: pandas==2.2.3; python_version >= "3.11" and python_version < "3.12"
9
10
  Requires-Dist: pandas>=2.3.3; python_version >= "3.12"
10
11
  Requires-Dist: numpy==1.26.4; python_version < "3.12"
11
12
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12"
@@ -16,14 +17,15 @@ Requires-Dist: msal==1.24.0; python_version < "3.12"
16
17
  Requires-Dist: msal>=1.34.0; python_version >= "3.12"
17
18
  Requires-Dist: joblib==1.5.2; python_version < "3.12"
18
19
  Requires-Dist: joblib>=1.2.0; python_version >= "3.12"
19
- Requires-Dist: requests==2.28.2; python_version < "3.12"
20
- Requires-Dist: requests>=2.32.5; python_version >= "3.12"
21
- Requires-Dist: setuptools==67.6.0; python_version < "3.12"
22
- Requires-Dist: setuptools>=80.9.0; python_version >= "3.12"
20
+ Requires-Dist: requests==2.28.2; python_version < "3.11"
21
+ Requires-Dist: requests>=2.32.5; python_version >= "3.11"
22
+ Requires-Dist: setuptools==67.6.0; python_version < "3.11"
23
+ Requires-Dist: setuptools>=80.9.0; python_version >= "3.11"
23
24
  Requires-Dist: plotly==5.13.1; python_version < "3.12"
24
25
  Requires-Dist: plotly>=6.3.1; python_version >= "3.12"
25
26
  Provides-Extra: all
26
- Requires-Dist: pandas==1.5.3; python_version < "3.12" and extra == "all"
27
+ Requires-Dist: pandas==1.5.3; python_version < "3.11" and extra == "all"
28
+ Requires-Dist: pandas==2.2.3; (python_version >= "3.11" and python_version < "3.12") and extra == "all"
27
29
  Requires-Dist: pandas>=2.3.3; python_version >= "3.12" and extra == "all"
28
30
  Requires-Dist: numpy==1.26.4; python_version < "3.12" and extra == "all"
29
31
  Requires-Dist: numpy>=2.3.3; python_version >= "3.12" and extra == "all"
@@ -34,14 +36,14 @@ Requires-Dist: msal==1.24.0; python_version < "3.12" and extra == "all"
34
36
  Requires-Dist: msal>=1.34.0; python_version >= "3.12" and extra == "all"
35
37
  Requires-Dist: joblib==1.5.2; python_version < "3.12" and extra == "all"
36
38
  Requires-Dist: joblib>=1.2.0; python_version >= "3.12" and extra == "all"
37
- Requires-Dist: requests==2.28.2; python_version < "3.12" and extra == "all"
38
- Requires-Dist: requests>=2.32.5; python_version >= "3.12" and extra == "all"
39
- Requires-Dist: setuptools==67.6.0; python_version < "3.12" and extra == "all"
40
- Requires-Dist: setuptools>=80.9.0; python_version >= "3.12" and extra == "all"
39
+ Requires-Dist: requests==2.28.2; python_version < "3.11" and extra == "all"
40
+ Requires-Dist: requests>=2.32.5; python_version >= "3.11" and extra == "all"
41
+ Requires-Dist: setuptools==67.6.0; python_version < "3.11" and extra == "all"
42
+ Requires-Dist: setuptools>=80.9.0; python_version >= "3.11" and extra == "all"
41
43
  Requires-Dist: plotly==5.13.1; python_version < "3.12" and extra == "all"
42
44
  Requires-Dist: plotly>=6.3.1; python_version >= "3.12" and extra == "all"
43
- Requires-Dist: matplotlib==3.7.1; python_version < "3.12" and extra == "all"
44
- Requires-Dist: matplotlib>=3.10.6; python_version >= "3.12" and extra == "all"
45
+ Requires-Dist: matplotlib==3.7.1; python_version < "3.11" and extra == "all"
46
+ Requires-Dist: matplotlib>=3.10.6; python_version >= "3.11" and extra == "all"
45
47
  Requires-Dist: tensorflow>=2.15.0; ((sys_platform != "darwin" or platform_machine != "arm64") and python_version < "3.12") and extra == "all"
46
48
  Requires-Dist: tensorflow-macos>=2.15.0; (sys_platform == "darwin" and platform_machine == "arm64" and python_version < "3.12") and extra == "all"
47
49
  Requires-Dist: tensorflow>=2.20.0; python_version >= "3.12" and extra == "all"
@@ -73,6 +75,7 @@ Requires-Dist: shapely==2.0.1; python_version < "3.12" and extra == "all"
73
75
  Requires-Dist: shapely>=2.1.2; python_version >= "3.12" and extra == "all"
74
76
  Requires-Dist: pyodbc==4.0.35; python_version < "3.12" and extra == "all"
75
77
  Requires-Dist: pyodbc>=5.2.0; python_version >= "3.12" and extra == "all"
78
+ Requires-Dist: torch==2.7.1; (python_version >= "3.11" and python_version < "3.12") and extra == "all"
76
79
  Requires-Dist: torch>=2.8.0; python_version >= "3.12" and extra == "all"
77
80
  Dynamic: author
78
81
  Dynamic: author-email
@@ -5,7 +5,7 @@ wizata_dsapi/api_interface.py,sha256=DURk-0ey16T8sV5e2Y2G_YybPEusJvZuY0oD5L7AnXo
5
5
  wizata_dsapi/bucket.py,sha256=Zz9olv-pymikAutGitSuGWrAPiawOTW86JDDHG4ugTc,1150
6
6
  wizata_dsapi/business_label.py,sha256=u0TVfUNfoR9qSv8lzpf6rNjlg3G9xTiz6itefcKfeak,4151
7
7
  wizata_dsapi/context.py,sha256=M7hsvXoU0Bn_5ONDB-5VvjriMpno6bAgh0RrJ9Y-h7U,11600
8
- wizata_dsapi/dataframe_toolkit.py,sha256=22H4SizmhTQ1DNIzd6tg0izgncRDcrdkfGdBO6Vbi5g,9039
8
+ wizata_dsapi/dataframe_toolkit.py,sha256=7D8JrhsFSGXeO3mRAd2e2cLmdjbXRjk04IuaMG8F974,9078
9
9
  wizata_dsapi/datapoint.py,sha256=UUatqzWMwC4ucM6HdeQDWtLS4fGqEsDABCNVmxoP5Hg,14635
10
10
  wizata_dsapi/datastore.py,sha256=BSHZmCSJ679boBA1eCkaWGJCy1CUeipKKGt2jDHzdVo,2663
11
11
  wizata_dsapi/ds_dataframe.py,sha256=Sk2JRUuTRJzko3HosJnbK34STpgSJUlqxLq8w_E5VM4,2089
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=wtCRKKk3PchH4RrNgNYlEF_9C6bzZwKIeLyEvgv6Fdo,1370
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=S0DUzQf1smZXZTdXpXZPtkZYCfKIhw53EecCnsl9i4Q,11017
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=47xEhOdVR5Y8-pZH8aVP6Z2UhhY8jGWTQ-rJHt5fIeU,22
34
+ wizata_dsapi/version.py,sha256=4o4BxiWDvKULo_NByGymiLj9KXGht1PsOBGUMmasvxM,23
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
37
  wizata_dsapi/wizata_dsapi_client.py,sha256=kos_8j47CBXiy6y6b_H2yDUe3aWh76diEmWjCisYKkY,78662
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.3.8.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.3.8.dist-info/METADATA,sha256=YQ8JouHbB2PD84lnasHf8sGYWbVZLoFeeCpVPCOSkQk,5172
47
- wizata_dsapi-1.3.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- wizata_dsapi-1.3.8.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.3.8.dist-info/RECORD,,
45
+ wizata_dsapi-1.3.10.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.3.10.dist-info/METADATA,sha256=-7gm_5NICxt9GbUSCByi43lCgE8ppfns4ESqxK7vweU,5463
47
+ wizata_dsapi-1.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ wizata_dsapi-1.3.10.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.3.10.dist-info/RECORD,,