pymetadata 0.5.0__py3-none-any.whl → 0.5.2__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/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  from pathlib import Path
4
4
 
5
5
  __author__ = "Matthias Koenig"
6
- __version__ = "0.5.0"
6
+ __version__ = "0.5.2"
7
7
 
8
8
 
9
9
  program_name: str = "pymetadata"
pymetadata/omex.py CHANGED
@@ -574,6 +574,8 @@ class Omex:
574
574
  for file in files:
575
575
  file_path = os.path.join(root, file)
576
576
  location = f"./{os.path.relpath(file_path, directory)}"
577
+ # bugfix for windows paths
578
+ location = location.replace("\\", "/")
577
579
  if location == "./manifest.xml":
578
580
  # manifest is created from the internal manifest entries
579
581
  continue
@@ -0,0 +1,115 @@
1
+ Metadata-Version: 2.4
2
+ Name: pymetadata
3
+ Version: 0.5.2
4
+ Summary: pymetadata are python utilities for working with metadata.
5
+ Author-email: Matthias König <konigmatt@googlemail.com>
6
+ Maintainer-email: Matthias König <konigmatt@googlemail.com>
7
+ License-File: LICENSE
8
+ Keywords: COMBINE,annotation,archive,metadata,modeling,standardization
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: Implementation :: CPython
18
+ Classifier: Topic :: Scientific/Engineering
19
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: depinfo>=2.2.0
22
+ Requires-Dist: fastobo>=0.12.3
23
+ Requires-Dist: jinja2>=3.1.5
24
+ Requires-Dist: lxml>=5.3
25
+ Requires-Dist: pronto>=2.5.8
26
+ Requires-Dist: pydantic>=2.10.4
27
+ Requires-Dist: requests>=2.32.3
28
+ Requires-Dist: rich>=13.9.4
29
+ Requires-Dist: xmltodict>=0.14.2
30
+ Requires-Dist: zeep>=4.3.1
31
+ Provides-Extra: dev
32
+ Requires-Dist: bump-my-version>=0.29.0; extra == 'dev'
33
+ Requires-Dist: mypy>=1.9.0; extra == 'dev'
34
+ Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
35
+ Requires-Dist: ruff>=0.8.6; extra == 'dev'
36
+ Provides-Extra: test
37
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
38
+ Requires-Dist: pytest>=8.1.1; extra == 'test'
39
+ Requires-Dist: tox>=4.14.2; extra == 'test'
40
+ Description-Content-Type: text/markdown
41
+
42
+ ![pymetadata logo](https://github.com/matthiaskoenig/pymetadata/raw/develop/docs/images/favicon/pymetadata-100x100-300dpi.png)
43
+
44
+ # pymetadata: python utilities for metadata and COMBINE archives
45
+ [![GitHub Actions CI/CD Status](https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg)](https://github.com/matthiaskoenig/pymetadata/actions/workflows/main.yml)
46
+ [![Version](https://img.shields.io/pypi/v/pymetadata.svg)](https://pypi.org/project/pymetadata/)
47
+ [![Python Versions](https://img.shields.io/pypi/pyversions/pymetadata.svg)](https://pypi.org/project/pymetadata/)
48
+ [![MIT License](https://img.shields.io/pypi/l/pymetadata.svg)](https://opensource.org/licenses/MIT)
49
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg)](https://doi.org/10.5281/zenodo.5308801)
50
+
51
+ pymetadata is a collection of python utilities for working with
52
+ metadata in the context of COMBINE standards with source code available from
53
+ [https://github.com/matthiaskoenig/pymetadata](https://github.com/matthiaskoenig/pymetadata).
54
+
55
+ Features include among others
56
+
57
+ - COMBINE archive version 1 support (OMEX)
58
+ - annotation classes and helpers
59
+ - SBO and KISAO ontology enums
60
+
61
+ If you have any questions or issues please [open an issue](https://github.com/matthiaskoenig/pymetadata/issues).
62
+
63
+ # Documentation
64
+ Documentation is still work in progress. For an example usage of the COMBINE archive
65
+ see [omex_example.py](src/pymetadata/examples/omex_example.py).
66
+
67
+ # How to cite
68
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg)](https://doi.org/10.5281/zenodo.5308801)
69
+
70
+ # Contributing
71
+ Contributions are always welcome! Please read the [contributing guidelines](https://github.com/matthiaskoenig/pymetadata/blob/develop/.github/CONTRIBUTING.rst) to get started.
72
+
73
+ # License
74
+ - Source Code: [MIT](https://opensource.org/license/MIT)
75
+ - Documentation: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)
76
+
77
+ # Funding
78
+ Matthias König (MK) was supported by the Federal Ministry of Education and Research (BMBF, Germany) within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054). MK is supported by the Federal Ministry of Education and Research (BMBF, Germany) within ATLAS by grant number 031L0304B and by the German Research Foundation (DFG) within the Research Unit Program FOR 5151 QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach) by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
79
+
80
+ # Installation
81
+ `pymetadata` is available from [pypi](https://pypi.python.org/pypi/pymetadata) and
82
+ can be installed via
83
+
84
+ ```bash
85
+ pip install pymetadata
86
+ ```
87
+
88
+ ## Develop version
89
+ The latest develop version can be installed via
90
+ ```bash
91
+ pip install git+https://github.com/matthiaskoenig/pymetadata.git@develop
92
+ ```
93
+
94
+ Or via cloning the repository and installing via
95
+ ```bash
96
+ git clone https://github.com/matthiaskoenig/pymetadata.git
97
+ cd pymetadata
98
+ pip install -e .
99
+ ```
100
+
101
+ # Cache path
102
+ `pymetadata` caches some information for faster retrieval. The cache path is set to
103
+
104
+ ```python
105
+ CACHE_PATH: Path = Path.home() / ".cache" / "pymetadata"
106
+ ```
107
+
108
+ To use a custom cache path use
109
+
110
+ ```python
111
+ import pymetadata
112
+ pymetadata.CACHE_PATH = <cache_path>
113
+ ```
114
+
115
+ © 2021-2025 Matthias König
@@ -1,9 +1,9 @@
1
- pymetadata/__init__.py,sha256=-EZKeFfptRrccMcmwrtFlGJkpYRIFY0r47_VT7OzueQ,357
1
+ pymetadata/__init__.py,sha256=35mfW854dCAnEdVYlCj4WPTTQiU-v_XXB7B0VnUPS6M,357
2
2
  pymetadata/cache.py,sha256=tQuMIcd1cOfO0dvODQMG92_IrHqgswPfshhFjtl7Pd0,1409
3
3
  pymetadata/chebi.py,sha256=EH8sYRx7af3Hi1O8x5Tvj_T9cawGVMtlYp_4B3L8tHY,2730
4
4
  pymetadata/console.py,sha256=ouDYOx_81ndvtMW5GVrut71uzPC5xlvibGu9N5YdbRA,332
5
5
  pymetadata/log.py,sha256=3uRVMYolalrS0PVWS_4qSme8RYhot3_W2ad1JopI88g,664
6
- pymetadata/omex.py,sha256=lXdWJQgX-_zDq1OX82zWEk_R1rlJX995jrCKOiQt8JM,29829
6
+ pymetadata/omex.py,sha256=ZFsX9Xbh8sgT1UeBpKMgdrOh2PGTxrH2IAdYo_R9xc0,29927
7
7
  pymetadata/omex_v2.py,sha256=HZBg_wmQWixweOZG3qVj2zqG_o1x9Ljxy-JEP6-ZFhM,584
8
8
  pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pymetadata/unichem.py,sha256=slxTabar1ZdZQUyTyRloiWKxD92ixnDGsJ2xk3alrTo,6878
@@ -36,7 +36,7 @@ pymetadata/ontologies/ontology.py,sha256=cnAgXzxPn3XxZ8FUAMuSAH0eOGio-YK1Enzy3Zu
36
36
  pymetadata/resources/chebi_webservice_wsdl.xml,sha256=0AEgcZ48bk4L6l3jO5-6BIVwfTr4yXnRZCtXue5NyHo,23846
37
37
  pymetadata/resources/ontologies/README.md,sha256=h1LIKpr42-s0RzwpCufkR_YJ2nWiwOapZX_frRXk3Qg,163
38
38
  pymetadata/resources/templates/ontology_enum.pytemplate,sha256=fK7SBTVfRzVk-z_6wiZ_9MDbTNSlEpGGellRoliGqac,1674
39
- pymetadata-0.5.0.dist-info/METADATA,sha256=R5xPvJVRW71mo79WwmUKkuGpx1lEZQqTZW070IynBrw,5725
40
- pymetadata-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- pymetadata-0.5.0.dist-info/licenses/LICENSE,sha256=bIHEDEMiQfVe9c81lFP7Q9hsCOmEuj2c_m50LuotsMM,1058
42
- pymetadata-0.5.0.dist-info/RECORD,,
39
+ pymetadata-0.5.2.dist-info/METADATA,sha256=d39G-Arr7ZINSjkrXQg5JxHqurwMItj8dmwOAP0Vc0w,4943
40
+ pymetadata-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ pymetadata-0.5.2.dist-info/licenses/LICENSE,sha256=bIHEDEMiQfVe9c81lFP7Q9hsCOmEuj2c_m50LuotsMM,1058
42
+ pymetadata-0.5.2.dist-info/RECORD,,
@@ -1,154 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: pymetadata
3
- Version: 0.5.0
4
- Summary: pymetadata are python utilities for working with metadata.
5
- Author-email: Matthias König <konigmatt@googlemail.com>
6
- Maintainer-email: Matthias König <konigmatt@googlemail.com>
7
- License-File: LICENSE
8
- Keywords: COMBINE,annotation,archive,metadata,modeling,standardization
9
- Classifier: Development Status :: 4 - Beta
10
- Classifier: Intended Audience :: Science/Research
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Programming Language :: Python :: 3.13
17
- Classifier: Programming Language :: Python :: Implementation :: CPython
18
- Classifier: Topic :: Scientific/Engineering
19
- Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
20
- Requires-Python: >=3.10
21
- Requires-Dist: depinfo>=2.2.0
22
- Requires-Dist: fastobo>=0.12.3
23
- Requires-Dist: jinja2>=3.1.5
24
- Requires-Dist: lxml>=5.3
25
- Requires-Dist: pronto>=2.5.8
26
- Requires-Dist: pydantic>=2.10.4
27
- Requires-Dist: requests>=2.32.3
28
- Requires-Dist: rich>=13.9.4
29
- Requires-Dist: xmltodict>=0.14.2
30
- Requires-Dist: zeep>=4.3.1
31
- Provides-Extra: dev
32
- Requires-Dist: bump-my-version>=0.29.0; extra == 'dev'
33
- Requires-Dist: hatch; extra == 'dev'
34
- Requires-Dist: mypy>=1.9.0; extra == 'dev'
35
- Requires-Dist: pre-commit>=4.0.1; extra == 'dev'
36
- Requires-Dist: ruff>=0.8.6; extra == 'dev'
37
- Provides-Extra: test
38
- Requires-Dist: pytest-cov>=5.0.0; extra == 'test'
39
- Requires-Dist: pytest>=8.1.1; extra == 'test'
40
- Requires-Dist: tox>=4.14.2; extra == 'test'
41
- Description-Content-Type: text/x-rst
42
-
43
- .. image:: https://github.com/matthiaskoenig/pymetadata/raw/develop/docs/images/favicon/pymetadata-100x100-300dpi.png
44
- :align: left
45
- :alt: pymetadata logo
46
-
47
- pymetadata: python utilities for metadata and COMBINE archives
48
- ==============================================================
49
- |icon1| |icon2| |icon3| |icon4| |icon5| |icon6|
50
-
51
-
52
- .. |icon1| image:: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD/badge.svg
53
- :target: https://github.com/matthiaskoenig/pymetadata/workflows/CI-CD
54
- :alt: GitHub Actions CI/CD Status
55
- .. |icon2| image:: https://img.shields.io/pypi/v/pymetadata.svg
56
- :target: https://pypi.org/project/pymetadata/
57
- :alt: Current PyPI Version
58
- .. |icon3| image:: https://img.shields.io/pypi/pyversions/pymetadata.svg
59
- :target: https://pypi.org/project/pymetadata/
60
- :alt: Supported Python Versions
61
- .. |icon4| image:: https://img.shields.io/pypi/l/pymetadata.svg
62
- :target: https://opensource.org/licenses/MIT
63
- :alt: MIT License
64
- .. |icon5| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
65
- :target: https://doi.org/10.5281/zenodo.5308801
66
- :alt: Zenodo DOI
67
- .. |icon6| image:: http://www.mypy-lang.org/static/mypy_badge.svg
68
- :target: http://mypy-lang.org/
69
- :alt: mypy
70
-
71
- pymetadata is a collection of python utilities for working with
72
- metadata in the context of COMBINE standards with source code available from
73
- `https://github.com/matthiaskoenig/pymetadata <https://github.com/matthiaskoenig/pymetadata>`__.
74
-
75
- Features include among others
76
-
77
- - COMBINE archive version 1 support (OMEX)
78
- - annotation classes and helpers
79
- - SBO and KISAO ontology enums
80
-
81
- If you have any questions or issues please `open an issue <https://github.com/matthiaskoenig/pymetadata/issues>`__.
82
-
83
- Documentation
84
- =============
85
- Documentation is still work in progress. For an example usage of the COMBINE archive
86
- see `src/pymetadata/examples/omex_example.py <src/pymetadata/examples/omex_example.py>`__.
87
-
88
- How to cite
89
- ===========
90
-
91
- .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5308801.svg
92
- :target: https://doi.org/10.5281/zenodo.5308801
93
- :alt: Zenodo DOI
94
-
95
- Contributing
96
- ============
97
-
98
- Contributions are always welcome! Please read the `contributing guidelines
99
- <https://github.com/matthiaskoenig/pymetadata/blob/develop/.github/CONTRIBUTING.rst>`__ to
100
- get started.
101
-
102
- License
103
- =======
104
- * Source Code: `MIT <https://opensource.org/license/MIT>`__
105
- * Documentation: `CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0/>`__
106
-
107
- Funding
108
- =======
109
- Matthias König (MK) was supported by the Federal Ministry of Education and Research (BMBF, Germany) within the research network Systems Medicine of the Liver (**LiSyM**, grant number 031L0054). MK is supported by the Federal Ministry of Education and Research (BMBF, Germany) within ATLAS by grant number 031L0304B and by the German Research Foundation (DFG) within the Research Unit Program FOR 5151 QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach) by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
110
-
111
- Installation
112
- ============
113
- `pymetadata` is available from `pypi <https://pypi.python.org/pypi/pymetadata>`__ and
114
- can be installed via::
115
-
116
- pip install pymetadata
117
-
118
- Develop version
119
- ---------------
120
- The latest develop version can be installed via::
121
-
122
- pip install git+https://github.com/matthiaskoenig/pymetadata.git@develop
123
-
124
- Or via cloning the repository and installing via::
125
-
126
- git clone https://github.com/matthiaskoenig/pymetadata.git
127
- cd pymetadata
128
- pip install -e .
129
-
130
-
131
- To install for development use::
132
-
133
- pip install -e .[development]
134
-
135
-
136
- Cache path
137
- ==========
138
- `pymetadata` caches some information for faster retrieval. The cache path is set to::
139
-
140
- CACHE_PATH: Path = Path.home() / ".cache" / "pymetadata"
141
-
142
- To use a custom cache path use::
143
-
144
- import pymetadata
145
- pymetadata.CACHE_PATH = <cache_path>
146
-
147
-
148
- Checks
149
- ==========
150
- - uv for project setup
151
- - ruff for linting, formating
152
- - mypy for type checking
153
-
154
- © 2021-2025 Matthias König