pybiolib 1.1.1917__py3-none-any.whl → 1.1.1921__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.
@@ -28,6 +28,9 @@ class DataRecord:
28
28
 
29
29
  self._name = uri_parsed['app_name']
30
30
 
31
+ def __repr__(self):
32
+ return f'DataRecord: {self._uri}'
33
+
31
34
  @property
32
35
  def uri(self) -> str:
33
36
  return self._uri
@@ -91,6 +94,8 @@ class DataRecord:
91
94
  if uri:
92
95
  uri_parsed = parse_app_uri(uri, use_account_as_name_default=False)
93
96
  params['account_handle'] = uri_parsed['account_handle_normalized']
97
+ if uri_parsed['app_name_normalized']:
98
+ params['app_name'] = uri_parsed['app_name_normalized']
94
99
 
95
100
  results = api_client.get(path='/apps/', params=params).json()['results']
96
101
  if count is None and len(results) == max_page_size:
biolib/sdk/__init__.py CHANGED
@@ -1,11 +1,11 @@
1
1
  # Imports to hide and use as private internal utils
2
- from biolib._internal.data_record import DataRecord as _DataRecord
3
2
  from biolib._internal.push_application import push_application as _push_application
4
3
  from biolib._internal.push_application import set_app_version_as_active as _set_app_version_as_active
5
4
  from biolib.app import BioLibApp as _BioLibApp
6
5
  from biolib.typing_utils import Optional as _Optional
7
6
 
8
7
  # Imports to expose as public API
8
+ from biolib._internal.data_record import DataRecord
9
9
  from biolib._internal.runtime import Runtime
10
10
 
11
11
 
@@ -42,5 +42,5 @@ def get_app_version_pytest_plugin(app_version: _BioLibApp):
42
42
  return AppVersionFixturePlugin(app_version)
43
43
 
44
44
 
45
- def create_data_record(destination: str, data_path: str, name: _Optional[str] = None) -> _DataRecord:
46
- return _DataRecord.create(destination, data_path, name)
45
+ def create_data_record(destination: str, data_path: str, name: _Optional[str] = None) -> DataRecord:
46
+ return DataRecord.create(destination, data_path, name)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.1917
3
+ Version: 1.1.1921
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -3,7 +3,7 @@ README.md,sha256=_IH7pxFiqy2bIAmaVeA-iVTyUwWRjMIlfgtUbYTtmls,368
3
3
  biolib/__init__.py,sha256=nfZvVkrHZLvjvvlAvFzhvem9NMfqgmw8NWaCH9HGzew,4045
4
4
  biolib/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  biolib/_internal/data_record/__init__.py,sha256=1Bk303i3rFet9veS56fIsrBYtT5X3n9vcsYMA6T6c5o,36
6
- biolib/_internal/data_record/data_record.py,sha256=brvr88Ri1ro-tHZ-_1S19mX5Yt4Tm7q1c5AoUZfpSNY,6990
6
+ biolib/_internal/data_record/data_record.py,sha256=ctijrrZ-LfUxtwzS8PEVa1VBuBLVWEhmo2yHcEDkC0A,7178
7
7
  biolib/_internal/data_record/remote_storage_endpoint.py,sha256=LPq8Lr5FhKF9_o5K-bUdT7TeLe5XFUD0AAeTkNEVZug,1133
8
8
  biolib/_internal/http_client.py,sha256=38PHvRkqdjcOgRXkWU7UoYCQxHMX0eKpuwKhudDupII,4525
9
9
  biolib/_internal/push_application.py,sha256=H1PGNtVJ0vRC0li39gFMpPpjm6QeZ8Ob-7cLkLmxS_Y,10009
@@ -92,7 +92,7 @@ biolib/lfs/__init__.py,sha256=Qv8vdYeK43JecT4SsE93ZYE2VmNiZENdNpW8P9-omxs,115
92
92
  biolib/lfs/cache.py,sha256=pQS2np21rdJ6I3DpoOutnzPHpLOZgUIS8TMltUJk_k4,2226
93
93
  biolib/lfs/utils.py,sha256=HSs7F2wXklYhhv5tabfaeC5noXJyxRjbGD5IhWOVdxs,5918
94
94
  biolib/runtime/__init__.py,sha256=x1Ivydtu9TFTaX-Cofg_kGA-TI0zLon-ccrFiiVgBok,492
95
- biolib/sdk/__init__.py,sha256=77IBthMbwgmYymjQwLP4ny1X2ikvI1I0ocP6Eyzfyaw,1766
95
+ biolib/sdk/__init__.py,sha256=wkQs7ltIpYK9Xw0-FLLacblemmlNGz8J2UmlM0noGSs,1749
96
96
  biolib/tables.py,sha256=acH7VjwAbadLo8P84FSnKEZxCTVsF5rEg9VPuxElNs8,872
97
97
  biolib/templates/__init__.py,sha256=Yx62sSyDCDesRQDQgmbDsLpfgEh93fWE8r9u4g2azXk,36
98
98
  biolib/templates/example_app.py,sha256=EB3E3RT4SeO_ii5nVQqJpi5KDGNE_huF1ub-e5ZFveE,715
@@ -105,8 +105,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
105
105
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
106
106
  biolib/utils/seq_util.py,sha256=jC5WhH63FTD7SLFJbxQGA2hOt9NTwq9zHl_BEec1Z0c,4907
107
107
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
108
- pybiolib-1.1.1917.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
- pybiolib-1.1.1917.dist-info/METADATA,sha256=CbmBzNSp1CoLuExmlbJMLgszUxT1SxrRYAVpYhWKF9o,1508
110
- pybiolib-1.1.1917.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
- pybiolib-1.1.1917.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
- pybiolib-1.1.1917.dist-info/RECORD,,
108
+ pybiolib-1.1.1921.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
+ pybiolib-1.1.1921.dist-info/METADATA,sha256=quYP4m07RNqDCIBxj-UafoDq46C2e63zXhXD1QLGhiQ,1508
110
+ pybiolib-1.1.1921.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
+ pybiolib-1.1.1921.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
+ pybiolib-1.1.1921.dist-info/RECORD,,