Skip to main content

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

Metadata

Release files for orthanc-mock 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orthanc-mock 0.1.0
File Size Uploaded Provenance Actions
orthanc_mock-0.1.0.tar.gz 5.6 kB Without provenance Details for orthanc_mock-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orthanc-mock 0.1.0
File Interpreter ABI Platform Actions
orthanc_mock-0.1.0-py3-none-any.whl Python 3 none any Details for orthanc_mock-0.1.0-py3-none-any.whl

Total release size: 11.5 kB

Release files / orthanc_mock-0.1.0.tar.gz

Download URL orthanc_mock-0.1.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b229bcf43c18d245b9b864c71c49d15155840b11a1a0ab0125eb8b213cb55179
BLAKE2b-256 checksum
How to use checksums
39fe9ddd3e8a5dab10ed567ca8d763f0c3e2ed3ab7e5df07f6f9c0d25071ca96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64

Release files / orthanc_mock-0.1.0-py3-none-any.whl

Download URL orthanc_mock-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d7cf6e075c13746026417e7f617fd8cd1fbd9834c45078a0a5354c56bf975fc
BLAKE2b-256 checksum
How to use checksums
fe59d69d7ae8e319ba41027f0b76c96479de3f3257f0a02276a937d3d665901f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/6.4.12-200.fc38.x86_64

Security for orthanc-mock 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page