ghga-transpiler 2.4.0__tar.gz → 2.4.1__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.
Files changed (31) hide show
  1. {ghga_transpiler-2.4.0/src/ghga_transpiler.egg-info → ghga_transpiler-2.4.1}/PKG-INFO +1 -1
  2. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/pyproject.toml +1 -1
  3. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/2.0.yaml +14 -0
  4. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/2.1.yaml +14 -0
  5. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/2.2.yaml +14 -0
  6. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/transformations.py +15 -0
  7. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1/src/ghga_transpiler.egg-info}/PKG-INFO +1 -1
  8. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/LICENSE +0 -0
  9. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/README.md +0 -0
  10. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/setup.cfg +0 -0
  11. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/__init__.py +0 -0
  12. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/__main__.py +0 -0
  13. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/cli.py +0 -0
  14. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/config/__init__.py +0 -0
  15. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/config/config.py +0 -0
  16. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/config/exceptions.py +0 -0
  17. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/0.10.yaml +0 -0
  18. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/1.0.yaml +0 -0
  19. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/1.1.yaml +0 -0
  20. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/configs/__init__.py +0 -0
  21. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/core.py +0 -0
  22. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler/io.py +0 -0
  23. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler.egg-info/SOURCES.txt +0 -0
  24. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler.egg-info/dependency_links.txt +0 -0
  25. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler.egg-info/entry_points.txt +0 -0
  26. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler.egg-info/requires.txt +0 -0
  27. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/src/ghga_transpiler.egg-info/top_level.txt +0 -0
  28. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/tests/test_convert_workbook.py +0 -0
  29. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/tests/test_create_config.py +0 -0
  30. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/tests/test_io.py +0 -0
  31. {ghga_transpiler-2.4.0 → ghga_transpiler-2.4.1}/tests/test_process_workbook.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghga_transpiler
3
- Version: 2.4.0
3
+ Version: 2.4.1
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
@@ -21,7 +21,7 @@ classifiers = [
21
21
  "Intended Audience :: Developers",
22
22
  ]
23
23
  name = "ghga_transpiler"
24
- version = "2.4.0"
24
+ version = "2.4.1"
25
25
  description = "GHGA-Transpiler - excel to JSON converter"
