pybiolib 1.1.1836__tar.gz → 1.1.1855__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.1836 → pybiolib-1.1.1855}/PKG-INFO +1 -1
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/http_client.py +1 -1
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/cache_state.py +1 -1
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/docker_executor.py +1 -1
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/cache_state.py +1 -1
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/seq_util.py +15 -10
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/pyproject.toml +14 -12
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/LICENSE +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/README.md +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/data_record/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/data_record/data_record.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/push_application.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/runtime.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/_internal/utils/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/api/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/api/client.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/app/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/app/app.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/app/search_apps.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/api_client.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/app_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/auth.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/biolib_account_api.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/biolib_app_api.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/biolib_job_api.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/common_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/job_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/lfs_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_api_client/user_state.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/base_bbf_package.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/file_in_container.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/module_input.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/module_output_v2.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/remote_endpoints.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/remote_stream_seeker.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/saved_job.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/stdout_and_stderr.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/system_exception.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/system_status_update.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_binary_format/utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_docker_client/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_download_container.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_errors.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/biolib_logging.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/auth.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/data_record.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/download_container.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/init.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/lfs.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/push.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/run.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/runtime.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/cli/start.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/.gitignore +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/cloud_utils/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/cloud_utils/cloud_utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/cache_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/docker_image_cache.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/docker_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/tars/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/job_legacy_input_wait_timeout_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/job_max_runtime_timer_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/job_storage.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/job_worker.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/large_file_system.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/mappings.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/utilization_reporter_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/remote_host_proxy.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/socker_listener_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/socket_sender_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/gunicorn_flask_application.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/webserver.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/webserver_types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/webserver_utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/webserver/worker_thread.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/experiments/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/experiments/experiment.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/experiments/types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/jobs/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/jobs/job.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/jobs/job_result.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/jobs/types.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/lfs/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/lfs/cache.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/lfs/utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/runtime/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/sdk/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/tables.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/templates/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/templates/example_app.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/typing_utils.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/user/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/user/sign_in.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/__init__.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/app_uri.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/multipart_uploader.py +0 -0
- {pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/utils/zip/remote_zip.py +0 -0
@@ -42,7 +42,7 @@ class HttpError(urllib.error.HTTPError):
|
|
42
42
|
|
43
43
|
|
44
44
|
class HttpResponse:
|
45
|
-
def __init__(self, response):
|
45
|
+
def __init__(self, response) -> None:
|
46
46
|
self.headers: Dict[str, str] = dict(response.headers)
|
47
47
|
self.status_code: int = int(response.status)
|
48
48
|
self.content: bytes = response.read()
|
{pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/docker_executor.py
RENAMED
@@ -39,7 +39,7 @@ from biolib.typing_utils import List, Dict, Optional
|
|
39
39
|
|
40
40
|
class DockerExecutor:
|
41
41
|
|
42
|
-
def __init__(self, options: LocalExecutorOptions):
|
42
|
+
def __init__(self, options: LocalExecutorOptions) -> None:
|
43
43
|
self._options: LocalExecutorOptions = options
|
44
44
|
self._is_cleaning_up = False
|
45
45
|
|
@@ -37,7 +37,7 @@ class CacheState(abc.ABC, Generic[StateType]):
|
|
37
37
|
def _state_lock_path(self) -> str:
|
38
38
|
return f'{self._state_path}.lock'
|
39
39
|
|
40
|
-
def __init__(self):
|
40
|
+
def __init__(self) -> None:
|
41
41
|
self._state: Optional[StateType] = None
|
42
42
|
|
43
43
|
def __enter__(self) -> StateType:
|
@@ -3,16 +3,21 @@ from io import BufferedIOBase
|
|
3
3
|
from biolib.typing_utils import List, Optional, Dict, Union
|
4
4
|
|
5
5
|
allowed_sequence_chars = set("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.")
|
6
|
+
|
7
|
+
|
6
8
|
def find_invalid_sequence_characters(sequence):
|
7
9
|
invalid_chars = [char for char in sequence if char not in allowed_sequence_chars]
|
8
10
|
return invalid_chars
|
9
11
|
|
12
|
+
|
10
13
|
class SeqUtilRecord:
|
11
|
-
def __init__(
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
def __init__(
|
15
|
+
self,
|
16
|
+
sequence: str,
|
17
|
+
sequence_id: str,
|
18
|
+
description: Optional['str'],
|
19
|
+
properties: Optional[Dict[str, str]] = None,
|
20
|
+
):
|
16
21
|
self.sequence = sequence
|
17
22
|
self.id = sequence_id # pylint: disable=invalid-name
|
18
23
|
self.description = description
|
@@ -33,11 +38,11 @@ class SeqUtilRecord:
|
|
33
38
|
class SeqUtil:
|
34
39
|
@staticmethod
|
35
40
|
def parse_fasta(
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
+
input_file: Union[str, BufferedIOBase, None] = None,
|
42
|
+
default_header: Optional[str] = None,
|
43
|
+
allow_any_sequence_characters: bool = False,
|
44
|
+
allow_empty_sequence: bool = False,
|
45
|
+
file_name: Optional[str] = None,
|
41
46
|
) -> List[SeqUtilRecord]:
|
42
47
|
if input_file is None:
|
43
48
|
if file_name:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "pybiolib"
|
3
|
-
version = "1.1.
|
3
|
+
version = "1.1.1855"
|
4
4
|
description = "BioLib Python Client"
|
5
5
|
readme = "README.md"
|
6
6
|
license = "MIT"
|
@@ -42,17 +42,19 @@ gunicorn = { version = ">=20.1.0", optional = true }
|
|
42
42
|
compute-node = ["flask", "gunicorn"]
|
43
43
|
|
44
44
|
[tool.poetry.dev-dependencies]
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
setuptools = "==
|
54
|
-
|
45
|
+
# For dev require 3.9 as minimum Python version
|
46
|
+
jupyter = { version = "==1.0.0", python = ">=3.9" }
|
47
|
+
mypy = { version = "==1.8.0", python = ">=3.9" }
|
48
|
+
pandas = { version = "==2.2.1", python = ">=3.9" }
|
49
|
+
pylint = { version = "==3.1.0", python = ">=3.9" }
|
50
|
+
ruff = { version = "==0.3.1", python = ">=3.9" }
|
51
|
+
pytest = { version = "==8.0.2", python = ">=3.9" }
|
52
|
+
pytest-timeout = { version = "==2.2.0", python = ">=3.9" }
|
53
|
+
setuptools = { version = "==69.1.1", python = ">=3.9" }
|
54
|
+
types-click = { version = "==7.1.8", python = ">=3.9" }
|
55
|
+
types-flask = { version = "==1.1.6", python = ">=3.9" }
|
56
|
+
types-PyYAML = { version = "==6.0.12.12", python = ">=3.9" }
|
55
57
|
|
56
58
|
[build-system]
|
57
|
-
requires = ["poetry>=0
|
59
|
+
requires = ["poetry>=1.8.0"]
|
58
60
|
build-backend = "poetry.masonry.api"
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/docker_image_cache.py
RENAMED
File without changes
|
{pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/__init__.py
RENAMED
File without changes
|
{pybiolib-1.1.1836 → pybiolib-1.1.1855}/biolib/compute_node/job_worker/executors/docker_types.py
RENAMED
File without changes
|
{pybiolib-1.1.1836 → pybiolib-1.1.1855}/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.1836 → pybiolib-1.1.1855}/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
|