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 details)
Built Distribution
File details
Details for the file xnat-access-0.6.tar.gz
.
File metadata
- Download URL: xnat-access-0.6.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/5.1.15-300.fc30.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 563bf266ad44cdf91b1ec19427acecf01f59293eda5e6c49258afe51ffd46389 |
|
MD5 | 575398d623c184a1a65268f04b81ea38 |
|
BLAKE2b-256 | 7640aba9f7506cb20a359aed7b411b16beea0365998784ab19072ba2c0f0356f |
File details
Details for the file xnat_access-0.6-py3-none-any.whl
.
File metadata
- Download URL: xnat_access-0.6-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.16 CPython/3.7.3 Linux/5.1.15-300.fc30.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0947ee73cc7fec0660c4a60cd03790e89fbeaba8f27699f804039efd5a5f0bcf |
|
MD5 | a525a27351e38810e40907df7a914db1 |
|
BLAKE2b-256 | 6361dcff9f6da79001993ab79fa913143aec3ca794ded0f28bdefd223c797317 |