pybiolib 1.1.1703__tar.gz → 1.1.1708__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.
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/PKG-INFO +1 -1
- pybiolib-1.1.1708/biolib/biolib_api_client/biolib_account_api.py +8 -0
- pybiolib-1.1.1708/biolib/biolib_api_client/biolib_large_file_system_api.py +34 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/pyproject.toml +1 -1
- pybiolib-1.1.1703/biolib/biolib_api_client/biolib_account_api.py +0 -21
- pybiolib-1.1.1703/biolib/biolib_api_client/biolib_large_file_system_api.py +0 -53
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/LICENSE +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/README.md +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/_internal/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/_internal/http_client.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/_internal/push_application.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/api/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/api/client.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/app/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/app/app.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/app/search_apps.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/api_client.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/app_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/auth.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/biolib_app_api.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/biolib_job_api.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/common_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/job_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/lfs_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_api_client/user_state.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/base_bbf_package.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/file_in_container.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/module_input.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/module_output_v2.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/remote_endpoints.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/remote_stream_seeker.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/saved_job.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/stdout_and_stderr.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/system_exception.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/system_status_update.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_binary_format/utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_docker_client/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_download_container.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_errors.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/biolib_logging.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/download_container.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/init.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/lfs.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/push.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/run.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/runtime.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/cli/start.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/.gitignore +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/cloud_utils/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/cloud_utils/cloud_utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/cache_state.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/cache_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/docker_image_cache.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/docker_executor.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/docker_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/tars/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/job_legacy_input_wait_timeout_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/job_max_runtime_timer_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/job_storage.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/job_worker.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/large_file_system.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/mappings.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/utilization_reporter_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/remote_host_proxy.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/socker_listener_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/socket_sender_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/gunicorn_flask_application.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/webserver.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/webserver_types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/webserver_utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/worker_thread.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/experiments/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/experiments/experiment.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/experiments/types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/jobs/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/jobs/job.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/jobs/job_result.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/jobs/types.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/lfs/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/lfs/cache.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/lfs/utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/runtime/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/runtime/results.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/sdk/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/tables.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/templates/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/templates/example_app.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/typing_utils.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/user/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/user/sign_in.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/__init__.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/app_uri.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/cache_state.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/multipart_uploader.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/seq_util.py +0 -0
- {pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/utils/zip/remote_zip.py +0 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
import biolib.api
|
2
|
+
from biolib.biolib_api_client.lfs_types import LargeFileSystemVersion, LargeFileSystem
|
3
|
+
|
4
|
+
|
5
|
+
class BiolibLargeFileSystemApi:
|
6
|
+
|
7
|
+
@staticmethod
|
8
|
+
def create(account_uuid: str, name: str) -> LargeFileSystem:
|
9
|
+
response = biolib.api.client.post(
|
10
|
+
path='/api/lfs/',
|
11
|
+
data={'account_uuid': account_uuid, 'name': name},
|
12
|
+
)
|
13
|
+
|
14
|
+
lfs: LargeFileSystem = response.json()
|
15
|
+
return lfs
|
16
|
+
|
17
|
+
@staticmethod
|
18
|
+
def fetch_version(lfs_version_uuid: str) -> LargeFileSystemVersion:
|
19
|
+
response = biolib.api.client.get(
|
20
|
+
path=f'/api/lfs/versions/{lfs_version_uuid}/',
|
21
|
+
)
|
22
|
+
|
23
|
+
lfs_version: LargeFileSystemVersion = response.json()
|
24
|
+
return lfs_version
|
25
|
+
|
26
|
+
@staticmethod
|
27
|
+
def create_version(resource_uuid: str) -> LargeFileSystemVersion:
|
28
|
+
response = biolib.api.client.post(
|
29
|
+
path='/api/lfs/versions/',
|
30
|
+
data={'resource_uuid': resource_uuid},
|
31
|
+
)
|
32
|
+
|
33
|
+
lfs_version: LargeFileSystemVersion = response.json()
|
34
|
+
return lfs_version
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import requests
|
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
|
-
|
7
|
-
|
8
|
-
class BiolibAccountApi:
|
9
|
-
|
10
|
-
@staticmethod
|
11
|
-
def fetch_by_handle(account_handle):
|
12
|
-
response = requests.get(
|
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
|
-
|
21
|
-
return response.json()
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import requests
|
2
|
-
|
3
|
-
from biolib.biolib_api_client.auth import BearerAuth
|
4
|
-
from biolib.biolib_api_client import BiolibApiClient
|
5
|
-
from biolib.biolib_api_client.lfs_types import LargeFileSystemVersion, LargeFileSystem
|
6
|
-
from biolib.biolib_errors import BioLibError
|
7
|
-
|
8
|
-
|
9
|
-
class BiolibLargeFileSystemApi:
|
10
|
-
|
11
|
-
@staticmethod
|
12
|
-
def create(account_uuid: str, name: str) -> LargeFileSystem:
|
13
|
-
response = requests.post(
|
14
|
-
f'{BiolibApiClient.get().base_url}/api/lfs/',
|
15
|
-
auth=BearerAuth(BiolibApiClient.get().access_token),
|
16
|
-
timeout=5,
|
17
|
-
json={'account_uuid': account_uuid, 'name': name}
|
18
|
-
)
|
19
|
-
|
20
|
-
if not response.ok:
|
21
|
-
raise BioLibError(response.content.decode())
|
22
|
-
|
23
|
-
lfs: LargeFileSystem = response.json()
|
24
|
-
return lfs
|
25
|
-
|
26
|
-
@staticmethod
|
27
|
-
def fetch_version(lfs_version_uuid: str) -> LargeFileSystemVersion:
|
28
|
-
response = requests.get(
|
29
|
-
f'{BiolibApiClient.get().base_url}/api/lfs/versions/{lfs_version_uuid}/',
|
30
|
-
auth=BearerAuth(BiolibApiClient.get().access_token),
|
31
|
-
timeout=5,
|
32
|
-
)
|
33
|
-
|
34
|
-
if not response.ok:
|
35
|
-
raise BioLibError(response.content.decode())
|
36
|
-
|
37
|
-
lfs_version: LargeFileSystemVersion = response.json()
|
38
|
-
return lfs_version
|
39
|
-
|
40
|
-
@staticmethod
|
41
|
-
def create_version(resource_uuid: str) -> LargeFileSystemVersion:
|
42
|
-
response = requests.post(
|
43
|
-
f'{BiolibApiClient.get().base_url}/api/lfs/versions/',
|
44
|
-
auth=BearerAuth(BiolibApiClient.get().access_token),
|
45
|
-
json={'resource_uuid': resource_uuid},
|
46
|
-
timeout=5,
|
47
|
-
)
|
48
|
-
|
49
|
-
if not response.ok:
|
50
|
-
raise BioLibError(response.content.decode())
|
51
|
-
|
52
|
-
lfs_version: LargeFileSystemVersion = response.json()
|
53
|
-
return lfs_version
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/docker_image_cache.py
RENAMED
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/__init__.py
RENAMED
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/docker_executor.py
RENAMED
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/docker_types.py
RENAMED
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/job_worker/executors/tars/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1703 → pybiolib-1.1.1708}/biolib/compute_node/webserver/gunicorn_flask_application.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|