A simple Orthanc python plugin based framework to extend Orthanc's feature set with testable python scripts.
Project description
Orthanc Server Extensions
A simple Orthanc python plugin based framework to extend Orthanc’s feature set with testable python scripts. It focusses on integration and orchestration scripts, like study routing, event notifications and audit logging.
Free software: GNU Affero General Public License v3
Documentation: https://orthanc-server-extensions.readthedocs.io.
Features
run (integration) tests for your Orthanc python scripts
currently supports handling of change events
Why this library was written
Improve developer happiness: the development roundtrip is just a little bit long to build, run and test a function, even with Docker. With this library, you can start from the unit tests, move to integration tests, and then deploy the result in the Docker image.
Enable testability: the Orthanc API is provided as a module which is not easy to mock in a clean way. Orthanc server extensions provide a few simple abstractions that keep functions clean and independently testable.
Requests was chosen as a base library to access the Orthanc API, rather than orthanc.RestApi*, because it is well known, developer friendly, and external API access avoids deadlocks in the Python plugin (before this was solved in 3.1).
Running
docker-compose up --build should greet you with ‘orthanc started event handled!’ message and provides the first boilerplate to get started.
Credits
This project would obviously not exist without Orthanc, its documentation and its community.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
3.1.1 (2021-02-11)
Add DICOM auto forwarding sample with retries
3.1.0 (2021-02-07)
Improved logging, aligned log format and levels with Orthanc.
0.1.0 (2021-01-09)
First release on PyPI.
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-server-extensions-3.1.9.tar.gz.
File metadata
- Download URL: orthanc-server-extensions-3.1.9.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12859224c23a69455e76f36eb6b67cd14c30c1adc58c0149950bce7e7ca30381
|
|
| MD5 |
989909b189daaafc29a7b9704fc147b4
|
|
| BLAKE2b-256 |
319b569eae3e174979dd0d06580d403dc4b43ca29c0ca581485df725c0212669
|
File details
Details for the file orthanc_server_extensions-3.1.9-py2.py3-none-any.whl.
File metadata
- Download URL: orthanc_server_extensions-3.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9baaede3bd689fa963696f83f7308e03a4d1453e290c1d7afd389cacdc06f896
|
|
| MD5 |
296d5490318f10e25752d7574ad2e15c
|
|
| BLAKE2b-256 |
9fec6b7b99be39a0723673763c03746128a1b2efb9f7b90f328134c7d9640084
|