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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for orthanc_mock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b229bcf43c18d245b9b864c71c49d15155840b11a1a0ab0125eb8b213cb55179
MD5 5c53edf9d29b31fd6fa7ff1a7070be2e
BLAKE2b-256 39fe9ddd3e8a5dab10ed567ca8d763f0c3e2ed3ab7e5df07f6f9c0d25071ca96

See more details on using hashes here.

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

Hashes for orthanc_mock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7cf6e075c13746026417e7f617fd8cd1fbd9834c45078a0a5354c56bf975fc
MD5 269cf8910facf113d3068d799b7dc637
BLAKE2b-256 fe59d69d7ae8e319ba41027f0b76c96479de3f3257f0a02276a937d3d665901f

See more details on using hashes here.

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