Skip to main content

XNAT Access.

Project description

XNAT Access

Thin XNAT REST API wrapper for Python 3 requests.

Installation

pip3 install --user xnat-access

Usage

from xnat_access import XNATClient

xnat = XNATClient(
    'https://example.com/xnat',
    'USERNAME',
    'PASSWORD'
)

url = 'projects/PROJECT/subjects/SUBJECT/experiments/EXPERIMENT/scans'
scans = xnat.get_result(url)
print(scans)

# all functions
# --------------------
# xnat.get_request
# xnat.get_json
# xnat.get_result
# xnat.get_file
# xnat.download_file
# xnat.put_request
# xnat.upload_file
# xnat.delete_request
# xnat.open_session
# xnat.close_session
# xnat.session_is_open

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xnat-access, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size xnat_access-0.6-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xnat-access-0.6.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page