poelis-sdk 0.2.0__tar.gz → 0.2.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.
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/PKG-INFO +1 -1
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/notebooks/try_poelis_sdk.ipynb +27 -5
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/pyproject.toml +1 -1
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/tests/test_browser_navigation.py +2 -6
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/uv.lock +1 -1
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/.github/workflows/ci.yml +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/.github/workflows/codeql.yml +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/.github/workflows/publish-on-push.yml +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/.gitignore +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/LICENSE +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/README.md +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/__init__.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/_transport.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/auth0.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/browser.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/client.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/exceptions.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/items.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/logging.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/models.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/org_validation.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/products.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/search.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/poelis_sdk/workspaces.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/tests/test_client_basic.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/tests/test_errors_and_backoff.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/tests/test_items_client.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/tests/test_search_client.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/src/tests/test_transport_and_products.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/tests/__init__.py +0 -0
- {poelis_sdk-0.2.0 → poelis_sdk-0.2.2}/tests/test_integration_smoke.py +0 -0
|
@@ -180,17 +180,39 @@
|
|
|
180
180
|
"# - Type: client.browser. and press TAB to see workspaces\n",
|
|
181
181
|
"# - Then: client.browser.<workspace>. and TAB to see products\n",
|
|
182
182
|
"# - Then: client.browser.<workspace>.<product>. and TAB to see items\n",
|
|
183
|
-
"# - On an item, TAB shows child items and property keys
|
|
184
|
-
|
|
183
|
+
"# - On an item, TAB shows child items and property keys"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"cell_type": "code",
|
|
188
|
+
"execution_count": null,
|
|
189
|
+
"metadata": {},
|
|
190
|
+
"outputs": [],
|
|
191
|
+
"source": [
|
|
185
192
|
"# 3) Access a property’s value and category via dot paths\n",
|
|
186
193
|
"# Example (replace names with your actual names shown by TAB):\n",
|
|
187
|
-
"workspace = client.browser.UH2_Workspace
|
|
194
|
+
"workspace = client.browser.UH2_Workspace"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"cell_type": "code",
|
|
199
|
+
"execution_count": null,
|
|
200
|
+
"metadata": {},
|
|
201
|
+
"outputs": [],
|
|
202
|
+
"source": [
|
|
188
203
|
"val = workspace.LH2_Tank.cold_box.clv.mass.value\n",
|
|
189
204
|
"cat = workspace.LH2_Tank.cold_box.clv.mass.category\n",
|
|
190
205
|
"\n",
|
|
191
206
|
"print(\"property value:\", val)\n",
|
|
192
|
-
"print(\"property category:\", cat)
|
|
193
|
-
|
|
207
|
+
"print(\"property category:\", cat)"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"cell_type": "code",
|
|
212
|
+
"execution_count": null,
|
|
213
|
+
"metadata": {},
|
|
214
|
+
"outputs": [],
|
|
215
|
+
"source": [
|
|
194
216
|
"# 4) Go deeper into child items if needed (TAB will suggest only item/property names)\n",
|
|
195
217
|
"inner = client.browser.UH2_Workspace.LH2_Tank.inner_tank"
|
|
196
218
|
]
|
|
@@ -5,18 +5,14 @@ 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
|
|
8
|
+
from typing import TYPE_CHECKING, Any, Dict
|
|
9
9
|
|
|
10
10
|
import httpx
|
|
11
11
|
|
|
12
12
|
from poelis_sdk import PoelisClient
|
|
13
13
|
|
|
14
14
|
if TYPE_CHECKING:
|
|
15
|
-
|
|
16
|
-
from _pytest.fixtures import FixtureRequest
|
|
17
|
-
from _pytest.logging import LogCaptureFixture
|
|
18
|
-
from _pytest.monkeypatch import MonkeyPatch
|
|
19
|
-
from pytest_mock.plugin import MockerFixture
|
|
15
|
+
pass
|
|
20
16
|
|
|
21
17
|
|
|
22
18
|
class _MockTransport(httpx.BaseTransport):
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|