pybiolib 1.1.2138__py3-none-any.whl → 1.1.2141__py3-none-any.whl

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,4 +1,12 @@
1
+ import os
2
+ from collections import namedtuple
3
+ from datetime import datetime
4
+ from fnmatch import fnmatch
5
+ from struct import Struct
6
+ from typing import Callable, Dict, List, Union, cast
7
+
1
8
  from biolib import api
9
+ from biolib._internal import types
2
10
  from biolib._internal.data_record import get_data_record_state_from_uri, push_data_record_version
3
11
  from biolib._internal.data_record.remote_storage_endpoint import DataRecordRemoteStorageEndpoint
4
12
  from biolib._internal.http_client import HttpClient
@@ -12,14 +20,6 @@ from biolib.typing_utils import Optional as _Optional
12
20
  from biolib.utils.app_uri import parse_app_uri
13
21
  from biolib.utils.zip.remote_zip import RemoteZip
14
22
 
15
-
16
- import os
17
- from collections import namedtuple
18
- from datetime import datetime
19
- from fnmatch import fnmatch
20
- from struct import Struct
21
- from typing import Callable, Dict, List, cast, Union
22
-
23
23
  PathFilter = Union[str, Callable[[str], bool]]
24
24
 
25
25
 
@@ -34,6 +34,10 @@ class DataRecord:
34
34
  def uri(self) -> str:
35
35
  return self._state['resource_uri']
36
36
 
37
+ @property
38
+ def uuid(self) -> str:
39
+ return self._state['resource_uuid']
40
+
37
41
  @property
38
42
  def name(self) -> str:
39
43
  uri_parsed = parse_app_uri(self._state['resource_uri'], use_account_as_name_default=False)
@@ -206,3 +210,6 @@ class DataRecord:
206
210
  return fnmatch(file.path, glob_filter)
207
211
 
208
212
  return list(filter(_filter_function, files))
213
+
214
+ def _get_detailed_dict(self) -> types.DataRecordDetailedDict:
215
+ return cast(types.DataRecordDetailedDict, api_client.get(f'/resources/data-records/{self.uuid}/').json())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.2138
3
+ Version: 1.1.2141
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
2
2
  README.md,sha256=_IH7pxFiqy2bIAmaVeA-iVTyUwWRjMIlfgtUbYTtmls,368
3
3
  biolib/__init__.py,sha256=_tThyzISH81yS9KXP_X3qEiKXmsIp5XOBcJIODfLVnc,4338
4
- biolib/_data_record/data_record.py,sha256=jUeCQjnVQLNLmlXO3rREEUnjXjOYuaQjBO7R66P6wFU,8909
4
+ biolib/_data_record/data_record.py,sha256=KTHrVy_wj6FU3ckD0_EsakyNJcniLIdT9c3ugujNRoI,9210
5
5
  biolib/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  biolib/_internal/data_record/__init__.py,sha256=0T0CV6PfKc8itjMu-48sCJjcZQEzXl1ZLBqG_LjJTqQ,82
7
7
  biolib/_internal/data_record/data_record.py,sha256=D0BaC8WhnkM564eKUI69hVHUkKY1In0cyfpjxYyWk18,3363
@@ -116,8 +116,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
116
116
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
117
117
  biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
118
118
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
119
- pybiolib-1.1.2138.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
120
- pybiolib-1.1.2138.dist-info/METADATA,sha256=kchNYjho0XuOe-z7E79uzYosSujZ-2wPJZfNEMsKAY0,1508
121
- pybiolib-1.1.2138.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
122
- pybiolib-1.1.2138.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
123
- pybiolib-1.1.2138.dist-info/RECORD,,
119
+ pybiolib-1.1.2141.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
120
+ pybiolib-1.1.2141.dist-info/METADATA,sha256=dBSy46K7gh2ibEY9AYf3_KbTi7XJd5BtCcu5A7FnBwM,1508
121
+ pybiolib-1.1.2141.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
122
+ pybiolib-1.1.2141.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
123
+ pybiolib-1.1.2141.dist-info/RECORD,,