This release is a pre-release and may not be stable for production use.
TCIA Utils 4.0
TCIA Utils is a Python client for discovering TCIA datasets, participants, clinical evidence, available data, citations, and verified analytical publications. It uses the shared TCIA V2 REST service. A researcher can start with a question about a dataset without choosing the underlying catalog or storage system.
Version 4.0.0a1 is the first opt-in alpha preview of the new API. Ordinary pip installs and upgrades continue selecting the stable 3.x release. Use a fresh Python environment to try the preview:
python -m pip install "tcia_utils[tables]==4.0.0a1"
The guided workshop installs the exact preview and queries real public metadata. Report feedback through GitHub issues, including the failing operation, package/Python versions, and error message. Do not include credentials. Existing 3.x scripts should stay in a separate environment; see migration guidance.
The client requires Python 3.11 or newer and httpx. Notebook dependencies are in the tutorial requirements. The built wheel is the package used for notebook verification; an editable checkout is not required.
Provide the URL of a TCIA V2 REST host that has a ready installed bundle. The client does not choose a host or make a request during import or construction.
from tcia_utils import TCIAClient
with TCIAClient(base_url="https://tcia.duckdns.org") as tcia:
service = tcia.status()
page = tcia.search_datasets(query="lung", limit=10)
for dataset in page.items:
print(dataset["dataset_type"], dataset["short_title"], dataset.get("doi"))
print(page.completeness.state, service.provenance.release_fingerprint)
Searches return one Page at a time. Call page.next_page() or iterate page.iter_pages() when more results are needed. Detail calls return a Result containing the service's named fields and notes. Both expose observed release provenance and completeness. partial means more cursor pages are available; unknown means the route has no exhaustive cursor or contains a bounded sublist. An empty successful page is a real zero-match result. Failures raise typed TCIAError subclasses: for example, ServiceUnavailableError for a missing capability or HTTP 503, HTTPResponseError for HTTP 500, and TransportError for a connection failure.
Use the task-oriented guide for methods, evidence scope, selection exports, and tool handoffs. The migration guide explains the 3.x API change; troubleshooting covers setup and response errors. The canonical guided workshop teaches dataset discovery/download planning, participant cohorts, brain MR segmentations, and controlled CT/SEG access in one conversational lesson. It uses real public metadata by default; imaging downloads are opt-in. Its current limits are explicit: the CMB-GEC tissue-slide package still requires its collection download link, and indexed NIfTI files do not yet have a per-file API download route.
This alpha is for community testing. The service compatibility review and notebook validation preserve dated verification and earlier failure history. The four original hosted-route failures were repaired and subsequently passed live checks. API availability, indexed coverage, and the active metadata snapshot can change; retain response provenance with research exports. Clinical summaries are derived metadata, and some routes are bounded rather than exhaustive.
Visible TCIA Collection and Analysis Result records establish dataset publication. DataCite metadata and publication metrics enrich those records but do not establish publication by themselves. Public metadata about controlled data does not grant payload access. For public DICOM series detail and viewer URLs, use idc-index directly. Selection export prepares route-specific manifests for TCIA Data Retriever; it never transfers imaging payloads.
TCIA data use remains subject to the TCIA Data Usage Policy.
Metadata
Release files for tcia-utils 4.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tcia_utils-4.0.0a1.tar.gz | 92.7 kB | With provenance | Details for tcia_utils-4.0.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tcia_utils-4.0.0a1-py3-none-any.whl | Python 3 | none | any | Details for tcia_utils-4.0.0a1-py3-none-any.whl |
Total release size: 121.8 kB
Release files / tcia_utils-4.0.0a1.tar.gz
| Download URL | tcia_utils-4.0.0a1.tar.gz |
|---|---|
| Size | 92.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b7ddc193cfcb463cccfffe60c267108ae5373f0b86418c91e94d4034204b5c7
|
|
BLAKE2b-256 checksum How to use checksums |
db05f46d19cf49b19be10e4e7e3c5bd59d5d399f9fc9d1a440c4a21f61273901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / tcia_utils-4.0.0a1-py3-none-any.whl
| Download URL | tcia_utils-4.0.0a1-py3-none-any.whl |
|---|---|
| Size | 29.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b1539cca68615c02db2ffb671886409e8678a0c2eacb68d69961edd922043db
|
|
BLAKE2b-256 checksum How to use checksums |
068d8f95d76799a4e12696a59dee3ac0c0d0a26c3980212f43123590029bbf26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for tcia-utils 4.0.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tcia_utils-4.0.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.