poelis-sdk 0.3.3__tar.gz → 0.3.5__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 poelis-sdk might be problematic. Click here for more details.
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/PKG-INFO +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/pyproject.toml +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/__init__.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/_transport.py +11 -3
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/browser.py +8 -8
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/client.py +5 -4
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/items.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/models.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/products.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/workspaces.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_integration_smoke.py +1 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_typed_properties.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/uv.lock +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/ci.yml +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/codeql.yml +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/publish-on-push.yml +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.gitignore +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/LICENSE +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/README.md +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/notebooks/try_poelis_sdk.ipynb +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/exceptions.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/logging.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/org_validation.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/search.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_client_basic.py +1 -1
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_errors_and_backoff.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_items_client.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_search_client.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_transport_and_products.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/__init__.py +0 -0
- {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_browser_navigation.py +1 -1
|
@@ -7,7 +7,7 @@ metadata so it stays in sync with ``pyproject.toml`` without manual edits.
|
|
|
7
7
|
from importlib import metadata
|
|
8
8
|
|
|
9
9
|
from .client import PoelisClient
|
|
10
|
-
from .logging import configure_logging,
|
|
10
|
+
from .logging import configure_logging, debug_logging, get_logger, quiet_logging, verbose_logging
|
|
11
11
|
|
|
12
12
|
__all__ = ["PoelisClient", "__version__", "configure_logging", "quiet_logging", "verbose_logging", "debug_logging", "get_logger"]
|
|
13
13
|
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from typing import Any, Dict, Mapping, Optional
|
|
4
3
|
import os
|
|
5
|
-
import time
|
|
6
4
|
import random
|
|
5
|
+
import time
|
|
6
|
+
from typing import Any, Dict, Mapping, Optional
|
|
7
|
+
|
|
7
8
|
import httpx
|
|
8
9
|
|
|
9
|
-
from .exceptions import
|
|
10
|
+
from .exceptions import (
|
|
11
|
+
ClientError,
|
|
12
|
+
HTTPError,
|
|
13
|
+
NotFoundError,
|
|
14
|
+
RateLimitError,
|
|
15
|
+
ServerError,
|
|
16
|
+
UnauthorizedError,
|
|
17
|
+
)
|
|
10
18
|
|
|
11
19
|
"""HTTP transport abstraction for the Poelis SDK.
|
|
12
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from typing import Any, Dict, List, Optional
|
|
4
|
-
from types import MethodType
|
|
5
3
|
import re
|
|
6
4
|
import time
|
|
5
|
+
from types import MethodType
|
|
6
|
+
from typing import Any, Dict, List, Optional
|
|
7
7
|
|
|
8
8
|
from .org_validation import get_organization_context_message
|
|
9
9
|
|
|
@@ -145,9 +145,9 @@ class _Node:
|
|
|
145
145
|
"query($iid: ID!) {\n"
|
|
146
146
|
" properties(itemId: $iid) {\n"
|
|
147
147
|
" __typename\n"
|
|
148
|
-
" ... on NumericProperty { category value parsedValue }\n"
|
|
149
|
-
" ... on TextProperty { value parsedValue }\n"
|
|
150
|
-
" ... on DateProperty { value }\n"
|
|
148
|
+
" ... on NumericProperty { id name category value parsedValue }\n"
|
|
149
|
+
" ... on TextProperty { id name value parsedValue }\n"
|
|
150
|
+
" ... on DateProperty { id name value }\n"
|
|
151
151
|
" }\n"
|
|
152
152
|
"}"
|
|
153
153
|
)
|
|
@@ -165,9 +165,9 @@ class _Node:
|
|
|
165
165
|
"query($iid: ID!) {\n"
|
|
166
166
|
" properties(itemId: $iid) {\n"
|
|
167
167
|
" __typename\n"
|
|
168
|
-
" ... on NumericProperty { category value }\n"
|
|
169
|
-
" ... on TextProperty { value }\n"
|
|
170
|
-
" ... on DateProperty { value }\n"
|
|
168
|
+
" ... on NumericProperty { id name category value }\n"
|
|
169
|
+
" ... on TextProperty { id name value }\n"
|
|
170
|
+
" ... on DateProperty { id name value }\n"
|
|
171
171
|
" }\n"
|
|
172
172
|
"}"
|
|
173
173
|
)
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from typing import Optional
|
|
4
3
|
import os
|
|
4
|
+
from typing import Optional
|
|
5
5
|
|
|
6
6
|
from pydantic import BaseModel, Field, HttpUrl
|
|
7
|
+
|
|
7
8
|
from ._transport import Transport
|
|
8
|
-
from .
|
|
9
|
+
from .browser import Browser
|
|
9
10
|
from .items import ItemsClient
|
|
11
|
+
from .logging import quiet_logging
|
|
12
|
+
from .products import ProductsClient
|
|
10
13
|
from .search import SearchClient
|
|
11
14
|
from .workspaces import WorkspacesClient
|
|
12
|
-
from .browser import Browser
|
|
13
|
-
from .logging import quiet_logging
|
|
14
15
|
|
|
15
16
|
"""Core client for the Poelis Python SDK.
|
|
16
17
|
|
|
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
from typing import Any, Dict, List, Optional
|
|
4
4
|
|
|
5
5
|
from ._transport import Transport
|
|
6
|
-
from .org_validation import
|
|
6
|
+
from .org_validation import filter_by_organization, validate_workspace_organization
|
|
7
7
|
|
|
8
8
|
"""Workspaces GraphQL client."""
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import TYPE_CHECKING
|
|
6
6
|
|
|
7
|
-
from poelis_sdk.models import NumericProperty, TextProperty, DateProperty, PropertySearchResult
|
|
8
7
|
from poelis_sdk.browser import _PropWrapper
|
|
8
|
+
from poelis_sdk.models import DateProperty, NumericProperty, PropertySearchResult, TextProperty
|
|
9
9
|
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
11
|
from _pytest.capture import CaptureFixture # noqa: F401
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,6 @@ from __future__ import annotations
|
|
|
8
8
|
|
|
9
9
|
from typing import TYPE_CHECKING
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
from poelis_sdk import PoelisClient
|
|
13
12
|
|
|
14
13
|
if TYPE_CHECKING:
|
|
@@ -37,6 +36,7 @@ def test_client_api_key_headers(monkeypatch: "MonkeyPatch") -> None:
|
|
|
37
36
|
"""When api_key and org_id are provided, use API key and X-Poelis-Org headers by default."""
|
|
38
37
|
|
|
39
38
|
import httpx
|
|
39
|
+
|
|
40
40
|
from poelis_sdk.client import Transport as _T
|
|
41
41
|
|
|
42
42
|
class _Tpt(httpx.BaseTransport):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|