Skip to main content

pyxnat

https://github.com/pyxnat/pyxnat/actions/workflows/ci.yml/badge.svg https://coveralls.io/repos/github/pyxnat/pyxnat/badge.svg?branch=master https://img.shields.io/pypi/dm/pyxnat.svg https://img.shields.io/pypi/pyversions/pyxnat.svg https://img.shields.io/pypi/v/pyxnat.svg https://gitlab.com/xgrg/tweetit/-/raw/master/resources/008-pyxnat-v1.4.gif?inline=false

Where to get it

The source code is currently hosted on GitHub at: https://github.com/pyxnat/pyxnat

Binary installers for the latest released version are available at the Python package index. pyxnat can be installed using pip with the following command:

pip install pyxnat

Dependencies

  • requests v2.20 or higher

  • python-lxml v4.3.2 or higher recommended, earlier versions may work.

For development purposes:

See the full installation instructions for recommended and optional dependencies.

Installation from sources

To install pyxnat from source, from the pyxnat directory (same one where you found this file after cloning the git repo), execute:

python setup.py install

Documentation

The official documentation is hosted at: https://pyxnat.github.io/pyxnat

Running the test suite

Until v1.1 tests were exclusively performed on XNAT Central using a dedicated user account (nosetests). Yet some tests were not allowed to run due to restricted permissions. In v1.1, tests were restructured and were directed to two independent XNAT instances based on permission level. Hence XNAT Central is still used for most tests with read access whereas other tests requiring write permissions are run on a local XNAT instance in a Docker container.

Consequently, running the test suite now requires the following:

  • pytest v7.1+

  • coverage v3.6+

  • docker v18+

Setting up a local Docker-powered XNAT instance may be achieved easily using docker-compose and any available recipe. We recommend the one from the following repository (maintained by the XNAT team). Once the repository cloned, run the following command (possibly as sudo)

docker-compose up -d

After a couple of minutes, the XNAT instance should be up and running locally. You may check it out visiting http://localhost.

The script tests/setup_xnat.py may then be executed to populate the local instance before running the tests.

Finally run the tests with the following command (from the root of the project):

pytest --cov pyxnat

The file .github/workflows/ci.yml (used for CI) features these described steps and may be referred to for further information.

Building the documentation

Building the docs requires to have setuptools and sphinx (v2.0+) installed. Then run the command:

python setup.py build_sphinx

The docs are built in the build/sphinx/html folder.

Contribute to pyxnat

To contribute to pyxnat, first create an account on GitHub. Once this is done, fork the pyxnat repository to have you own repository, clone it using git clone on the computers where you want to work. Make changes in your clone, push them to your GitHub fork, test them on several computers and when you are happy with them, send a pull request to the main repository.

License

BSD 3

Release files for pyxnat 1.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxnat 1.6.4
File Size Uploaded
pyxnat-1.6.4.tar.gz 81.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyxnat 1.6.4
File Interpreter ABI Platform
pyxnat-1.6.4-py3-none-any.whl Python 3 none any Details

Total release size: 191.7 kB

Release files / pyxnat-1.6.4.tar.gz

Download URL pyxnat-1.6.4.tar.gz
Size 81.0 kB
Tags Source
SHA-256 checksum
How to use checksums
68f918e80f5ee8b8039fa5a972afb5b16ecda8851d7da9bfce60f152c9a5a859
BLAKE2b-256 checksum
How to use checksums
9647e1aa6dd78686a707407c1fe2131d46e4e9fbd3a225180d58926578fadb06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / pyxnat-1.6.4-py3-none-any.whl

Download URL pyxnat-1.6.4-py3-none-any.whl
Size 110.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ed3c5f4774d84c08ffdf0fb80826149fd9907556b5f5f0bc187b7d36ad105d3
BLAKE2b-256 checksum
How to use checksums
f02ef4c728fe3ddcdd9721647858641c80905887c0df9e4e877ed5a722330eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page