datalab-api 0.2.12__tar.gz → 0.2.13__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.
- {datalab_api-0.2.12/src/datalab_api.egg-info → datalab_api-0.2.13}/PKG-INFO +1 -1
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api/__init__.py +4 -2
- {datalab_api-0.2.12 → datalab_api-0.2.13/src/datalab_api.egg-info}/PKG-INFO +1 -1
- {datalab_api-0.2.12 → datalab_api-0.2.13}/LICENSE +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/README.md +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/pyproject.toml +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/setup.cfg +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api/_base.py +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api/cli.py +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api/helpers.py +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api.egg-info/SOURCES.txt +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api.egg-info/dependency_links.txt +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api.egg-info/entry_points.txt +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api.egg-info/requires.txt +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/src/datalab_api.egg-info/top_level.txt +0 -0
- {datalab_api-0.2.12 → datalab_api-0.2.13}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datalab-api
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: A Python API for instances of the datalab data management platform (https://github.com/datalab-org/datalab).
|
|
5
5
|
Author-email: Matthew Evans <matthew@ml-evs.science>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -254,9 +254,11 @@ class DatalabClient(BaseDatalabClient):
|
|
|
254
254
|
raise ValueError("Must provide only one of `item_id` or `refcode`.")
|
|
255
255
|
|
|
256
256
|
if refcode is not None:
|
|
257
|
-
|
|
257
|
+
item_url = f"{self.datalab_api_url}/items/{refcode}"
|
|
258
|
+
|
|
259
|
+
else:
|
|
260
|
+
item_url = f"{self.datalab_api_url}/get-item-data/{item_id}"
|
|
258
261
|
|
|
259
|
-
item_url = f"{self.datalab_api_url}/get-item-data/{item_id}"
|
|
260
262
|
item_resp = self.session.get(item_url, follow_redirects=True)
|
|
261
263
|
|
|
262
264
|
if item_resp.status_code != 200:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datalab-api
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: A Python API for instances of the datalab data management platform (https://github.com/datalab-org/datalab).
|
|
5
5
|
Author-email: Matthew Evans <matthew@ml-evs.science>
|
|
6
6
|
License-Expression: MIT
|
|
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
|