CopyXnat is a python utility for copying XNAT projects from one XNAT server to another
Project description
CopyXnat
A utility for downloading or copying projects between XNAT servers.
This is a prerelease. It may not work as intended, and may lead to data loss. Please use caution when running on production servers
Quick start
Please make sure your XNAT archive and PostgreSQL database are fully backed up before running CopyXnat on a real XNAT server. CopyXnat may modify and overwrite your data.
Install and run using pip (Python 3.6+)
You need Python 3.6 or later. It is recommended that you do not modify your system Python installation. You can use tools such as Homebrew (macOS) to install the latest python version without affecting your system python.
pip install copyxnat --upgrade
copyxnat --help
Install and run using Docker
If you have Docker installed you can run CopyXnat in a container.
Note that interactive mode (-it
) is generally required in order to enter server passwords where
prompted.
docker run -it tomdoel/copyxnat --help
Running from your own code
You can import and run The recommended approach is to install the module with pip
and then import from your code
from copyxnat.xnat.run_command import run_command
result = run_command(command_string=`show`,
src_host=src_host,
src_user=src_user,
src_pw=src_pw,
project_filter=None)
Local development: running the command-line utility directly
You can run directly from the source code. This is primarily useful if you are modifying the code.
pip install -r requirements-dev.txt
python copyxnat --help
Links
Authors
- Tom Doel
Copyright
Copyright 2021 Tom Doel
License
This project is released under the MIT License. Please see the license file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for copyxnat-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b590a1429091683316b28aa2033ee09ecde15cfe61ccb0df775ff0d7bbbc4d |
|
MD5 | bb9f1a21a8acb49a34b4d2be8edb4b14 |
|
BLAKE2b-256 | 4d9ced883cc718af675d40dcb9c21ea20f110f4b604931c6fbbd51920f7b692f |