pybiolib 1.2.465.dev1__py3-none-any.whl → 1.2.494__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.
@@ -4,6 +4,7 @@ from pathlib import Path
4
4
  from biolib._internal.types.data_record import SqliteV1DatabaseSchema
5
5
  from biolib.api import client as api_client
6
6
  from biolib.biolib_api_client import AppGetResponse
7
+ from biolib.biolib_api_client.biolib_app_api import _get_app_uri_from_str
7
8
  from biolib.biolib_api_client.lfs_types import DataRecordVersionInfo
8
9
 
9
10
 
@@ -82,9 +83,11 @@ def verify_schema(specification: SqliteV1DatabaseSchema, actual_schema: SqliteV1
82
83
 
83
84
 
84
85
  def get_data_record_state_from_uri(uri) -> 'DataRecordVersionInfo':
85
- app_response: AppGetResponse = api_client.get(path='/app/', params={'uri': uri}).json()
86
+ normalized_uri = _get_app_uri_from_str(uri)
87
+ app_response: AppGetResponse = api_client.get(path='/app/', params={'uri': normalized_uri}).json()
88
+ resource_uri = app_response['app_version']['app_uri']
86
89
  if app_response['app']['type'] != 'data-record':
87
- raise Exception(f'Resource "{uri}" is not a Data Record')
90
+ raise Exception(f'Resource "{resource_uri}" is not a Data Record')
88
91
  return DataRecordVersionInfo(
89
92
  resource_uri=app_response['app_version']['app_uri'],
90
93
  resource_uuid=app_response['app']['public_id'],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pybiolib
3
- Version: 1.2.465.dev1
3
+ Version: 1.2.494
4
4
  Summary: BioLib Python Client
5
5
  License: MIT
6
6
  Keywords: biolib
@@ -2,7 +2,7 @@ biolib/__init__.py,sha256=4Rfa0AJKztqkCG5D67kFgSwdOUiBTa5HkAzIOqHNREU,4431
2
2
  biolib/_data_record/data_record.py,sha256=zKvnh5T-dIVY46-kgVzMBoZ666ZhcTCFQnWvZT0D6RM,12026
3
3
  biolib/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  biolib/_internal/data_record/__init__.py,sha256=fGdME6JGRU_2VxpJbYpGXYndjN-feUkmKY4fuMyq3cg,76
5
- biolib/_internal/data_record/data_record.py,sha256=g_-jdy5-Zem3dthwxJj2OuQqkDGTyc-iGqN1rtYYD1A,4418
5
+ biolib/_internal/data_record/data_record.py,sha256=SD3-tKQY2RZv9ZSVNUhd2ISDYV64Fk1Sc642qyf_Vis,4618
6
6
  biolib/_internal/data_record/push_data.py,sha256=-L3a_7zZzDCXabBu3O4lWPMAMeBbeRPTrBlEM-_5SCI,2693
7
7
  biolib/_internal/data_record/remote_storage_endpoint.py,sha256=eCptuZ4DMAPnaNCVDvpWXwXGI6Jac9U1N5dqU8Cj95Q,1732
8
8
  biolib/_internal/file_utils.py,sha256=4jT6j7bB21c0JNn5BfnyWQib_zt0CVtJ_TiOFOStRcE,2604
@@ -118,8 +118,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
118
118
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
119
119
  biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
120
120
  biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
121
- pybiolib-1.2.465.dev1.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
- pybiolib-1.2.465.dev1.dist-info/METADATA,sha256=3EdZZrh9-PF72JOSO_chduOMaAnwNv6V7CU2A38wM3w,1575
123
- pybiolib-1.2.465.dev1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
124
- pybiolib-1.2.465.dev1.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
- pybiolib-1.2.465.dev1.dist-info/RECORD,,
121
+ pybiolib-1.2.494.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
122
+ pybiolib-1.2.494.dist-info/METADATA,sha256=p_2i-MU1KZt6WOl1soybjayo_WD8T2f6cib_gn_1UDw,1570
123
+ pybiolib-1.2.494.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
124
+ pybiolib-1.2.494.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
125
+ pybiolib-1.2.494.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any