26
26
  dependencies = [
27
27
  "typer >= 0.12",
@@ -28,6 +28,9 @@ worksheets:
28
28
  - settings:
29
29
  end_column: 7
30
30
  name: analysis_method_supporting_files
31
+ transformations:
32
+ included_in_submission:
33
+ !!python/name:ghga_transpiler.transformations.to_boolean
31
34
  sheet_name: AnalysisMethodSupportingFile
32
35
  - settings:
33
36
  end_column: 7
@@ -64,6 +67,9 @@ worksheets:
64
67
  - settings:
65
68
  end_column: 7
66
69
  name: individual_supporting_files
70
+ transformations:
71
+ included_in_submission:
72
+ !!python/name:ghga_transpiler.transformations.to_boolean
67
73
  sheet_name: IndividualSupportingFile
68
74
  - settings:
69
75
  end_column: 21
@@ -125,6 +131,9 @@ worksheets:
125
131
  - settings:
126
132
  end_column: 7
127
133
  name: experiment_method_supporting_files
134
+ transformations:
135
+ included_in_submission:
136
+ !!python/name:ghga_transpiler.transformations.to_boolean
128
137
  sheet_name: ExperimentMethodSupportingFile
129
138
  - settings:
130
139
  end_column: 8
@@ -140,10 +149,15 @@ worksheets:
140
149
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
141
150
  sequencing_lane_id:
142
151
  !!python/name:ghga_transpiler.transformations.to_string
152
+ included_in_submission:
153
+ !!python/name:ghga_transpiler.transformations.to_boolean
143
154
  sheet_name: ResearchDataFile
144
155
  - settings:
145
156
  end_column: 7
146
157
  name: process_data_files
158
+ transformations:
159
+ included_in_submission:
160
+ !!python/name:ghga_transpiler.transformations.to_boolean
147
161
  sheet_name: ProcessDataFile
148
162
  - settings:
149
163
  end_column: 7
@@ -30,6 +30,9 @@ worksheets:
30
30
  - settings:
31
31
  end_column: 7
32
32
  name: analysis_method_supporting_files
33
+ transformations:
34
+ included_in_submission:
35
+ !!python/name:ghga_transpiler.transformations.to_boolean
33
36
  sheet_name: AnalysisMethodSupportingFile
34
37
  - settings:
35
38
  end_column: 7
@@ -66,6 +69,9 @@ worksheets:
66
69
  - settings:
67
70
  end_column: 7
68
71
  name: individual_supporting_files
72
+ transformations:
73
+ included_in_submission:
74
+ !!python/name:ghga_transpiler.transformations.to_boolean
69
75
  sheet_name: IndividualSupportingFile
70
76
  - settings:
71
77
  end_column: 21
@@ -127,6 +133,9 @@ worksheets:
127
133
  - settings:
128
134
  end_column: 7
129
135
  name: experiment_method_supporting_files
136
+ transformations:
137
+ included_in_submission:
138
+ !!python/name:ghga_transpiler.transformations.to_boolean
130
139
  sheet_name: ExperimentMethodSupportingFile
131
140
  - settings:
132
141
  end_column: 8
@@ -142,10 +151,15 @@ worksheets:
142
151
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
143
152
  sequencing_lane_id:
144
153
  !!python/name:ghga_transpiler.transformations.to_string
154
+ included_in_submission:
155
+ !!python/name:ghga_transpiler.transformations.to_boolean
145
156
  sheet_name: ResearchDataFile
146
157
  - settings:
147
158
  end_column: 7
148
159
  name: process_data_files
160
+ transformations:
161
+ included_in_submission:
162
+ !!python/name:ghga_transpiler.transformations.to_boolean
149
163
  sheet_name: ProcessDataFile
150
164
  - settings:
151
165
  end_column: 7
@@ -32,6 +32,9 @@ worksheets:
32
32
  - settings:
33
33
  end_column: 7
34
34
  name: analysis_method_supporting_files
35
+ transformations:
36
+ included_in_submission:
37
+ !!python/name:ghga_transpiler.transformations.to_boolean
35
38
  sheet_name: AnalysisMethodSupportingFile
36
39
  - settings:
37
40
  end_column: 7
@@ -68,6 +71,9 @@ worksheets:
68
71
  - settings:
69
72
  end_column: 7
70
73
  name: individual_supporting_files
74
+ transformations:
75
+ included_in_submission:
76
+ !!python/name:ghga_transpiler.transformations.to_boolean
71
77
  sheet_name: IndividualSupportingFile
72
78
  - settings:
73
79
  end_column: 21
@@ -129,6 +135,9 @@ worksheets:
129
135
  - settings:
130
136
  end_column: 7
131
137
  name: experiment_method_supporting_files
138
+ transformations:
139
+ included_in_submission:
140
+ !!python/name:ghga_transpiler.transformations.to_boolean
132
141
  sheet_name: ExperimentMethodSupportingFile
133
142
  - settings:
134
143
  end_column: 8
@@ -144,10 +153,15 @@ worksheets:
144
153
  !!python/object/apply:ghga_transpiler.transformations.to_snake_case []
145
154
  sequencing_lane_id:
146
155
  !!python/name:ghga_transpiler.transformations.to_string
156
+ included_in_submission:
157
+ !!python/name:ghga_transpiler.transformations.to_boolean
147
158
  sheet_name: ResearchDataFile
148
159
  - settings:
149
160
  end_column: 7
150
161
  name: process_data_files
162
+ transformations:
163
+ included_in_submission:
164
+ !!python/name:ghga_transpiler.transformations.to_boolean
151
165
  sheet_name: ProcessDataFile
152
166
  - settings:
153
167
  end_column: 7
@@ -69,3 +69,18 @@ def snake_case_list(value: str) -> list[str]:
69
69
  def to_snake_case_list() -> Callable:
70
70
  """Returns a function that converts a semicolon separated string into a list of snake-cased strings"""
71
71
  return snake_case_list
72
+
73
+
74
+ def to_boolean(value: bool | str) -> bool:
75
+ """Converts common string boolean values to bool.
76
+
77
+ Accepts: true/false in any casing (e.g., "true", "False", "TRUE").
78
+ """
79
+ if isinstance(value, bool):
80
+ return value
81
+ normalized = value.strip().casefold()
82
+ if normalized == "true":
83
+ return True
84
+ if normalized == "false":
85
+ return False
86
+ raise ValueError(f"Invalid boolean string: {value!r}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ghga_transpiler
3
- Version: 2.4.0
3
+ Version: 2.4.1
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
File without changes