ebi-eva-common-pyutils 0.6.15__1-py3-none-any.whl → 0.6.17__1-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.
- ebi_eva_common_pyutils/spreadsheet/__init__.py +0 -0
- ebi_eva_common_pyutils/spreadsheet/metadata_xlsx_utils.py +15 -0
- {ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/METADATA +7 -6
- {ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/RECORD +8 -6
- {ebi_eva_common_pyutils-0.6.15.data → ebi_eva_common_pyutils-0.6.17.data}/scripts/archive_directory.py +0 -0
- {ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/LICENSE +0 -0
- {ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/WHEEL +0 -0
- {ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
from openpyxl.reader.excel import load_workbook
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def metadata_xlsx_version(metadata_xlsx):
|
|
7
|
+
workbook = load_workbook(metadata_xlsx)
|
|
8
|
+
try:
|
|
9
|
+
instructions_sheet = workbook['PLEASE READ FIRST']
|
|
10
|
+
xlsx_sheet_version_value = instructions_sheet[3][0].value
|
|
11
|
+
match = re.search(r'(\d+\.\d+\.\d+)', '' if xlsx_sheet_version_value is None else xlsx_sheet_version_value)
|
|
12
|
+
xlsx_version = match.group(1) if match else None
|
|
13
|
+
except (KeyError, IndexError):
|
|
14
|
+
xlsx_version = None
|
|
15
|
+
return xlsx_version
|
{ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ebi-eva-common-pyutils
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.17
|
|
4
4
|
Summary: EBI EVA - Common Python Utilities
|
|
5
5
|
Home-page: https://github.com/EBIVariation/eva-common-pyutils
|
|
6
6
|
License: Apache
|
|
@@ -11,11 +11,12 @@ Classifier: Topic :: Software Development :: Build Tools
|
|
|
11
11
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Programming Language :: Python :: 3
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: requests
|
|
15
|
-
Requires-Dist: lxml
|
|
16
|
-
Requires-Dist: pyyaml
|
|
17
|
-
Requires-Dist: cached-property
|
|
18
|
-
Requires-Dist: retry
|
|
14
|
+
Requires-Dist: requests (==2.*)
|
|
15
|
+
Requires-Dist: lxml (==4.*,>4.9)
|
|
16
|
+
Requires-Dist: pyyaml (==6.*)
|
|
17
|
+
Requires-Dist: cached-property (==1.5.*)
|
|
18
|
+
Requires-Dist: retry (==0.*,>0.9)
|
|
19
|
+
Requires-Dist: openpyxl (==3.*)
|
|
19
20
|
Provides-Extra: eva-internal
|
|
20
21
|
Requires-Dist: psycopg2-binary ; extra == 'eva-internal'
|
|
21
22
|
Requires-Dist: pymongo ; extra == 'eva-internal'
|
|
@@ -16,11 +16,13 @@ ebi_eva_common_pyutils/contig_alias/contig_alias.py,sha256=7tQXljEJtRCMs_JPrglYv
|
|
|
16
16
|
ebi_eva_common_pyutils/reference/__init__.py,sha256=NsDjGCu2H2CZLOPaEL6GCoZo5ND_EA9RFmbzGfpSXRQ,134
|
|
17
17
|
ebi_eva_common_pyutils/reference/assembly.py,sha256=FK4zsvg4_GDeKd9z2z5ZeM9R84TsusgQYdMOGuggQU0,12162
|
|
18
18
|
ebi_eva_common_pyutils/reference/sequence.py,sha256=bg96QcuB-oytQYpaUkV10OzM_RIFhxsy6t3PQOg2Gy0,3911
|
|
19
|
+
ebi_eva_common_pyutils/spreadsheet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
ebi_eva_common_pyutils/spreadsheet/metadata_xlsx_utils.py,sha256=0yOoV5rfLc5IWPAShSClaAOmaGfJuGZjJOnREfZBtFQ,540
|
|
19
21
|
ebi_eva_common_pyutils/taxonomy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
22
|
ebi_eva_common_pyutils/taxonomy/taxonomy.py,sha256=aXmRQ3NAaJotwmmOA2-u2XtcUT6iih-0_e-3QOxynoA,2578
|
|
21
23
|
ebi_eva_common_pyutils/variation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
24
|
ebi_eva_common_pyutils/variation/contig_utils.py,sha256=kMNEW_P2yPnd8Xx1tep19hy5ee7ojxz6ZOO1grTQsRQ,5230
|
|
23
|
-
ebi_eva_common_pyutils-0.6.
|
|
25
|
+
ebi_eva_common_pyutils-0.6.17.data/scripts/archive_directory.py,sha256=0lWJ0ju_AB2ni7lMnJXPFx6U2OdTGbe-WoQs-4BfKOM,4976
|
|
24
26
|
ebi_eva_internal_pyutils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
27
|
ebi_eva_internal_pyutils/archive_directory.py,sha256=IxVEfh_gaCiT652k0Q_-58fonRusy1yzXu7BCO8yVLo,4989
|
|
26
28
|
ebi_eva_internal_pyutils/config_utils.py,sha256=EGRC5rsmU_ug7OY9-t1UW1XZXRsauSyZB9xPcBux8ts,7909
|
|
@@ -32,8 +34,8 @@ ebi_eva_internal_pyutils/mongodb/__init__.py,sha256=0oyTlkYZCV7udlPl09Zl-sDyE3c9
|
|
|
32
34
|
ebi_eva_internal_pyutils/mongodb/mongo_database.py,sha256=kesaJaaxYFeF_uYZBgL8tbufGKUXll7bXb4WlOS9vKM,9596
|
|
33
35
|
ebi_eva_internal_pyutils/nextflow/__init__.py,sha256=OOiJS8jZOz98q0t77NNog7aI_fFrVxi4kGmiSskuAqM,122
|
|
34
36
|
ebi_eva_internal_pyutils/nextflow/nextflow_pipeline.py,sha256=ew623hhK8jmFLQjJwLZbgBmW9RTiJBEULVqHfIUv_dc,10114
|
|
35
|
-
ebi_eva_common_pyutils-0.6.
|
|
36
|
-
ebi_eva_common_pyutils-0.6.
|
|
37
|
-
ebi_eva_common_pyutils-0.6.
|
|
38
|
-
ebi_eva_common_pyutils-0.6.
|
|
39
|
-
ebi_eva_common_pyutils-0.6.
|
|
37
|
+
ebi_eva_common_pyutils-0.6.17.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
38
|
+
ebi_eva_common_pyutils-0.6.17.dist-info/METADATA,sha256=xdXBYa6ma2iy0NDeoYjrral5mPQnsC-F63kQetBZx5Q,909
|
|
39
|
+
ebi_eva_common_pyutils-0.6.17.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
40
|
+
ebi_eva_common_pyutils-0.6.17.dist-info/top_level.txt,sha256=sXoiqiGU8vlMQpFWDlKrekxhlusk06AhkOH3kSvDT6c,48
|
|
41
|
+
ebi_eva_common_pyutils-0.6.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ebi_eva_common_pyutils-0.6.15.dist-info → ebi_eva_common_pyutils-0.6.17.dist-info}/top_level.txt
RENAMED
|
File without changes
|