Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orthanc_mock-0.1.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

orthanc_mock-0.1.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

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