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.

Files changed (31) hide show
  1. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/PKG-INFO +1 -1
  2. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/pyproject.toml +1 -1
  3. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/__init__.py +1 -1
  4. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/_transport.py +11 -3
  5. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/browser.py +8 -8
  6. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/client.py +5 -4
  7. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/items.py +1 -1
  8. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/models.py +1 -1
  9. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/products.py +1 -1
  10. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/workspaces.py +1 -1
  11. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_integration_smoke.py +1 -0
  12. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_typed_properties.py +1 -1
  13. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/uv.lock +1 -1
  14. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/ci.yml +0 -0
  15. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/codeql.yml +0 -0
  16. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.github/workflows/publish-on-push.yml +0 -0
  17. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/.gitignore +0 -0
  18. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/LICENSE +0 -0
  19. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/README.md +0 -0
  20. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/notebooks/try_poelis_sdk.ipynb +0 -0
  21. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/exceptions.py +0 -0
  22. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/logging.py +0 -0
  23. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/org_validation.py +0 -0
  24. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/poelis_sdk/search.py +0 -0
  25. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_client_basic.py +1 -1
  26. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_errors_and_backoff.py +0 -0
  27. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_items_client.py +0 -0
  28. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_search_client.py +0 -0
  29. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/src/tests/test_transport_and_products.py +0 -0
  30. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/__init__.py +0 -0
  31. {poelis_sdk-0.3.3 → poelis_sdk-0.3.5}/tests/test_browser_navigation.py +1 -1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: poelis-sdk
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: Official Python SDK for Poelis
5
5
  Project-URL: Homepage, https://poelis.com
6
6
  Project-URL: Source, https://github.com/PoelisTechnologies/poelis-python-sdk
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "poelis-sdk"
7
- version = "0.3.3"
7
+ version = "0.3.5"
8
8
  description = "Official Python SDK for Poelis"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -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, quiet_logging, verbose_logging, debug_logging, get_logger
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 ClientError, HTTPError, NotFoundError, RateLimitError, ServerError, UnauthorizedError
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 .products import ProductsClient
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
 
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Generator, Any, Optional, Dict, List
3
+ from typing import Any, Dict, Generator, List, Optional
4
4
 
5
5
  from ._transport import Transport
6
6
 
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Optional, Any, Union, List
3
+ from typing import Any, List, Optional, Union
4
4
 
5
5
  from pydantic import BaseModel, Field
6
6
 
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from typing import Generator, Optional, TYPE_CHECKING
3
+ from typing import TYPE_CHECKING, Generator, Optional
4
4
 
5
5
  from ._transport import Transport
6
6
  from .models import PaginatedProducts, Product
@@ -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 validate_workspace_organization, filter_by_organization
6
+ from .org_validation import filter_by_organization, validate_workspace_organization
7
7
 
8
8
  """Workspaces GraphQL client."""
9
9
 
@@ -6,6 +6,7 @@ Skips by default unless POELIS_API_KEY and POELIS_ORG_ID are set.
6
6
  from __future__ import annotations
7
7
 
8
8
  import os
9
+
9
10
  import pytest
10
11
 
11
12
  from poelis_sdk import PoelisClient
@@ -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
@@ -538,7 +538,7 @@ wheels = [
538
538
 
539
539
  [[package]]
540
540
  name = "poelis-sdk"
541
- version = "0.3.3"
541
+ version = "0.3.5"
542
542
  source = { editable = "." }
543
543
  dependencies = [
544
544
  { name = "build" },
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
@@ -5,8 +5,8 @@ These tests avoid reliance on IPython and focus on programmatic APIs.
5
5
 
6
6
  from __future__ import annotations
7
7
 
8
- from typing import TYPE_CHECKING, Any, Dict
9
8
  import json
9
+ from typing import TYPE_CHECKING, Any, Dict
10
10
 
11
11
  import httpx
12
12