dcmqi 0.1.0__py3-none-win_amd64.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.
- dcmqi/__init__.py +73 -0
- dcmqi/_version.py +16 -0
- dcmqi/_version.pyi +4 -0
- dcmqi/bin/itkimage2paramap.exe +0 -0
- dcmqi/bin/itkimage2segimage.exe +0 -0
- dcmqi/bin/paramap2itkimage.exe +0 -0
- dcmqi/bin/segimage2itkimage.exe +0 -0
- dcmqi/bin/tid1500reader.exe +0 -0
- dcmqi/bin/tid1500writer.exe +0 -0
- dcmqi/py.typed +0 -0
- dcmqi-0.1.0.dist-info/METADATA +117 -0
- dcmqi-0.1.0.dist-info/RECORD +15 -0
- dcmqi-0.1.0.dist-info/WHEEL +5 -0
- dcmqi-0.1.0.dist-info/entry_points.txt +8 -0
- dcmqi-0.1.0.dist-info/licenses/LICENSE +19 -0
dcmqi/__init__.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (c) 2024 Leonard Nürnberg. All rights reserved.
|
|
3
|
+
|
|
4
|
+
dcmqi: Python distribution of the DCMQI library collection.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import subprocess
|
|
10
|
+
import sys
|
|
11
|
+
from importlib.metadata import distribution
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from typing import NoReturn
|
|
14
|
+
|
|
15
|
+
from ._version import version as __version__
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"__version__",
|
|
19
|
+
"itkimage2segimage",
|
|
20
|
+
"segimage2itkimage",
|
|
21
|
+
"tid1500writer",
|
|
22
|
+
"tid1500reader",
|
|
23
|
+
"itkimage2paramap",
|
|
24
|
+
"paramap2itkimage",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DCMQI_BIN_DIR: Path = Path(__file__).parent
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _lookup(name: str) -> Path:
|
|
32
|
+
executable_path = f"dcmqi/bin/{name}"
|
|
33
|
+
files = distribution("dcmqi").files
|
|
34
|
+
if files is not None:
|
|
35
|
+
for _file in files:
|
|
36
|
+
if str(_file).startswith(executable_path):
|
|
37
|
+
return Path(_file.locate()).resolve(strict=True)
|
|
38
|
+
msg = f"Failed to lookup '{executable_path}` directory."
|
|
39
|
+
raise FileNotFoundError(msg)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _program(name: str, args: list[str]) -> int:
|
|
43
|
+
return subprocess.call([_lookup(name), *args], close_fds=False)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def itkimage2segimage() -> NoReturn:
|
|
47
|
+
"""Run the itkimage2segimage executable with arguments passed to a Python script."""
|
|
48
|
+
raise SystemExit(_program("itkimage2segimage", sys.argv[1:]))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def segimage2itkimage() -> NoReturn:
|
|
52
|
+
"""Run the segimage2itkimage executable with arguments passed to a Python script."""
|
|
53
|
+
raise SystemExit(_program("segimage2itkimage", sys.argv[1:]))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def tid1500writer() -> NoReturn:
|
|
57
|
+
"""Run the tid1500writer executable with arguments passed to a Python script."""
|
|
58
|
+
raise SystemExit(_program("tid1500writer", sys.argv[1:]))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def tid1500reader() -> NoReturn:
|
|
62
|
+
"""Run the tid1500reader executable with arguments passed to a Python script."""
|
|
63
|
+
raise SystemExit(_program("tid1500reader", sys.argv[1:]))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def itkimage2paramap() -> NoReturn:
|
|
67
|
+
"""Run the itkimage2paramap executable with arguments passed to a Python script."""
|
|
68
|
+
raise SystemExit(_program("itkimage2paramap", sys.argv[1:]))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def paramap2itkimage() -> NoReturn:
|
|
72
|
+
"""Run the paramap2itkimage executable with arguments passed to a Python script."""
|
|
73
|
+
raise SystemExit(_program("paramap2itkimage", sys.argv[1:]))
|
dcmqi/_version.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# file generated by setuptools_scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '0.1.0'
|
|
16
|
+
__version_tuple__ = version_tuple = (0, 1, 0)
|
dcmqi/_version.pyi
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
dcmqi/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: dcmqi
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python distribution of the DCMQI library collection.
|
|
5
|
+
Author-Email: =?utf-8?q?Leonard_N=C3=BCrnberg?= <lnuernberg@bwh.harvard.edu>
|
|
6
|
+
License: Copyright 2024 Leonard Nürnberg
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
9
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
10
|
+
the Software without restriction, including without limitation the rights to
|
|
11
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
12
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
13
|
+
so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
|
25
|
+
Classifier: Development Status :: 1 - Planning
|
|
26
|
+
Classifier: Intended Audience :: Science/Research
|
|
27
|
+
Classifier: Intended Audience :: Developers
|
|
28
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
29
|
+
Classifier: Operating System :: OS Independent
|
|
30
|
+
Classifier: Programming Language :: Python
|
|
31
|
+
Classifier: Programming Language :: Python :: 3
|
|
32
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
34
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
35
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Topic :: Scientific/Engineering
|
|
39
|
+
Classifier: Typing :: Typed
|
|
40
|
+
Project-URL: Homepage, https://github.com/ImagingDataCommons/dcmqi-python-distributions
|
|
41
|
+
Project-URL: Bug tracker, https://github.com/ImagingDataCommons/dcmqi-python-distributions/issues
|
|
42
|
+
Project-URL: Discussions, https://github.com/ImagingDataCommons/dcmqi-python-distributions/discussions
|
|
43
|
+
Project-URL: Changelog, https://github.com/ImagingDataCommons/dcmqi-python-distributions/releases
|
|
44
|
+
Requires-Python: >=3.8
|
|
45
|
+
Provides-Extra: test
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Provides-Extra: docs
|
|
48
|
+
Requires-Dist: importlib_metadata>=2.0; python_version < "3.10" and extra == "test"
|
|
49
|
+
Requires-Dist: pytest>=6; extra == "test"
|
|
50
|
+
Requires-Dist: pytest-cov>=3; extra == "test"
|
|
51
|
+
Requires-Dist: pytest>=6; extra == "dev"
|
|
52
|
+
Requires-Dist: pytest-cov>=3; extra == "dev"
|
|
53
|
+
Requires-Dist: sphinx>=7.0; extra == "docs"
|
|
54
|
+
Requires-Dist: myst_parser>=0.13; extra == "docs"
|
|
55
|
+
Requires-Dist: sphinx_copybutton; extra == "docs"
|
|
56
|
+
Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
|
|
57
|
+
Requires-Dist: furo>=2023.08.17; extra == "docs"
|
|
58
|
+
Description-Content-Type: text/markdown
|
|
59
|
+
|
|
60
|
+
# DCMQI Python Distributions
|
|
61
|
+
|
|
62
|
+
[![Actions Status][actions-badge]][actions-link]
|
|
63
|
+
|
|
64
|
+
[![PyPI version][pypi-version]][pypi-link]
|
|
65
|
+
[![PyPI platforms][pypi-platforms]][pypi-link]
|
|
66
|
+
|
|
67
|
+
<!-- SPHINX-START -->
|
|
68
|
+
|
|
69
|
+
## Overview
|
|
70
|
+
|
|
71
|
+
`dcmqi` (DICOM (_dcm_) for Quantitative Imaging (_qi_)) is a collection of
|
|
72
|
+
libraries and command line tools with minimum dependencies to support
|
|
73
|
+
standardized communication of
|
|
74
|
+
[quantitative image analysis](http://journals.sagepub.com/doi/pdf/10.1177/0962280214537333)
|
|
75
|
+
research data using [DICOM standard(https://en.wikipedia.org/wiki/DICOM)].
|
|
76
|
+
|
|
77
|
+
This project provides the infrastructure for building the `dcmqi` Python wheels.
|
|
78
|
+
For more information about `dcmqi`, please refer to
|
|
79
|
+
https://github.com/QIICR/dcmqi.
|
|
80
|
+
|
|
81
|
+
The Python wheels provided here contain the official `itkimage2segimage`,
|
|
82
|
+
`segimage2itkimage`, `tid1500writer`, `tid1500reader`, `itkimage2paramap`, and
|
|
83
|
+
`paramap2itkimage` executable, which is sourced from the
|
|
84
|
+
[GitHub releases](https://github.com/QIICR/dcmqi/releases).
|
|
85
|
+
|
|
86
|
+
Once the wheel is installed, a convenient launcher executable is automatically
|
|
87
|
+
placed in the PATH for each of the above mentioned libraries. This launcher is
|
|
88
|
+
created during installation by pip, leveraging the `[project.scripts]`
|
|
89
|
+
configuration defined in the `pyproject.toml` file.
|
|
90
|
+
|
|
91
|
+
## Platforms
|
|
92
|
+
|
|
93
|
+
The following platforms are supported by the binary wheels:
|
|
94
|
+
|
|
95
|
+
| OS | Arch |
|
|
96
|
+
| ------------ | ---------------- |
|
|
97
|
+
| Windows | 64-bit |
|
|
98
|
+
| Linux Intel | manylinux 64-bit |
|
|
99
|
+
| macOS 10.10+ | Intel |
|
|
100
|
+
| macOS 11+ | Apple Silicon |
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
This project is maintained by Leonard Nürnberg, Mass General Brigham. It is
|
|
105
|
+
covered by the OSI-approved MIT License.
|
|
106
|
+
|
|
107
|
+
`dcmqi` is distributed under the OSI-approved MIT License. For further details
|
|
108
|
+
regarding `dcmqi`, please visit https://github.com/QIICR/dcmqi.
|
|
109
|
+
|
|
110
|
+
<!-- prettier-ignore-start -->
|
|
111
|
+
[actions-badge]: https://github.com/ImagingDataCommons/dcmqi-python-distributions/workflows/CI/badge.svg
|
|
112
|
+
[actions-link]: https://github.com/ImagingDataCommons/dcmqi-python-distributions/actions
|
|
113
|
+
[pypi-link]: https://pypi.org/project/dcmqi/
|
|
114
|
+
[pypi-platforms]: https://img.shields.io/pypi/pyversions/dcmqi
|
|
115
|
+
[pypi-version]: https://img.shields.io/pypi/v/dcmqi
|
|
116
|
+
|
|
117
|
+
<!-- prettier-ignore-end -->
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
dcmqi/__init__.py,sha256=lAkKea7YkZYpWf4pz5whd_VfwuZ--ApjMdPepAMJ9RI,2267
|
|
2
|
+
dcmqi/_version.py,sha256=LihvXsX11I2jla5mXh08c4Nv7nlLSLZJCmSKYdqiruQ,427
|
|
3
|
+
dcmqi/_version.pyi,sha256=OwcR0wV4xBseYdq6ELpfgv5qbkJExXh4XeevG4aK03I,122
|
|
4
|
+
dcmqi/bin/itkimage2paramap.exe,sha256=aboOF4I--OVlinWfmcWmoCkLMV9JFDD6fM_h0YrYKX4,12505600
|
|
5
|
+
dcmqi/bin/itkimage2segimage.exe,sha256=9AFT_aZO-0RrhVbjYO9L6DguHcqbbCFuC38STrclInA,12620800
|
|
6
|
+
dcmqi/bin/paramap2itkimage.exe,sha256=pyFSlJ8NXGpKgxWDGWEToN4NhU1JIVZgNJAMorgN3do,12433920
|
|
7
|
+
dcmqi/bin/segimage2itkimage.exe,sha256=YlS13jwJ0lC0prBJdtGzIe0K_rgkwmIFr5vutHGqXn4,12572160
|
|
8
|
+
dcmqi/bin/tid1500reader.exe,sha256=jM32qzaQXE_FVKuPoC6TXvpJ4DnHuc3lzZY30ZvBKlo,4285440
|
|
9
|
+
dcmqi/bin/tid1500writer.exe,sha256=JLJc9Y99DQEF3f3BkizeKFyxQKTnqJLpC2DYkYIJQQg,4771328
|
|
10
|
+
dcmqi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
dcmqi-0.1.0.dist-info/METADATA,sha256=1YfUUra2u5KwaPVhzEXOmk_MpgUYNnCJflIZKnP_k6Y,5441
|
|
12
|
+
dcmqi-0.1.0.dist-info/WHEEL,sha256=Y6pf_p4zzW-uKe_bVdqFm5D8JlmCNCMqq4aqryxOnEw,102
|
|
13
|
+
dcmqi-0.1.0.dist-info/entry_points.txt,sha256=fMSlxV5PyWK4RFbMKM6Rrkpyl-BkDmpiUNFvUI6vhXg,263
|
|
14
|
+
dcmqi-0.1.0.dist-info/licenses/LICENSE,sha256=lawGti4Wb0p5x2hIyW3ljiC1B2zuxpO_BCQuhXy4PKM,1076
|
|
15
|
+
dcmqi-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[console_scripts]
|
|
2
|
+
itkimage2segimage = dcmqi:itkimage2segimage
|
|
3
|
+
segimage2itkimage = dcmqi:segimage2itkimage
|
|
4
|
+
tid1500writer = dcmqi:tid1500writer
|
|
5
|
+
tid1500reader = dcmqi:tid1500reader
|
|
6
|
+
itkimage2paramap = dcmqi:itkimage2paramap
|
|
7
|
+
paramap2itkimage = dcmqi:paramap2itkimage
|
|
8
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright 2024 Leonard Nürnberg
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|