Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
/ xnat-access Public archive

Thin XNAT REST API wrapper for Python 3 requests.

License

Notifications You must be signed in to change notification settings

somnonetz/xnat-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Thin XNAT REST API wrapper for Python 3 requests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages