Python Orthanc Tools
Project description
python-orthanc-tools
A set of python tools to ease Orthanc scripting.
Functionalities are very limited now ! Backward compat will break a lot in the near future !
Installation
pip3 install orthanc-tools
cloning an Orthanc to another
from a python script:
from orthanc_tools import OrthancCloner
from orthanc_api_client import OrthancApiClient
orthanc_a = OrthancApiClient('http://localhost:8042', user='orthanc', pwd='orthanc')
orthanc_b = OrthancApiClient('http://localhost:8043', user='orthanc', pwd='orthanc')
cloner = OrthancCloner(source=orthanc_a, destination=orthanc_b)
cloner.execute(existing_changes_only=False)
from a shell:
python3 -m orthanc_tools.orthanc_cloner --source_url=http://192.168.0.10:8042 --source_user=user --source_pwd=pwd --dest_url=http://192.168.0.10:8042 --dest_user=user --dest_pwd=pwd
import files from a folder from a Docker container
$ docker exec -it xxxx bash
/# pip3 install orthanc-tools
/# python3 -m orthanc_tools.orthanc_folder_importer --folder=/import --url=http://localhost:8042 --user=test --pwd=test --skip_extensions=.cne,.bmp,.ini
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 Distribution
orthanc_tools-0.1.1.tar.gz
(10.2 kB
view hashes)
Built Distribution
Close
Hashes for orthanc_tools-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40db35a74eb007046afdb3fa9a0eeb8ec072be2d936c19829717a0f4c03075f6 |
|
MD5 | c37c03b563b16451091fb72852b043a2 |
|
BLAKE2b-256 | 2f6ddc818adc970b2cc136162d5a0b935ec5bf33e2288d46f4e02fea9a701a16 |