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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datalab-api
3
- Version: 0.2.12
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
- raise NotImplementedError("Searching by `refcode` is not yet implemented.")
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.12
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