Skip to main content

XNAT in Python

Reason this release was yanked:

Incomplete release, missing upstream commits. Please use 1.6.4.post3

Project description

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). However, some tests could not run due to restricted permissions. In v1.1, tests were restructured to use two independent XNAT instances based on permission level.

A public XNAT instance (NITRC/IR) is used for most tests with read access, while tests requiring write permissions run against a local XNAT instance in a Docker container.

Running the test suite requires the following:

  • pytest v7.1+

  • coverage v3.6+

  • docker v18+

A local Docker-powered XNAT instance can be set up using docker-compose and any available recipe. We recommend the one maintained by the XNAT team (xnat-docker-compose). Once the repository is cloned, run:

docker-compose up -d

After a couple of minutes, the XNAT instance should be up and running locally at http://localhost.

Finally run the tests from the root of the project:

pytest --cov pyxnat

See .github/workflows/ci.yml (used for CI) for the full test setup.

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

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

bbrc_pyxnat-1.6.4.post2.tar.gz (94.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bbrc_pyxnat-1.6.4.post2-py3-none-any.whl (118.1 kB view details)

Uploaded Python 3

File details

Details for the file bbrc_pyxnat-1.6.4.post2.tar.gz.

File metadata

  • Download URL: bbrc_pyxnat-1.6.4.post2.tar.gz
  • Upload date:
  • Size: 94.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for bbrc_pyxnat-1.6.4.post2.tar.gz
Algorithm Hash digest
SHA256 764d951725e4b6b0f7ccad3b79b5f32c899d7d84dcbebb80e2680cb02d5346c8
MD5 ad2b6ef196fa130b9781b0672b1156b7
BLAKE2b-256 135d12a88bc257543987f70c7fe47401c3681909519a73434574cf7a976e4c17

See more details on using hashes here.

File details

Details for the file bbrc_pyxnat-1.6.4.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for bbrc_pyxnat-1.6.4.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8df8b8adc32049d2cf4e7b086e2464dd034eadeab52ec6b63c73ba1a6f6162
MD5 fcec791e200c6eb362400ea1989983d9
BLAKE2b-256 64ea3ea0a2b06a4162e9bc4419790d061a861b21b229155871a7e9532a048060

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page