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.
Source Distribution
xnat-access-0.6.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for xnat_access-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0947ee73cc7fec0660c4a60cd03790e89fbeaba8f27699f804039efd5a5f0bcf |
|
MD5 | a525a27351e38810e40907df7a914db1 |
|
BLAKE2b-256 | 6361dcff9f6da79001993ab79fa913143aec3ca794ded0f28bdefd223c797317 |