idc-index-data 0.1.0__py3-none-any.whl → 17.0.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.
@@ -6,28 +6,33 @@ idc-index-data: ImagingDataCommons index to query and download data.
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
- import sys
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__ = ["__version__", "IDC_INDEX_CSV_ARCHIVE_FILEPATH"]
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("idc_index_data/idc_index.csv.zip")
35
+ IDC_INDEX_CSV_ARCHIVE_FILEPATH: Path | None = _lookup(
36
+ "idc_index_data/idc_index.csv.zip", optional=True
37
+ )
38
+ IDC_INDEX_PARQUET_FILEPATH: Path | None = _lookup("idc_index_data/idc_index.parquet")
@@ -1,16 +1 @@
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)
1
+ version = "17.0.1"
@@ -1,4 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  version: str
4
- version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: idc-index-data
3
- Version: 0.1.0
3
+ Version: 17.0.1
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
- Requires-Dist: importlib_metadata>=2.0; python_version < "3.10"
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=QRd6Y2h5ASKDfbwOcpMU3phIZLTMAgISpoCHmx4I16E,1058
2
+ idc_index_data/_version.py,sha256=T2_p-93LebauB9qowXeYJkptp3eTTO7W5s3TYF5Wy4A,19
3
+ idc_index_data/_version.pyi,sha256=JoQmvXG9CCUSxJ6igFplGpf6cLKLJdTV_lH9oRADu9U,49
4
+ idc_index_data/idc_index.parquet,sha256=rUVcsc7NzwewnkQe9bf_7f_BN9MtrPstiofvTRlb_U0,32218396
5
+ idc_index_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ idc_index_data-17.0.1.dist-info/METADATA,sha256=Pl4FD_NOafcVZIGN_Q3Mj9pDi2BmAi_1uS--Z7F6gws,5374
7
+ idc_index_data-17.0.1.dist-info/WHEEL,sha256=brhuk330msBbR6HNbWBf4J3lCb0f7ROf5SPEuoGHVBE,95
8
+ idc_index_data-17.0.1.dist-info/entry_points.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ idc_index_data-17.0.1.dist-info/licenses/LICENSE,sha256=J0F7wI7LET8rVMeUoKGoIf1mwhSoMe0br_bpdONSe8s,1054
10
+ idc_index_data-17.0.1.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,,