poelis-sdk 0.1.1__tar.gz → 0.1.2__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 (33) hide show
  1. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/PKG-INFO +1 -1
  2. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/pyproject.toml +1 -1
  3. poelis_sdk-0.1.2/src/poelis_sdk/__init__.py +29 -0
  4. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/client.py +4 -4
  5. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/uv.lock +1 -1
  6. poelis_sdk-0.1.1/.github/workflows/publish-pypi.yml +0 -42
  7. poelis_sdk-0.1.1/.github/workflows/publish-testpypi.yml +0 -11
  8. poelis_sdk-0.1.1/src/poelis_sdk/__init__.py +0 -8
  9. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/.github/workflows/ci.yml +0 -0
  10. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/.github/workflows/codeql.yml +0 -0
  11. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/.github/workflows/publish-on-push.yml +0 -0
  12. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/.gitignore +0 -0
  13. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/LICENSE +0 -0
  14. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/README.md +0 -0
  15. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/notebooks/try_poelis_sdk.ipynb +0 -0
  16. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/.github/workflows/sdk-ci.yml +0 -0
  17. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/.github/workflows/sdk-docs.yml +0 -0
  18. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/.github/workflows/sdk-publish-testpypi.yml +0 -0
  19. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/_transport.py +0 -0
  20. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/browser.py +0 -0
  21. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/exceptions.py +0 -0
  22. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/items.py +0 -0
  23. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/models.py +0 -0
  24. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/products.py +0 -0
  25. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/search.py +0 -0
  26. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/poelis_sdk/workspaces.py +0 -0
  27. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/tests/test_client_basic.py +0 -0
  28. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/tests/test_errors_and_backoff.py +0 -0
  29. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/tests/test_items_client.py +0 -0
  30. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/tests/test_search_client.py +0 -0
  31. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/src/tests/test_transport_and_products.py +0 -0
  32. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/tests/__init__.py +0 -0
  33. {poelis_sdk-0.1.1 → poelis_sdk-0.1.2}/tests/test_integration_smoke.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: poelis-sdk
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Official Python SDK for Poelis
5
5
  Project-URL: Homepage, https://poelis.ai
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.1.1"
7
+ version = "0.1.2"
8
8
  description = "Official Python SDK for Poelis"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -0,0 +1,29 @@
1
+ """Poelis Python SDK public exports.
2
+
3
+ Exposes the primary client and resolves the package version from installed
4
+ metadata so it stays in sync with ``pyproject.toml`` without manual edits.
5
+ """
6
+
7
+ from importlib import metadata
8
+
9
+ from .client import PoelisClient
10
+
11
+ __all__ = ["PoelisClient", "__version__"]
12
+
13
+ def _resolve_version() -> str:
14
+ """Return installed package version or a dev fallback.
15
+
16
+ Returns:
17
+ str: Version string from package metadata, or ``"0.0.0-dev"`` when
18
+ metadata is unavailable (e.g., editable installs without built metadata).
19
+ """
20
+
21
+ try:
22
+ return metadata.version("poelis-sdk")
23
+ except metadata.PackageNotFoundError:
24
+ return "0.0.0-dev"
25
+
26
+
27
+ __version__: str = _resolve_version()
28
+
29
+
@@ -30,7 +30,7 @@ class ClientConfig(BaseModel):
30
30
  timeout_seconds: Request timeout in seconds.
31
31
  """
32
32
 
33
- base_url: HttpUrl = Field(default="https://api.poelis.ai")
33
+ base_url: HttpUrl = Field(default="https://poelis-be-py-753618215333.europe-west1.run.app")
34
34
  api_key: str = Field(min_length=1)
35
35
  org_id: str = Field(min_length=1)
36
36
  timeout_seconds: float = 30.0
@@ -44,7 +44,7 @@ class PoelisClient:
44
44
  resource accessors to unblock incremental development.
45
45
  """
46
46
 
47
- def __init__(self, api_key: str, org_id: str, base_url: str = "https://api.poelis.ai", timeout_seconds: float = 30.0) -> None:
47
+ def __init__(self, api_key: str, org_id: str, base_url: str = "https://poelis-be-py-753618215333.europe-west1.run.app", timeout_seconds: float = 30.0) -> None:
48
48
  """Initialize the client with API endpoint and credentials.
49
49
 
50
50
  Args:
@@ -81,12 +81,12 @@ class PoelisClient:
81
81
  """Construct a client using environment variables.
82
82
 
83
83
  Expected variables:
84
- - POELIS_BASE_URL (optional, defaults to production)
84
+ - POELIS_BASE_URL (optional, defaults to managed GCP endpoint)
85
85
  - POELIS_API_KEY
86
86
  - POELIS_ORG_ID
87
87
  """
88
88
 
89
- base_url = os.environ.get("POELIS_BASE_URL", "https://api.poelis.ai")
89
+ base_url = os.environ.get("POELIS_BASE_URL", "https://poelis-be-py-753618215333.europe-west1.run.app")
90
90
  api_key = os.environ.get("POELIS_API_KEY")
91
91
  org_id = os.environ.get("POELIS_ORG_ID")
92
92
 
@@ -538,7 +538,7 @@ wheels = [
538
538
 
539
539
  [[package]]
540
540
  name = "poelis-sdk"
541
- version = "0.1.1"
541
+ version = "0.1.2"
542
542
  source = { editable = "." }
543
543
  dependencies = [
544
544
  { name = "build" },
@@ -1,42 +0,0 @@
1
- name: Publish (PyPI)
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*'
7
-
8
- jobs:
9
- build-and-publish:
10
- if: ${{ !contains(github.ref_name, 'rc') }}
11
- runs-on: ubuntu-latest
12
- permissions:
13
- contents: read
14
-
15
- steps:
16
- - name: Checkout
17
- uses: actions/checkout@v4
18
-
19
- - name: Set up Python
20
- uses: actions/setup-python@v5
21
- with:
22
- python-version: '3.12'
23
-
24
- - name: Install uv
25
- uses: astral-sh/setup-uv@v3
26
- with:
27
- version: 'latest'
28
-
29
- - name: Install build tooling
30
- run: |
31
- uv sync --dev
32
-
33
- - name: Build sdist and wheel
34
- run: |
35
- uv run python -m build
36
-
37
- - name: Publish to PyPI
38
- uses: pypa/gh-action-pypi-publish@release/v1
39
- with:
40
- user: __token__
41
- password: ${{ secrets.PYPI_API_TOKEN }}
42
-
@@ -1,11 +0,0 @@
1
- name: DISABLED - Publish (TestPyPI)
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- noop:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - run: echo "TestPyPI publishing disabled. Use PyPI workflow only."
11
-
@@ -1,8 +0,0 @@
1
- """Poelis Python SDK public exports."""
2
-
3
- from .client import PoelisClient
4
-
5
- __version__ = "0.1.0"
6
- __all__ = ["PoelisClient"]
7
-
8
-
File without changes
File without changes
File without changes
File without changes