Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(patch): removed Plotly prerelease, added timestamp, increased DX client timeout #301

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading