Mock for the python orthanc plugin intended for development
Project description
orthanc-mock
Mock for the python orthanc plugin intended for development.
This library is intended to be used while developing python scripts with the Python plugin for Orthanc. It simply provides the functions/classes/enums signatures for the autocomplete.
Installation
pip install orthanc-mock
Usage
Note that the orthanc-mock library should be installed as a
dev dependency so that it does not interfere while running inside Orthanc.
import orthanc
# Functions are accessible
orthanc.RegisterRestCallback()
orthanc.RestApiGet()
...
# Classes are as well
orthanc.DicomInstance.GetInstanceMetadata()
orthanc.DicomInstance.HasInstanceMetadata()
...
# And the enum
orthanc.ChangeType.NEW_STUDY
orthanc.ChangeType.ORTHANC_STOPPED
...
Credits
The orthanc.py has been generated from the data/python-sdk.txt file,
which is from the Python Orthanc Plugin
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orthanc_mock-0.1.0.tar.gz.
File metadata
- Download URL: orthanc_mock-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b229bcf43c18d245b9b864c71c49d15155840b11a1a0ab0125eb8b213cb55179
|
|
| MD5 |
5c53edf9d29b31fd6fa7ff1a7070be2e
|
|
| BLAKE2b-256 |
39fe9ddd3e8a5dab10ed567ca8d763f0c3e2ed3ab7e5df07f6f9c0d25071ca96
|
File details
Details for the file orthanc_mock-0.1.0-py3-none-any.whl.
File metadata
- Download URL: orthanc_mock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d7cf6e075c13746026417e7f617fd8cd1fbd9834c45078a0a5354c56bf975fc
|
|
| MD5 |
269cf8910facf113d3068d799b7dc637
|
|
| BLAKE2b-256 |
fe59d69d7ae8e319ba41027f0b76c96479de3f3257f0a02276a937d3d665901f
|