pymetadata 0.4.0__py2.py3-none-any.whl → 0.4.2__py2.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.

Potentially problematic release.


This version of pymetadata might be problematic. Click here for more details.

pymetadata/unichem.py CHANGED
@@ -6,6 +6,7 @@ Additional substance information based on inchikeys
6
6
  https://www.ebi.ac.uk/unichem/info/webservices#GetSrcCpdIdsFromKey
7
7
  https://www.ebi.ac.uk/unichem/rest/inchikey/AAOVKJBEBIDNHE-UHFFFAOYSA-N
8
8
  """
9
+
9
10
  import urllib
10
11
  from dataclasses import dataclass, field
11
12
  from pathlib import Path
@@ -95,11 +96,12 @@ class UnichemQuery:
95
96
  sources = {source.sourceID: source for source in sources_list}
96
97
 
97
98
  # write cache
98
- write_json_cache(
99
- data=sources,
100
- cache_path=unichem_sources_path,
101
- json_encoder=DataclassJSONEncoder,
102
- )
99
+ if cache:
100
+ write_json_cache(
101
+ data=sources,
102
+ cache_path=unichem_sources_path,
103
+ json_encoder=DataclassJSONEncoder,
104
+ )
103
105
 
104
106
  return sources
105
107
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymetadata
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: pymetadata are python utilities for working with metadata.
5
5
  Home-page: https://github.com/matthiaskoenig/pymetadata
6
6
  Download-URL: https://pypi.org/project/pymetadata
@@ -17,38 +17,37 @@ Classifier: Development Status :: 4 - Beta
17
17
  Classifier: Intended Audience :: Science/Research
18
18
  Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
19
19
  Classifier: Operating System :: OS Independent
20
- Classifier: Programming Language :: Python :: 3.8
21
20
  Classifier: Programming Language :: Python :: 3.9
22
21
  Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: Implementation :: CPython
25
25
  Classifier: Topic :: Scientific/Engineering
26
26
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
27
- Requires-Python: >=3.8
27
+ Requires-Python: >=3.9
28
28
  Description-Content-Type: text/x-rst
29
29
  License-File: LICENSE
30
30
  Requires-Dist: depinfo >=1.7
31
- Requires-Dist: uuid >=1.30
32
- Requires-Dist: lxml >=4.9
33
- Requires-Dist: rich >=13.6
31
+ Requires-Dist: lxml >=5.2
32
+ Requires-Dist: rich >=13.7
34
33
  Requires-Dist: requests >=2.31
35
34
  Requires-Dist: zeep >=4.2.1
36
- Requires-Dist: pronto >=2.5.5
37
- Requires-Dist: fastobo >=0.12.2
38
- Requires-Dist: jinja2 >=3.1.2
35
+ Requires-Dist: pronto >=2.5.6
36
+ Requires-Dist: fastobo >=0.12.3
37
+ Requires-Dist: jinja2 >=3.1
39
38
  Requires-Dist: xmltodict >=0.13.0
40
- Requires-Dist: pydantic >=2.4
39
+ Requires-Dist: pydantic >=2.6
41
40
  Provides-Extra: development
42
- Requires-Dist: pip-tools >6.5.1 ; extra == 'development'
43
- Requires-Dist: black >=22.1.0 ; extra == 'development'
41
+ Requires-Dist: pip-tools >=7.4.1 ; extra == 'development'
42
+ Requires-Dist: black >=24.3.0 ; extra == 'development'
44
43
  Requires-Dist: bump2version >=1.0.1 ; extra == 'development'
45
- Requires-Dist: isort >=5.10 ; extra == 'development'
46
- Requires-Dist: tox >=3.25 ; extra == 'development'
47
- Requires-Dist: flake8 >=4.0.1 ; extra == 'development'
44
+ Requires-Dist: isort >=5.13.2 ; extra == 'development'
45
+ Requires-Dist: tox >=4.12.2 ; extra == 'development'
46
+ Requires-Dist: flake8 >=7.0.0 ; extra == 'development'
48
47
  Requires-Dist: flake8-mypy >=17.8.0 ; extra == 'development'
49
- Requires-Dist: mypy >=0.931 ; extra == 'development'
50
- Requires-Dist: pytest >=7.0.1 ; extra == 'development'
51
- Requires-Dist: pytest-cov >=3.0.0 ; extra == 'development'
48
+ Requires-Dist: mypy >=1.9.0 ; extra == 'development'
49
+ Requires-Dist: pytest >=8.1.1 ; extra == 'development'
50
+ Requires-Dist: pytest-cov >=5.0.0 ; extra == 'development'
52
51
 
53
52
  .. image:: https://github.com/matthiaskoenig/pymetadata/raw/develop/docs/images/favicon/pymetadata-100x100-300dpi.png
54
53
  :align: left
@@ -56,36 +55,28 @@ Requires-Dist: pytest-cov >=3.0.0 ; extra == 'development'
56
55
 
57
56
  pymetadata: python utilities for metadata and COMBINE archives
58
57
  ==============================================================
58
+ |icon1| |icon2| |icon3| |icon4| |icon5| |icon6| |icon7|
59
59
 
60
- .. image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
60
+
61
+ .. |icon1| image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
61
62
  :target: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD
62
63
  :alt: GitHub Actions CI/CD Status
63
-
64
- .. image:: https://img.shields.io/pypi/v/pymetadata.svg
64
+ .. |icon2| image:: https://img.shields.io/pypi/v/pymetadata.svg
65
65
  :target: https://pypi.org/project/pymetadata/
66
66
  :alt: Current PyPI Version
67
-
68
- .. image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
67
+ .. |icon3| image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
69
68
  :target: https://pypi.org/project/pymetadata/
70
69
  :alt: Supported Python Versions
71
-
72
- .. image:: https://img.shields.io/pypi/l/pymetadata.svg
70
+ .. |icon4| image:: https://img.shields.io/pypi/l/pymetadata.svg
73
71
  :target: http://opensource.org/licenses/LGPL-3.0
74
72
  :alt: GNU Lesser General Public License 3
75
-
76
- .. image:: https://codecov.io/gh/matthiaskoenig/pymetadata/branch/develop/graph/badge.svg
77
- :target: https://codecov.io/gh/matthiaskoenig/pymetadata
78
- :alt: Codecov
79
-
80
- .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
73
+ .. |icon5| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
81
74
  :target: https://doi.org/10.5281/zenodo.5308801
82
75
  :alt: Zenodo DOI
83
-
84
- .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
76
+ .. |icon6| image:: https://img.shields.io/badge/code%20style-black-000000.svg
85
77
  :target: https://github.com/ambv/black
86
78
  :alt: Black
87
-
88
- .. image:: http://www.mypy-lang.org/static/mypy_badge.svg
79
+ .. |icon7| image:: http://www.mypy-lang.org/static/mypy_badge.svg
89
80
  :target: http://mypy-lang.org/
90
81
  :alt: mypy
91
82
 
@@ -140,11 +131,11 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
140
131
 
141
132
  Funding
142
133
  =======
143
- Matthias König is supported by the Federal Ministry of Education and Research (BMBF, Germany)
134
+ Matthias König was supported by the Federal Ministry of Education and Research (BMBF, Germany)
144
135
  within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054)
145
- and by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
136
+ and is supported by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151
146
137
  "`QuaLiPerF <https://qualiperf.de>`__ (Quantifying Liver Perfusion-Function Relationship in Complex Resection -
147
- A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
138
+ A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA), and
148
139
 
149
140
  Installation
150
141
  ============
@@ -169,4 +160,4 @@ To install for development use::
169
160
 
170
161
  pip install -e .[development]
171
162
 
172
- © 2021-2022 Matthias König
163
+ © 2021-2024 Matthias König
@@ -0,0 +1,35 @@
1
+ pymetadata/__init__.py,sha256=ExrWsLL5kayU0yfVHH1PfHIik4UXV32B4IRr1NNKesQ,343
2
+ pymetadata/cache.py,sha256=sEJu0D-Dua4aTEaTQfMscT9Gv71r5uXddqca9iv5FHs,1352
3
+ pymetadata/chebi.py,sha256=LphWaLhDTlLfcb-Fw8_eP-mkQu-Dg3qVmO13JvTtE9Q,2610
4
+ pymetadata/console.py,sha256=ouDYOx_81ndvtMW5GVrut71uzPC5xlvibGu9N5YdbRA,332
5
+ pymetadata/log.py,sha256=3uRVMYolalrS0PVWS_4qSme8RYhot3_W2ad1JopI88g,664
6
+ pymetadata/omex.py,sha256=SrviUHCEchbDm3jf4hYrqSLifvA9v-QN5WY9SlAatD4,29867
7
+ pymetadata/omex_v2.py,sha256=HZBg_wmQWixweOZG3qVj2zqG_o1x9Ljxy-JEP6-ZFhM,584
8
+ pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ pymetadata/unichem.py,sha256=1cII_ltk0J56Mz3h4EXHz3mgfIxpc6G_AgT91LyCtK4,6804
10
+ pymetadata/core/__init__.py,sha256=VWZCD9TgSGldzdtXoarvp_2oUHKXQkC1T-VUSvMLwNA,28
11
+ pymetadata/core/annotation.py,sha256=PO2dyjgDP91J6JcJ2i3CzvdSd-6I0-3lAeTaaRd_cyY,13695
12
+ pymetadata/core/creator.py,sha256=0_z0HPhO2Tq8FnAED_4kuVzUiPfm_tYMiZSvyw73Aho,1307
13
+ pymetadata/core/synonym.py,sha256=-2_1ouSWAtQK5eZv2-p6CIJgYZX4xGKua-09ubBg5uo,155
14
+ pymetadata/core/xref.py,sha256=qlUfAb5wk4bOwPiUCEV0s9gIWVdWf5yup1W8UxR5uHY,1594
15
+ pymetadata/examples/__init__.py,sha256=LHY-XmQoiBxoHQW9mQN1_fUYnpfkALuRsdxDXU9sIeU,31
16
+ pymetadata/examples/omex_example.py,sha256=D1LI0ILG8r26yVdaF5IUqqh7TTe5ueIXCnUF41dd9zY,1418
17
+ pymetadata/identifiers/__init__.py,sha256=6Jd-w9Izl_wpWKV8IMBv7rW0Aq067V2czu00LNfPTL8,34
18
+ pymetadata/identifiers/miriam.py,sha256=pa7lB1_C2cKRUuojFPvxAQ6yDI_ZQNjGEoYMb1395pY,982
19
+ pymetadata/identifiers/registry.py,sha256=QOZFm6kFMx8NSFNwtHa2tpUL2jNoeZq4qdMDEjwhX2U,13110
20
+ pymetadata/metadata/__init__.py,sha256=7O7rPwJwW9_uHuvIs6IvQZiQz4MngZSV9Nu7SYL9eA8,102
21
+ pymetadata/metadata/eco.py,sha256=wsF-nRuXdI5Fm8T1e8wWYFtBPgzQ9ap2zIkH3nXjab4,662767
22
+ pymetadata/metadata/kisao.py,sha256=oI3zuCDhDmA-aK5pWLhNJu1Y0XgBvI6IpmLlEnymgdo,89273
23
+ pymetadata/metadata/sbo.py,sha256=rJEtdhOP5YUY1i8-6drWsglDmayFEpWVA2h2t3fjLCo,141756
24
+ pymetadata/ontologies/__init__.py,sha256=vIpTqwqrhOAOYfnavWBQL149dNMAPv-OE5IyloYQCrQ,18
25
+ pymetadata/ontologies/ols.py,sha256=F3vtM8sc879ETyE4yykuAuMJ3hm1jIGxQpvXa3eRAkQ,6672
26
+ pymetadata/ontologies/ontology.py,sha256=1TGraeTlKdBmGfU3GCwiHHuq8OSQcM-DU8asoZ7q9-E,9140
27
+ pymetadata/resources/chebi_webservice_wsdl.xml,sha256=0AEgcZ48bk4L6l3jO5-6BIVwfTr4yXnRZCtXue5NyHo,23846
28
+ pymetadata/resources/identifiers_registry.json,sha256=NcfQoyg6KKUMNHTa76zxSFLiALLTt9yUEKiAO576YOk,2097405
29
+ pymetadata/resources/templates/ontology_enum.pytemplate,sha256=fK7SBTVfRzVk-z_6wiZ_9MDbTNSlEpGGellRoliGqac,1674
30
+ pymetadata-0.4.2.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
31
+ pymetadata-0.4.2.dist-info/METADATA,sha256=O8OEU9UFoyCgqP0tPaRHMT21QYhB_XS3exF8kHpuxbg,6713
32
+ pymetadata-0.4.2.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
33
+ pymetadata-0.4.2.dist-info/top_level.txt,sha256=6X2ZP7y4yuvIEbAghdb6NuNxw9mykRIdV9hdgVIibpY,11
34
+ pymetadata-0.4.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
+ pymetadata-0.4.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.2)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any
@@ -1,35 +0,0 @@
1
- pymetadata/__init__.py,sha256=IvsCDuGufUijmZJhwD7a3TeTP_T468NOyHgn8E7h8NA,342
2
- pymetadata/cache.py,sha256=ulPQKn6TXSe2ElfyO7abOUztI3j4SoweGh2Bav3q8Jg,1351
3
- pymetadata/chebi.py,sha256=O9UEHha260QuVNIJBqGk_FNDCn2vTPfJ2jluR5A6c4g,2609
4
- pymetadata/console.py,sha256=lzM55vluLbC43W0ypMMo-wvuAPMXI-qDeLPlTr-L2ZE,331
5
- pymetadata/log.py,sha256=kXJtaRn2y3Ue5vsbztnbwfWcJbetwlA3mPigNw73KKY,663
6
- pymetadata/omex.py,sha256=_FoZtg0LMHfEpi_lTWuLU44y7OQtLSE_UgZF63aXljI,29867
7
- pymetadata/omex_v2.py,sha256=2YQIuS7PcBPckbLePgryDhsOJ1kn304fW5b6JSxPfJc,583
8
- pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- pymetadata/unichem.py,sha256=2pySq3Bdx1VvkgY9wqdK_Z34qhfT6DMHuelvczsqH-M,6761
10
- pymetadata/core/__init__.py,sha256=VWZCD9TgSGldzdtXoarvp_2oUHKXQkC1T-VUSvMLwNA,28
11
- pymetadata/core/annotation.py,sha256=OFiasz7onv6dVcI4uxrM5Z0yidmLzs6AY9z9L6YOsS4,13694
12
- pymetadata/core/creator.py,sha256=cA33q6Q0UJdulGFVdntwf5jBx8GvpPcK__ItNfRPNMw,1306
13
- pymetadata/core/synonym.py,sha256=G_hZFAsqbNJnw1xBWEKXO88Q_1OjtfbZwUc8P9sgg-E,154
14
- pymetadata/core/xref.py,sha256=S1g063rdhWogM3w0Bd1OddFQ4hbqy-ekRtV3Yz8js6o,1593
15
- pymetadata/examples/__init__.py,sha256=LHY-XmQoiBxoHQW9mQN1_fUYnpfkALuRsdxDXU9sIeU,31
16
- pymetadata/examples/omex_example.py,sha256=qOflDvgbelUSGQrogvuQQUXUFXF3OouCpIPjtE_ipGw,1417
17
- pymetadata/identifiers/__init__.py,sha256=6Jd-w9Izl_wpWKV8IMBv7rW0Aq067V2czu00LNfPTL8,34
18
- pymetadata/identifiers/miriam.py,sha256=pa7lB1_C2cKRUuojFPvxAQ6yDI_ZQNjGEoYMb1395pY,982
19
- pymetadata/identifiers/registry.py,sha256=9JarVbnWkZH21pOCWnz-1a8i_2DX2W4gTlE4A5W_jUY,13761
20
- pymetadata/metadata/__init__.py,sha256=7O7rPwJwW9_uHuvIs6IvQZiQz4MngZSV9Nu7SYL9eA8,102
21
- pymetadata/metadata/eco.py,sha256=wsF-nRuXdI5Fm8T1e8wWYFtBPgzQ9ap2zIkH3nXjab4,662767
22
- pymetadata/metadata/kisao.py,sha256=2tr2Vlc4iwU11vhydIUeY4fGZ8NDKcGc7j1KiezNNPc,88999
23
- pymetadata/metadata/sbo.py,sha256=rJEtdhOP5YUY1i8-6drWsglDmayFEpWVA2h2t3fjLCo,141756
24
- pymetadata/ontologies/__init__.py,sha256=vIpTqwqrhOAOYfnavWBQL149dNMAPv-OE5IyloYQCrQ,18
25
- pymetadata/ontologies/ols.py,sha256=lFejdl20dnKQDrN40AmwGljo1XbEN5g4YJQyHhxoxAk,6818
26
- pymetadata/ontologies/ontology.py,sha256=kigqnhSSUlqJqrFLpawHniBPFyPYxVeo2RJij9gYevo,9141
27
- pymetadata/resources/chebi_webservice_wsdl.xml,sha256=0AEgcZ48bk4L6l3jO5-6BIVwfTr4yXnRZCtXue5NyHo,23846
28
- pymetadata/resources/identifiers_registry.json,sha256=e9_RdHEC8gR-3Q8AnZkv8GvHoa-CRg0AZq1-2Wg5bT0,2072587
29
- pymetadata/resources/templates/ontology_enum.pytemplate,sha256=fK7SBTVfRzVk-z_6wiZ_9MDbTNSlEpGGellRoliGqac,1674
30
- pymetadata-0.4.0.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
31
- pymetadata-0.4.0.dist-info/METADATA,sha256=EoZVVFD6tnC6gL0LfCKMOFoVFCutHbpKli85_87xpgs,6778
32
- pymetadata-0.4.0.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
33
- pymetadata-0.4.0.dist-info/top_level.txt,sha256=6X2ZP7y4yuvIEbAghdb6NuNxw9mykRIdV9hdgVIibpY,11
34
- pymetadata-0.4.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
35
- pymetadata-0.4.0.dist-info/RECORD,,