pybiolib 1.1.1836__py3-none-any.whl → 1.1.1855__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.
@@ -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()
@@ -16,7 +16,7 @@ class DockerCacheStateError(CacheStateError):
16
16
 
17
17
  class LfsCacheState(CacheState):
18
18
 
19
- def __init__(self):
19
+ def __init__(self) -> None:
20
20
  super().__init__()
21
21
 
22
22
  self._storage_path_for_write: str = self._get_storage_path_for_write()
@@ -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:
biolib/utils/seq_util.py CHANGED
@@ -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__(self,
12
- sequence: str,
13
- sequence_id: str,
14
- description: Optional['str'],
15
- properties: Optional[Dict[str, str]] = None):
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
- input_file: Union[str, BufferedIOBase] = None,
37
- default_header: Optional[str] = None,
38
- allow_any_sequence_characters: bool = False,
39
- allow_empty_sequence: bool = False,
40
- file_name: Optional[str] = None,
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
  Metadata-Version: 2.1
2
2
  Name: pybiolib
3
- Version: 1.1.1836
3
+ Version: 1.1.1855
4
4
  Summary: BioLib Python Client
5
5
  Home-page: https://github.com/biolib
6
6
  License: MIT
@@ -4,7 +4,7 @@ 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
6
  biolib/_internal/data_record/data_record.py,sha256=vUCQ8d0BPa7c6zrGT49YTFmSkkZgmE6s7bJ2xYl1RKc,4728
7
- biolib/_internal/http_client.py,sha256=ltwX4FMhy9i0gjeb3xydb_OkdZuzr5wIfMq1-K-rp6o,4110
7
+ biolib/_internal/http_client.py,sha256=u_9xnHqgdiaChCs84l2heZ6v3l92dT7mEr5-G6TjIs0,4118
8
8
  biolib/_internal/push_application.py,sha256=NXQNLPucqkq7eKbNCJQA8OYx4CXYHRJ1CG1ViPAJJH4,10680
9
9
  biolib/_internal/runtime.py,sha256=xXIz3Upki-6DeCp4pRJCywBYJcoY0AmZKpzZER7Vh5U,2206
10
10
  biolib/_internal/utils/__init__.py,sha256=b3LqrlHn71AIe6pHUMFRCjaoqW9r0sJtrQIEPlTCtog,630
@@ -55,11 +55,11 @@ biolib/compute_node/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
55
55
  biolib/compute_node/cloud_utils/__init__.py,sha256=VZSScLqaz5tg_gpMvWgwkAu9Qf-vgW_QHRoDOaAmU44,67
56
56
  biolib/compute_node/cloud_utils/cloud_utils.py,sha256=KIZjBnZPBtHParrR_KnRl7N343sHXMQugH9lkwAwTFk,7621
57
57
  biolib/compute_node/job_worker/__init__.py,sha256=ipdPWaABKYrltxny15e2kK8PWdEE7VzXbkKK6wM_zDk,71
58
- biolib/compute_node/job_worker/cache_state.py,sha256=N2AxvvgfizKx9P_ysM0GDCmueMUlgcveA4xSdz_Z2IQ,4822
58
+ biolib/compute_node/job_worker/cache_state.py,sha256=MwjSRzcJJ_4jybqvBL4xdgnDYSIiw4s90pNn83Netoo,4830
59
59
  biolib/compute_node/job_worker/cache_types.py,sha256=ajpLy8i09QeQS9dEqTn3T6NVNMY_YsHQkSD5nvIHccQ,818
60
60
  biolib/compute_node/job_worker/docker_image_cache.py,sha256=ansHIkJIq_EMW1nZNlW-RRLVVeKWTbzNICYaOHpKiRE,7460
61
61
  biolib/compute_node/job_worker/executors/__init__.py,sha256=bW6t1qi3PZTlHM4quaTLa8EI4ALTCk83cqcVJfJfJfE,145
62
- biolib/compute_node/job_worker/executors/docker_executor.py,sha256=xdJppt2ON7owtRvyMWOZZNCHY4QaaaA-AUgv5EMcL9w,26411
62
+ biolib/compute_node/job_worker/executors/docker_executor.py,sha256=ezXRhVBW5dYpLJjM2m5Qf-I6PrrNeBdEYjApjo7XVso,26419
63
63
  biolib/compute_node/job_worker/executors/docker_types.py,sha256=VhsU1DKtJjx_BbCkVmiPZPH4ROiL1ygW1Y_s1Kbpa2o,216
64
64
  biolib/compute_node/job_worker/executors/tars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
65
  biolib/compute_node/job_worker/executors/types.py,sha256=yP5gG39hr-DLnw9bOE--VHi-1arDbIYiGuV1rlTbbHI,1466
@@ -101,12 +101,12 @@ biolib/user/__init__.py,sha256=Db5wtxLfFz3ID9TULSSTo77csw9tO6RtxMRvV5cqKEE,39
101
101
  biolib/user/sign_in.py,sha256=q-E2B3wLVwPU5plbITJXP4GDWWUzUcDpYu_y8BShNQ8,2039
102
102
  biolib/utils/__init__.py,sha256=fwjciJyJicvYyZcVTzfDBgD0SKY13DeXqvTeG4qZIy8,5548
103
103
  biolib/utils/app_uri.py,sha256=Yq_-_VGugQhMMo6mM5f0G9yNlLkr0WK4j0Nrf3FE4xQ,2171
104
- biolib/utils/cache_state.py,sha256=GaGPxQ1GfrBL6Mzo_HJPpmZCd_CbUDN_l_C5frQ5Sfs,3092
104
+ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3100
105
105
  biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
106
- biolib/utils/seq_util.py,sha256=3BGUppEaR8asFBxktHCrIW0cMmF23b06PsbDQOoeCDQ,4879
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.1836.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
- pybiolib-1.1.1836.dist-info/METADATA,sha256=9L5BP33bKqEJGc_j8IR4f6U9k7pD2eNv7tDc6PHZoR4,1508
110
- pybiolib-1.1.1836.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
- pybiolib-1.1.1836.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
- pybiolib-1.1.1836.dist-info/RECORD,,
108
+ pybiolib-1.1.1855.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
109
+ pybiolib-1.1.1855.dist-info/METADATA,sha256=btP7HkwsrexJyQvuJJUzypZGZQmpSOqcjAC6cwXSqYU,1508
110
+ pybiolib-1.1.1855.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
+ pybiolib-1.1.1855.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
112
+ pybiolib-1.1.1855.dist-info/RECORD,,