pybiolib 1.1.1703__py3-none-any.whl → 1.1.1711__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.
- biolib/biolib_api_client/biolib_account_api.py +2 -15
- biolib/biolib_api_client/biolib_large_file_system_api.py +9 -28
- {pybiolib-1.1.1703.dist-info → pybiolib-1.1.1711.dist-info}/METADATA +1 -1
- {pybiolib-1.1.1703.dist-info → pybiolib-1.1.1711.dist-info}/RECORD +7 -7
- {pybiolib-1.1.1703.dist-info → pybiolib-1.1.1711.dist-info}/LICENSE +0 -0
- {pybiolib-1.1.1703.dist-info → pybiolib-1.1.1711.dist-info}/WHEEL +0 -0
- {pybiolib-1.1.1703.dist-info → pybiolib-1.1.1711.dist-info}/entry_points.txt +0 -0
@@ -1,21 +1,8 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
from biolib.biolib_api_client.auth import BearerAuth
|
4
|
-
from biolib.biolib_api_client import BiolibApiClient
|
5
|
-
from biolib.biolib_errors import BioLibError
|
6
|
-
|
1
|
+
import biolib.api
|
7
2
|
|
8
3
|
class BiolibAccountApi:
|
9
4
|
|
10
5
|
@staticmethod
|
11
6
|
def fetch_by_handle(account_handle):
|
12
|
-
response =
|
13
|
-
f'{BiolibApiClient.get().base_url}/api/account/{account_handle}',
|
14
|
-
auth=BearerAuth(BiolibApiClient.get().access_token),
|
15
|
-
timeout=5
|
16
|
-
)
|
17
|
-
|
18
|
-
if not response.ok:
|
19
|
-
raise BioLibError(response.content.decode())
|
20
|
-
|
7
|
+
response = biolib.api.client.get(path=f'/account/{account_handle}')
|
21
8
|
return response.json()
|
@@ -1,53 +1,34 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
from biolib.biolib_api_client.auth import BearerAuth
|
4
|
-
from biolib.biolib_api_client import BiolibApiClient
|
1
|
+
import biolib.api
|
5
2
|
from biolib.biolib_api_client.lfs_types import LargeFileSystemVersion, LargeFileSystem
|
6
|
-
from biolib.biolib_errors import BioLibError
|
7
3
|
|
8
4
|
|
9
5
|
class BiolibLargeFileSystemApi:
|
10
6
|
|
11
7
|
@staticmethod
|
12
8
|
def create(account_uuid: str, name: str) -> LargeFileSystem:
|
13
|
-
response =
|
14
|
-
|
15
|
-
|
16
|
-
timeout=5,
|
17
|
-
json={'account_uuid': account_uuid, 'name': name}
|
9
|
+
response = biolib.api.client.post(
|
10
|
+
path='/lfs/',
|
11
|
+
data={'account_uuid': account_uuid, 'name': name},
|
18
12
|
)
|
19
13
|
|
20
|
-
if not response.ok:
|
21
|
-
raise BioLibError(response.content.decode())
|
22
|
-
|
23
14
|
lfs: LargeFileSystem = response.json()
|
24
15
|
return lfs
|
25
16
|
|
26
17
|
@staticmethod
|
27
18
|
def fetch_version(lfs_version_uuid: str) -> LargeFileSystemVersion:
|
28
|
-
response =
|
29
|
-
f'
|
30
|
-
auth=BearerAuth(BiolibApiClient.get().access_token),
|
31
|
-
timeout=5,
|
19
|
+
response = biolib.api.client.get(
|
20
|
+
path=f'/lfs/versions/{lfs_version_uuid}/',
|
32
21
|
)
|
33
22
|
|
34
|
-
if not response.ok:
|
35
|
-
raise BioLibError(response.content.decode())
|
36
|
-
|
37
23
|
lfs_version: LargeFileSystemVersion = response.json()
|
38
24
|
return lfs_version
|
39
25
|
|
40
26
|
@staticmethod
|
41
27
|
def create_version(resource_uuid: str) -> LargeFileSystemVersion:
|
42
|
-
response =
|
43
|
-
|
44
|
-
|
45
|
-
json={'resource_uuid': resource_uuid},
|
46
|
-
timeout=5,
|
28
|
+
response = biolib.api.client.post(
|
29
|
+
path='/lfs/versions/',
|
30
|
+
data={'resource_uuid': resource_uuid},
|
47
31
|
)
|
48
32
|
|
49
|
-
if not response.ok:
|
50
|
-
raise BioLibError(response.content.decode())
|
51
|
-
|
52
33
|
lfs_version: LargeFileSystemVersion = response.json()
|
53
34
|
return lfs_version
|
@@ -13,10 +13,10 @@ biolib/biolib_api_client/__init__.py,sha256=E5EMa19wJoblwSdQPYrxc_BtIeRsAuO0L_jQ
|
|
13
13
|
biolib/biolib_api_client/api_client.py,sha256=oaLqTb208TLRVW4-h_va734TrVDRD3kLpFJ93cwQTxk,7130
|
14
14
|
biolib/biolib_api_client/app_types.py,sha256=vEjkpMwaMfz8MxBBZQfWCkxqT7NXxWocB_Oe9WHjJ_g,2425
|
15
15
|
biolib/biolib_api_client/auth.py,sha256=BAXtic6DdaA2QjoDVglnO3PFPoBETQbSraTpIwsZbFc,1267
|
16
|
-
biolib/biolib_api_client/biolib_account_api.py,sha256=
|
16
|
+
biolib/biolib_api_client/biolib_account_api.py,sha256=sHng5jDvSktv6tOLKU8wJRieidY2kLxRU8hI_6ZauXE,210
|
17
17
|
biolib/biolib_api_client/biolib_app_api.py,sha256=pr52ARrDeB5ioEA7NAjMdmBYb9V2FPy0_URCwdCRZ0A,4397
|
18
18
|
biolib/biolib_api_client/biolib_job_api.py,sha256=AvNvflEeCBjG2ZTaFcwvRU-61GdNodFCZQNe50491RM,7823
|
19
|
-
biolib/biolib_api_client/biolib_large_file_system_api.py,sha256=
|
19
|
+
biolib/biolib_api_client/biolib_large_file_system_api.py,sha256=p8QhvQ0aI0NJgyRm7duqDVtPx0zrVaSLKS22ocOafFQ,1038
|
20
20
|
biolib/biolib_api_client/common_types.py,sha256=RH-1KNHqUF-EkTpfPOSTt5Mq1GPdfju_cqXDesscO1I,123
|
21
21
|
biolib/biolib_api_client/job_types.py,sha256=XlDIxijxymLoJcClXhl91h1E4b2fT3pszO9wjlssD4A,1284
|
22
22
|
biolib/biolib_api_client/lfs_types.py,sha256=xaGjE-yUyNVM3LyKdslJn5ZXWp6_kVCd4o-ch8Czfm4,227
|
@@ -101,8 +101,8 @@ biolib/utils/cache_state.py,sha256=BFrZlV4XZIueIFzAFiPidX4hmwADKY5Y5ZuqlerF5l0,3
|
|
101
101
|
biolib/utils/multipart_uploader.py,sha256=PEorMsTNg5f72e3Y-KA3LrI-F6EAnsD9vENV-5EuiX0,9896
|
102
102
|
biolib/utils/seq_util.py,sha256=gLnqCr_mcLcxakO44vGBqUn76VI7kLHgXKqyManjd24,4292
|
103
103
|
biolib/utils/zip/remote_zip.py,sha256=NCdUnVbGCv7SfXCI-yVU-is_OnyWmLAnVpIdSvo-W4k,23500
|
104
|
-
pybiolib-1.1.
|
105
|
-
pybiolib-1.1.
|
106
|
-
pybiolib-1.1.
|
107
|
-
pybiolib-1.1.
|
108
|
-
pybiolib-1.1.
|
104
|
+
pybiolib-1.1.1711.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
105
|
+
pybiolib-1.1.1711.dist-info/METADATA,sha256=qtUwQJrfA0eX2uxaNSu7tfgqMoNsngg57oUk_qMreuI,1543
|
106
|
+
pybiolib-1.1.1711.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
107
|
+
pybiolib-1.1.1711.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
108
|
+
pybiolib-1.1.1711.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|