Install & Compatibility
Where this runs
tested against v0.12.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.10
✕ build_error
✓ 13.6s
py 3.11
✕ build_error
✓ 12.6s
py 3.12
✕ build_error
✓ 11.6s
py 3.13
✕ build_error
✓ 11.6s
502MB installed
● package 502MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
IDCClient
✓ from idc_index import IDCClient
✗ from idc_index.client import IDCClient
Client class is exposed at the top-level package since v0.10.
index
✓ from idc_index import index
For programmatic access to the index tables (e.g., index.IndexClient)
Creates a client, then queries for CT series from the TCGA-LUAD collection.
from idc_index import IDCClient
client = IDCClient()
# Get all DICOM series in the index
series = client.get_series(collection_id="TCGA-LUAD", modality="CT")
print(len(series))
# Access as Pandas DataFrame
print(series.head())
Errors
Common errors & fixes
AttributeError: 'IDCClient' object has no attribute 'get_collections'
The method was renamed/removed in v0.11.
fixUse `client.available_collections` instead.
ModuleNotFoundError: No module named 'idc_index_data'
The `idc-index-data` package is not installed or not up-to-date.
fixRun `pip install idc-index-data` or `pip install idc-index --upgrade`.
ValueError: The truth value of a DataFrame is ambiguous
Calling `bool(client.get_series(...))` on an empty DataFrame.
fixUse `not series.empty` instead of `if series:`
RuntimeError: Cannot connect to IDC index. Make sure you have internet access.
First-time download or cached index is corrupt; or network issue.
fixEnsure stable internet, delete `~/.cache/idc-index` and retry, or set environment variable `IDC_INDEX_CACHE_DIR` to a writable path.
Upgrade
Version history
0.12.3latest on PyPI · released May 9, 2026
Audit
Dependencies
idc-index-datarequiredProvides the actual index data (parquet tables) loaded by idc-index
duckdbrequiredUsed internally for SQL-like queries on the indices
pandasrequiredUsed to represent query results as DataFrames