eido 0.2.4__py3-none-any.whl → 0.2.5__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.
- eido/_version.py +1 -1
- eido/conversion.py +1 -2
- eido/conversion_plugins.py +1 -1
- eido/exceptions.py +1 -1
- eido/validation.py +5 -5
- {eido-0.2.4.dist-info → eido-0.2.5.dist-info}/METADATA +14 -4
- eido-0.2.5.dist-info/RECORD +19 -0
- {eido-0.2.4.dist-info → eido-0.2.5.dist-info}/WHEEL +1 -1
- eido-0.2.4.dist-info/RECORD +0 -19
- {eido-0.2.4.dist-info → eido-0.2.5.dist-info}/entry_points.txt +0 -0
- {eido-0.2.4.dist-info → eido-0.2.5.dist-info/licenses}/LICENSE.txt +0 -0
- {eido-0.2.4.dist-info → eido-0.2.5.dist-info}/top_level.txt +0 -0
eido/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.2.
|
|
1
|
+
__version__ = "0.2.5"
|
eido/conversion.py
CHANGED
|
@@ -7,7 +7,6 @@ else:
|
|
|
7
7
|
import inspect
|
|
8
8
|
from logging import getLogger
|
|
9
9
|
import os
|
|
10
|
-
from typing import NoReturn
|
|
11
10
|
|
|
12
11
|
from .exceptions import *
|
|
13
12
|
|
|
@@ -107,7 +106,7 @@ def run_filter(prj, filter_name, verbose=True, plugin_kwargs=None):
|
|
|
107
106
|
return conv_result
|
|
108
107
|
|
|
109
108
|
|
|
110
|
-
def save_result(result_path: str, content: str) ->
|
|
109
|
+
def save_result(result_path: str, content: str) -> None:
|
|
111
110
|
with open(result_path, "w") as f:
|
|
112
111
|
f.write(content)
|
|
113
112
|
|
eido/conversion_plugins.py
CHANGED
eido/exceptions.py
CHANGED
eido/validation.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Mapping, Union
|
|
3
3
|
from copy import deepcopy as dpcpy
|
|
4
4
|
from logging import getLogger
|
|
5
5
|
|
|
@@ -60,7 +60,7 @@ def _validate_object(obj: Mapping, schema: Union[str, dict], sample_name_colname
|
|
|
60
60
|
_LOGGER.debug("Validation was successful...")
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
def validate_project(project: peppy.Project, schema: Union[str, dict]) ->
|
|
63
|
+
def validate_project(project: peppy.Project, schema: Union[str, dict]) -> None:
|
|
64
64
|
"""
|
|
65
65
|
Validate a project object against a schema
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ def validate_project(project: peppy.Project, schema: Union[str, dict]) -> NoRetu
|
|
|
68
68
|
:param str | dict schema: schema dict to validate against or a path to one
|
|
69
69
|
from the error. Useful when used ith large projects
|
|
70
70
|
|
|
71
|
-
:return:
|
|
71
|
+
:return: None
|
|
72
72
|
:raises EidoValidationError: if validation is unsuccessful
|
|
73
73
|
"""
|
|
74
74
|
sample_name_colname = project.sample_name_colname
|
|
@@ -100,7 +100,7 @@ def _validate_sample_object(sample: peppy.Sample, schemas):
|
|
|
100
100
|
|
|
101
101
|
def validate_sample(
|
|
102
102
|
project: peppy.Project, sample_name: Union[str, int], schema: Union[str, dict]
|
|
103
|
-
) ->
|
|
103
|
+
) -> None:
|
|
104
104
|
"""
|
|
105
105
|
Validate the selected sample object against a schema
|
|
106
106
|
|
|
@@ -123,7 +123,7 @@ def validate_sample(
|
|
|
123
123
|
|
|
124
124
|
def validate_config(
|
|
125
125
|
project: Union[peppy.Project, dict], schema: Union[str, dict]
|
|
126
|
-
) ->
|
|
126
|
+
) -> None:
|
|
127
127
|
"""
|
|
128
128
|
Validate the config part of the Project object against a schema
|
|
129
129
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: eido
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: A project metadata validator
|
|
5
5
|
Home-page: https://github.com/pepkit/eido/
|
|
6
6
|
Author: Michal Stolarczyk, Nathan Sheffield
|
|
@@ -15,12 +15,22 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE.txt
|
|
18
|
+
Requires-Dist: importlib-metadata; python_version < "3.10"
|
|
18
19
|
Requires-Dist: jsonschema>=3.0.1
|
|
19
20
|
Requires-Dist: logmuse>=0.2.5
|
|
20
|
-
Requires-Dist: pandas
|
|
21
|
+
Requires-Dist: pandas<3.0.0
|
|
21
22
|
Requires-Dist: peppy>=0.40.7
|
|
22
23
|
Requires-Dist: ubiquerg>=0.5.2
|
|
23
|
-
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: keywords
|
|
30
|
+
Dynamic: license
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
Dynamic: requires-dist
|
|
33
|
+
Dynamic: summary
|
|
24
34
|
|
|
25
35
|
# <img src="docs/img/eido.svg" alt="eido logo" height="70">
|
|
26
36
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
eido/__init__.py,sha256=D3CD9BefyY5Yckz-LswPca_VH_RIcZpr53_siXkbi14,612
|
|
2
|
+
eido/__main__.py,sha256=L1wnnEreqYv27ZaaCwwImCIHZK0Mz5IxS80ZsNcS1zg,189
|
|
3
|
+
eido/_version.py,sha256=Xsa3ayOMVkhUWm4t06YeyHE0apjpZefxLH4ylp0CDtU,22
|
|
4
|
+
eido/argparser.py,sha256=vx59eO8CClaQpXehcW052y4HW5mttGTqM96PoJJwWkE,4806
|
|
5
|
+
eido/cli.py,sha256=dXPaqF6uUYnGMlW2H9Mc628CfhCl3pEinxWYnQ94SVc,5814
|
|
6
|
+
eido/const.py,sha256=Tb-fDKvneyZX3qLgLYVWtGGs4Hw4tRogB3OXIlwtpdY,1109
|
|
7
|
+
eido/conversion.py,sha256=KARokqRn4gEh5ftstzSBDtpwwpAzIHOHXZnkkk2vZSo,3970
|
|
8
|
+
eido/conversion_plugins.py,sha256=ad9XXxtlAbkhUOTkOF8yuwGz3D2tOB3acd-gktZCdcs,2491
|
|
9
|
+
eido/exceptions.py,sha256=ZMrkp6OO-zgK_bdpu4DiI2-q_JzedEwKMLRt68QOiwc,1211
|
|
10
|
+
eido/inspection.py,sha256=rfuXnAawGBWQFz_hbJA2VYP_sFvpYxztxOiXL6t610o,3223
|
|
11
|
+
eido/output_formatters.py,sha256=gmS-UIRjRQ8Eg24UEyp2fmU046SDbIS7jh4zOLFHlcE,4485
|
|
12
|
+
eido/schema.py,sha256=I75jlUlUdswkne6Xq2XLD8zm-f8p7VITQIj7J_x7aH8,2664
|
|
13
|
+
eido/validation.py,sha256=eFc0YUbrnfANvJ_NzLPMZ-ApV0KUGls6V17MHyUwEJI,8661
|
|
14
|
+
eido-0.2.5.dist-info/licenses/LICENSE.txt,sha256=oB6ZGDa4kcznznJKJsLLFFcOZyi8Y6e2Jv0rJozgp-I,1269
|
|
15
|
+
eido-0.2.5.dist-info/METADATA,sha256=Fu8zDU6AmlNUfi5L_6g_A6EEGbaFHMDFE4iYj_tvtZk,1732
|
|
16
|
+
eido-0.2.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
17
|
+
eido-0.2.5.dist-info/entry_points.txt,sha256=pu2Iw-IUjVa_bKRgt0xUtPT9iwfR0y2nfRYyaRlkLZU,263
|
|
18
|
+
eido-0.2.5.dist-info/top_level.txt,sha256=oltuMelApqcnJZ09Rrg3lF7kmTkmU5bcA6oRvXhNu6A,5
|
|
19
|
+
eido-0.2.5.dist-info/RECORD,,
|
eido-0.2.4.dist-info/RECORD
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
eido/__init__.py,sha256=D3CD9BefyY5Yckz-LswPca_VH_RIcZpr53_siXkbi14,612
|
|
2
|
-
eido/__main__.py,sha256=L1wnnEreqYv27ZaaCwwImCIHZK0Mz5IxS80ZsNcS1zg,189
|
|
3
|
-
eido/_version.py,sha256=SBl2EPFW-ltPvQ7vbVWItyAsz3aKYIpjO7vcfr84GkU,22
|
|
4
|
-
eido/argparser.py,sha256=vx59eO8CClaQpXehcW052y4HW5mttGTqM96PoJJwWkE,4806
|
|
5
|
-
eido/cli.py,sha256=dXPaqF6uUYnGMlW2H9Mc628CfhCl3pEinxWYnQ94SVc,5814
|
|
6
|
-
eido/const.py,sha256=Tb-fDKvneyZX3qLgLYVWtGGs4Hw4tRogB3OXIlwtpdY,1109
|
|
7
|
-
eido/conversion.py,sha256=MKuJWvLB10opq_noTiOSviiiJgMLY7n8B2stfCjEELE,4002
|
|
8
|
-
eido/conversion_plugins.py,sha256=nZEP16WFSD2UI6PKgA3TNX-tUzrOzXg11QJ4K8PiyDg,2493
|
|
9
|
-
eido/exceptions.py,sha256=C9gc_XnxYXT8uH7xXoh1NN7KUFXbRvLp4VN7H1DqF9w,1213
|
|
10
|
-
eido/inspection.py,sha256=rfuXnAawGBWQFz_hbJA2VYP_sFvpYxztxOiXL6t610o,3223
|
|
11
|
-
eido/output_formatters.py,sha256=gmS-UIRjRQ8Eg24UEyp2fmU046SDbIS7jh4zOLFHlcE,4485
|
|
12
|
-
eido/schema.py,sha256=I75jlUlUdswkne6Xq2XLD8zm-f8p7VITQIj7J_x7aH8,2664
|
|
13
|
-
eido/validation.py,sha256=s1l8rJRJjBcGJBywRDVpy3kPBpPE0EssfAmJw06p0Hc,8687
|
|
14
|
-
eido-0.2.4.dist-info/LICENSE.txt,sha256=oB6ZGDa4kcznznJKJsLLFFcOZyi8Y6e2Jv0rJozgp-I,1269
|
|
15
|
-
eido-0.2.4.dist-info/METADATA,sha256=etOx2Qozm5OQmUD-lFAgpmmTPuGAfVOA7YbuDmsx55w,1519
|
|
16
|
-
eido-0.2.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
17
|
-
eido-0.2.4.dist-info/entry_points.txt,sha256=pu2Iw-IUjVa_bKRgt0xUtPT9iwfR0y2nfRYyaRlkLZU,263
|
|
18
|
-
eido-0.2.4.dist-info/top_level.txt,sha256=oltuMelApqcnJZ09Rrg3lF7kmTkmU5bcA6oRvXhNu6A,5
|
|
19
|
-
eido-0.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|