ghga-transpiler 2.1.4__tar.gz → 2.1.5__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.
- {ghga_transpiler-2.1.4/src/ghga_transpiler.egg-info → ghga_transpiler-2.1.5}/PKG-INFO +6 -3
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/pyproject.toml +6 -4
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/__init__.py +1 -1
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/cli.py +1 -1
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/config/config.py +2 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/core.py +3 -1
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/io.py +2 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/transformations.py +1 -1
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5/src/ghga_transpiler.egg-info}/PKG-INFO +6 -3
- ghga_transpiler-2.1.5/src/ghga_transpiler.egg-info/requires.txt +13 -0
- ghga_transpiler-2.1.4/src/ghga_transpiler.egg-info/requires.txt +0 -6
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/LICENSE +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/README.md +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/setup.cfg +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/__main__.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/config/__init__.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/config/exceptions.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/configs/0.10.yaml +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/configs/1.0.yaml +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/configs/1.1.yaml +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler/configs/__init__.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/SOURCES.txt +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/dependency_links.txt +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/entry_points.txt +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/top_level.txt +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/tests/test_convert_workbook.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/tests/test_create_config.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/tests/test_io.py +0 -0
- {ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/tests/test_process_workbook.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ghga_transpiler
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.5
|
|
4
4
|
Summary: GHGA-Transpiler - excel to JSON converter
|
|
5
5
|
Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
|
|
6
6
|
License: Apache 2.0
|
|
@@ -13,15 +13,18 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
13
13
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
14
14
|
Classifier: Topic :: Software Development :: Libraries
|
|
15
15
|
Classifier: Intended Audience :: Developers
|
|
16
|
-
Requires-Python: >=3.
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: typer>=0.12
|
|
20
20
|
Requires-Dist: openpyxl==3.*,>=3.1.2
|
|
21
21
|
Requires-Dist: defusedxml==0.*,>=0.7
|
|
22
|
-
Requires-Dist: pydantic<3,>=2
|
|
22
|
+
Requires-Dist: pydantic<3,>=2.6
|
|
23
23
|
Requires-Dist: PyYAML~=6.0
|
|
24
24
|
Requires-Dist: semver==3.*
|
|
25
|
+
Requires-Dist: exceptiongroup>=1.0.0; python_version < "3.11"
|
|
26
|
+
Requires-Dist: tomli>=2.0.0; python_version < "3.11"
|
|
27
|
+
Requires-Dist: eval-type-backport==0.2.0; python_version < "3.10"
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
[](https://github.com/ghga-de/ghga-transpiler/actions/workflows/unit_and_int_tests.yaml)
|
|
@@ -9,7 +9,7 @@ readme = "README.md"
|
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "German Human Genome Phenome Archive (GHGA)", email = "contact@ghga.de" },
|
|
11
11
|
]
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Development Status :: 1 - Planning",
|
|
15
15
|
"Operating System :: POSIX :: Linux",
|
|
@@ -21,15 +21,18 @@ classifiers = [
|
|
|
21
21
|
"Intended Audience :: Developers",
|
|
22
22
|
]
|
|
23
23
|
name = "ghga_transpiler"
|
|
24
|
-
version = "2.1.
|
|
24
|
+
version = "2.1.5"
|
|
25
25
|
description = "GHGA-Transpiler - excel to JSON converter"
|
|
26
26
|
dependencies = [
|
|
27
27
|
"typer >= 0.12",
|
|
28
28
|
"openpyxl >= 3.1.2, == 3.*",
|
|
29
29
|
"defusedxml >= 0.7, == 0.*",
|
|
30
|
-
"pydantic >=2, <3",
|
|
30
|
+
"pydantic >=2.6, <3",
|
|
31
31
|
"PyYAML ~= 6.0",
|
|
32
32
|
"semver == 3.*",
|
|
33
|
+
"exceptiongroup>=1.0.0; python_version < \"3.11\"",
|
|
34
|
+
"tomli>= 2.0.0; python_version < \"3.11\"",
|
|
35
|
+
"eval-type-backport==0.2.0; python_version < \"3.10\"",
|
|
33
36
|
]
|
|
34
37
|
|
|
35
38
|
[project.license]
|
|
@@ -66,7 +69,6 @@ src = [
|
|
|
66
69
|
"examples",
|
|
67
70
|
"scripts",
|
|
68
71
|
]
|
|
69
|
-
target-version = "py312"
|
|
70
72
|
|
|
71
73
|
[tool.ruff.lint]
|
|
72
74
|
fixable = [
|
|
@@ -45,7 +45,7 @@ def transpile(
|
|
|
45
45
|
dir_okay=False,
|
|
46
46
|
readable=True,
|
|
47
47
|
),
|
|
48
|
-
output_file: Optional[Path] = typer.Argument(
|
|
48
|
+
output_file: Optional[Path] = typer.Argument(
|
|
49
49
|
None, help="The path to output file (JSON).", dir_okay=False
|
|
50
50
|
),
|
|
51
51
|
force: bool = typer.Option(
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
"""This module contains functionalities for processing excel sheets into json object."""
|
|
19
19
|
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
20
22
|
from collections.abc import Callable
|
|
21
23
|
from importlib import resources
|
|
22
24
|
|
|
@@ -97,7 +99,7 @@ def convert_rows(header, rows) -> list[dict]:
|
|
|
97
99
|
return [
|
|
98
100
|
{
|
|
99
101
|
key: value
|
|
100
|
-
for key, value in zip(header, row
|
|
102
|
+
for key, value in zip(header, row)
|
|
101
103
|
if value is not None and value != ""
|
|
102
104
|
}
|
|
103
105
|
for row in rows
|
|
@@ -36,7 +36,7 @@ def to_attributes() -> Callable:
|
|
|
36
36
|
def split_one(value: str) -> dict:
|
|
37
37
|
"""Returns a dictionary with key, value as keys, splitted string as values"""
|
|
38
38
|
splitted = (elem.strip() for elem in value.split("="))
|
|
39
|
-
return dict(zip(("key", "value"), splitted
|
|
39
|
+
return dict(zip(("key", "value"), splitted))
|
|
40
40
|
|
|
41
41
|
def split_mult(value: str) -> list[dict]:
|
|
42
42
|
"""Converts string to attributes"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ghga_transpiler
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.5
|
|
4
4
|
Summary: GHGA-Transpiler - excel to JSON converter
|
|
5
5
|
Author-email: "German Human Genome Phenome Archive (GHGA)" <contact@ghga.de>
|
|
6
6
|
License: Apache 2.0
|
|
@@ -13,15 +13,18 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
13
13
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
14
14
|
Classifier: Topic :: Software Development :: Libraries
|
|
15
15
|
Classifier: Intended Audience :: Developers
|
|
16
|
-
Requires-Python: >=3.
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: typer>=0.12
|
|
20
20
|
Requires-Dist: openpyxl==3.*,>=3.1.2
|
|
21
21
|
Requires-Dist: defusedxml==0.*,>=0.7
|
|
22
|
-
Requires-Dist: pydantic<3,>=2
|
|
22
|
+
Requires-Dist: pydantic<3,>=2.6
|
|
23
23
|
Requires-Dist: PyYAML~=6.0
|
|
24
24
|
Requires-Dist: semver==3.*
|
|
25
|
+
Requires-Dist: exceptiongroup>=1.0.0; python_version < "3.11"
|
|
26
|
+
Requires-Dist: tomli>=2.0.0; python_version < "3.11"
|
|
27
|
+
Requires-Dist: eval-type-backport==0.2.0; python_version < "3.10"
|
|
25
28
|
|
|
26
29
|
|
|
27
30
|
[](https://github.com/ghga-de/ghga-transpiler/actions/workflows/unit_and_int_tests.yaml)
|
|
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
|
{ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ghga_transpiler-2.1.4 → ghga_transpiler-2.1.5}/src/ghga_transpiler.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|