ADIT Client library to connect to an ADIT server.
Project description
Adit Client
About
Adit Client is the official Python client of ADIT (Automated DICOM Transfer).
Usage
Prerequisites
- Generate an API token in your ADIT profile.
- Make sure to have the permissions to access the ADIT API.
- Also make sure you have access to the DICOM nodes you want query.
Code
adit_url = "https://adit" # The host URL of adit
adit_token = "my_token" # The generated auth token
client = AditClient(server_url=adit_url, auth_token=adit_token)
# Search for studies
studies = client.search_for_studies("ORTHANC1", {"PatientName": "Doe, John"})
# The client returns pydicom datasets
study_descriptions = [study.StudyDescription for study in studies]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
adit_client-0.2.2.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for adit_client-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24583f6bc584b3848cc0e7148b118b0596183076f085efd48d7bcd231b4ce8e2 |
|
MD5 | 3aef7fdb3de4f6c0a25376c83a1f3afc |
|
BLAKE2b-256 | a29e7c57798371c82e37faebe51d2456683f58fb28282712bf030557447d94c5 |