idc-index-data 0.1.0__py3-none-any.whl → 17.0.0__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 idc-index-data might be problematic. Click here for more details.
- idc_index_data/__init__.py +16 -9
- idc_index_data/_version.py +1 -16
- idc_index_data/_version.pyi +0 -1
- idc_index_data/idc_index.csv.zip +0 -0
- {idc_index_data-0.1.0.dist-info → idc_index_data-17.0.0.dist-info}/METADATA +4 -5
- idc_index_data-17.0.0.dist-info/RECORD +10 -0
- idc_index_data-0.1.0.dist-info/RECORD +0 -10
- {idc_index_data-0.1.0.dist-info → idc_index_data-17.0.0.dist-info}/WHEEL +0 -0
- {idc_index_data-0.1.0.dist-info → idc_index_data-17.0.0.dist-info}/entry_points.txt +0 -0
- {idc_index_data-0.1.0.dist-info → idc_index_data-17.0.0.dist-info}/licenses/LICENSE +0 -0
idc_index_data/__init__.py
CHANGED
|
@@ -6,28 +6,35 @@ idc-index-data: ImagingDataCommons index to query and download data.
|
|
|
6
6
|
|
|
7
7
|
from __future__ import annotations
|
|
8
8
|
|
|
9
|
-
import
|
|
9
|
+
from importlib.metadata import distribution
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
|
-
if sys.version_info >= (3, 10):
|
|
13
|
-
from importlib.metadata import distribution
|
|
14
|
-
else:
|
|
15
|
-
from importlib_metadata import distribution
|
|
16
|
-
|
|
17
12
|
from ._version import version as __version__
|
|
18
13
|
|
|
19
|
-
__all__ = [
|
|
14
|
+
__all__ = [
|
|
15
|
+
"__version__",
|
|
16
|
+
"IDC_INDEX_CSV_ARCHIVE_FILEPATH",
|
|
17
|
+
"IDC_INDEX_PARQUET_FILEPATH",
|
|
18
|
+
]
|
|
20
19
|
|
|
21
20
|
|
|
22
|
-
def _lookup(path: str) -> Path:
|
|
21
|
+
def _lookup(path: str, optional: bool = False) -> Path | None:
|
|
23
22
|
"""Support editable installation by looking up path using distribution API."""
|
|
24
23
|
files = distribution("idc_index_data").files
|
|
25
24
|
if files is not None:
|
|
26
25
|
for _file in files:
|
|
27
26
|
if str(_file) == path:
|
|
28
27
|
return Path(str(_file.locate())).resolve(strict=True)
|
|
28
|
+
if optional:
|
|
29
|
+
return None
|
|
30
|
+
|
|
29
31
|
msg = f"Failed to lookup '{path}`."
|
|
30
32
|
raise FileNotFoundError(msg)
|
|
31
33
|
|
|
32
34
|
|
|
33
|
-
IDC_INDEX_CSV_ARCHIVE_FILEPATH: Path = _lookup(
|
|
35
|
+
IDC_INDEX_CSV_ARCHIVE_FILEPATH: Path | None = _lookup(
|
|
36
|
+
"idc_index_data/idc_index.csv.zip"
|
|
37
|
+
)
|
|
38
|
+
IDC_INDEX_PARQUET_FILEPATH: Path | None = _lookup(
|
|
39
|
+
"idc_index_data/idc_index.parquet", optional=True
|
|
40
|
+
)
|
idc_index_data/_version.py
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
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)
|
|
1
|
+
version = "17.0.0"
|
idc_index_data/_version.pyi
CHANGED
idc_index_data/idc_index.csv.zip
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: idc-index-data
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 17.0.0
|
|
4
4
|
Summary: ImagingDataCommons index to query and download data.
|
|
5
5
|
Author-Email: Andrey Fedorov <andrey.fedorov@gmail.com>, Vamsi Thiriveedhi <vthiriveedhi@mgh.harvard.edu>, Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
|
|
6
6
|
License: Copyright 2024 Andrey Fedorov
|
|
@@ -42,7 +42,9 @@ Project-URL: Bug tracker, https://github.com/ImagingDataCommons/idc-index-data/i
|
|
|
42
42
|
Project-URL: Discussions, https://discourse.canceridc.dev/
|
|
43
43
|
Project-URL: Changelog, https://github.com/ImagingDataCommons/idc-index-data/releases
|
|
44
44
|
Requires-Python: >=3.8
|
|
45
|
-
|
|
45
|
+
Provides-Extra: test
|
|
46
|
+
Provides-Extra: dev
|
|
47
|
+
Provides-Extra: docs
|
|
46
48
|
Requires-Dist: pytest>=6; extra == "test"
|
|
47
49
|
Requires-Dist: pytest-cov>=3; extra == "test"
|
|
48
50
|
Requires-Dist: pytest>=6; extra == "dev"
|
|
@@ -52,9 +54,6 @@ Requires-Dist: myst_parser>=0.13; extra == "docs"
|
|
|
52
54
|
Requires-Dist: sphinx_copybutton; extra == "docs"
|
|
53
55
|
Requires-Dist: sphinx_autodoc_typehints; extra == "docs"
|
|
54
56
|
Requires-Dist: furo>=2023.08.17; extra == "docs"
|
|
55
|
-
Provides-Extra: test
|
|
56
|
-
Provides-Extra: dev
|
|
57
|
-
Provides-Extra: docs
|
|
58
57
|
Description-Content-Type: text/markdown
|
|
59
58
|
License-File: LICENSE
|
|
60
59
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
idc_index_data/__init__.py,sha256=tz8g0i4jEqAXKtPjuEZiBZdqWnxfKuUFdje2OAWniG8,1064
|
|
2
|
+
idc_index_data/_version.py,sha256=7suISTd8CaeCyu3TewyzsRRvwyxU25wVjVEn3-ykwXo,19
|
|
3
|
+
idc_index_data/_version.pyi,sha256=JoQmvXG9CCUSxJ6igFplGpf6cLKLJdTV_lH9oRADu9U,49
|
|
4
|
+
idc_index_data/idc_index.csv.zip,sha256=Ix9KkAi0j7ckdLH4tQKbI2iITQiOuAt4u6CYZAnX4GM,48011370
|
|
5
|
+
idc_index_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
idc_index_data-17.0.0.dist-info/METADATA,sha256=ElY4E961k0WPH5RzUKlFI6Po4c8MFEcy5E5G7DDMx1w,5374
|
|
7
|
+
idc_index_data-17.0.0.dist-info/WHEEL,sha256=brhuk330msBbR6HNbWBf4J3lCb0f7ROf5SPEuoGHVBE,95
|
|
8
|
+
idc_index_data-17.0.0.dist-info/entry_points.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
idc_index_data-17.0.0.dist-info/licenses/LICENSE,sha256=J0F7wI7LET8rVMeUoKGoIf1mwhSoMe0br_bpdONSe8s,1054
|
|
10
|
+
idc_index_data-17.0.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
idc_index_data/__init__.py,sha256=PtpWERrZRTcr7vvTLzvEzxxr2UvowKtygb3D_n1Efwo,932
|
|
2
|
-
idc_index_data/_version.py,sha256=IMl2Pr_Sy4LVRKy_Sm4CdwUl1Gryous6ncL96EMYsnM,411
|
|
3
|
-
idc_index_data/_version.pyi,sha256=j5kbzfm6lOn8BzASXWjGIA1yT0OlHTWqlbyZ8Si_o0E,118
|
|
4
|
-
idc_index_data/idc_index.csv.zip,sha256=cOyfkVaGonvuMJgWO4aVxpyGlsBb-3vXaUOiQCTN7rk,46445335
|
|
5
|
-
idc_index_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
idc_index_data-0.1.0.dist-info/METADATA,sha256=F3OcxEZThhlZQuGjUcn8EFUQrb3VQwxgm9ga4AY4LaE,5437
|
|
7
|
-
idc_index_data-0.1.0.dist-info/WHEEL,sha256=brhuk330msBbR6HNbWBf4J3lCb0f7ROf5SPEuoGHVBE,95
|
|
8
|
-
idc_index_data-0.1.0.dist-info/entry_points.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
idc_index_data-0.1.0.dist-info/licenses/LICENSE,sha256=J0F7wI7LET8rVMeUoKGoIf1mwhSoMe0br_bpdONSe8s,1054
|
|
10
|
-
idc_index_data-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|