XNAT Python Client¶
A new XNAT client that exposes XNAT objects/functions as python objects/functions.
The XNAT Python client is open-source (licensed under the Apache 2.0 license) and hosted on bitbucket at https://bitbucket.org/bigr_erasmusmc/xnatpy
The official documentation can be found at xnat.readthedocs.org
To install from pypi simply use:
pip install xnat
There is also a conda package available:
conda install -c conda-forge xnat
Alternatively, you can get yourself a copy of the source code:
hg clone https://<yourusername>@bitbucket.org/bigr_erasmusmc/xnatpy
or if you have a ssh key pair:
hg clone ssh://hg@bitbucket.org/bigr_erasmusmc/xnatpy
Note
The source will be moved from mercurial to git at the end of 2019!
Note
This is NOT pyxnat, but a new module which is not as mature but uses a different philisophy for the user interface. Pyxnat is located at: https://pythonhosted.org/pyxnat/
XNAT Client Documentation¶
- Introduction
- XNATpy Tutorial
- XNAT REST API
- Installation
- Connecting to a server
- Exploring your xnat server
- Looping over data
- Downloading data
- Custom variables
- Getting external urls of an object
- Importing data into XNAT
- Prearchive
- Object creation
- Accessing XNAT files as local files (partial read)
- Accessing DICOM headers of scan
- Example scripts
- Changelog
- 0.3.21 - 2019-10-09
- 0.3.20 - 2019-10-09
- 0.3.19 - 2019-09-20
- 0.3.18 - 2019-06-06
- 0.3.17 - 2019-04-04
- 0.3.16 - 2019-03-28
- 0.3.14 - 2019-02-22
- 0.3.13 - 2019-01-07
- 0.3.12 - 2019-01-03
- 0.3.11 - 2018-11-12
- 0.3.10 - 2018-08-31
- 0.3.9 - 2018-07-02
- 0.3.8 - 2018-06-04
- 0.3.7 - 2018-03-12
- 0.3.6 - 2018-03-09
- 0.3.5 - 2018-01-02
- 0.3.4 - 2017-11-13
- 0.3.3 - 2017-10-18
- 0.3.2 - 2017-10-15
- 0.3.1 - 2017-09-04
- 0.3.0 - 2017-08-17
- 0.2.3 - 2017-04-03
- Code reference
- Generated XSD classes