Skip to content

Commit

Permalink
(patch): removed Plotly prerelease, added timestamp, increased DX cli…
Browse files Browse the repository at this point in the history
…ent timeout (#301)

* stick to GA version of plotly for now

* Add another timestamp format

* Increase timeout for infinity client

* bump version for patch release
  • Loading branch information
StijnKas authored Dec 19, 2024
1 parent d875019 commit bca5bde
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = ['polars==1.16', 'typing_extensions']
version = {attr="pdstools.__version__"}

[project.optional-dependencies]
adm = ['plotly[express]>=6.0.0rc0', 'requests']
adm = ['plotly', 'requests']
pega_io = ['aioboto3', 'polars_hash']
api = ['httpx', 'pydantic', 'anyio']
healthcheck = ['pdstools[adm]', 'great_tables>=0.13', 'quarto', 'papermill', 'xlsxwriter>=3.0', 'pydot']
Expand Down
2 changes: 1 addition & 1 deletion python/pdstools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Pega Data Scientist Tools Python library"""

__version__ = "4.0.0"
__version__ = "4.0.1"

from pathlib import Path

Expand Down
4 changes: 2 additions & 2 deletions python/pdstools/infinity/internal/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
auth: Union[httpx.Auth, PegaOAuth],
verify: bool = False,
pega_version: Union[str, None] = None,
timeout: float = 20,
timeout: float = 90,
):
self._base_url = self._enforce_trailing_slash(httpx.URL(base_url))
self.auth = auth
Expand Down Expand Up @@ -178,7 +178,7 @@ def __init__(
auth: Union[httpx.Auth, PegaOAuth],
verify: bool = False,
pega_version: Union[str, None] = None,
timeout: float = 20,
timeout: float = 90,
):
super().__init__(
base_url=base_url, auth=auth, verify=verify, pega_version=pega_version
Expand Down
5 changes: 4 additions & 1 deletion python/pdstools/utils/cdh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def parse_pega_date_time_formats(
pl.col(timestamp_col).str.to_datetime(
"%d-%b-%y", strict=False, ambiguous="null"
),
pl.col(timestamp_col).str.to_datetime(
"%d%b%Y:%H:%M:%S", strict=False, ambiguous="null"
),
pl.col(timestamp_col).str.to_datetime(
timestamp_fmt or "%Y", strict=False, ambiguous="null"
),
Expand Down Expand Up @@ -562,7 +565,7 @@ def _capitalize(fields: Union[str, Iterable[str]]) -> List[str]:
"Offline",
"Update",
"Strategy",
"ModelTechnique"
"ModelTechnique",
]
if not isinstance(fields, list):
fields = [fields]
Expand Down

0 comments on commit bca5bde

Please sign in to comment.