To find the python module: OrthancClient, OrthancThreadedClient

Hello guys,
I’m testing the object storage plugin and got to know this useful performance evaluation: performance-tests. I’m planning to re-use the test script tester.py in my test environment. But I can’t find those two modules used in the script.

File “tester.py”, line 1, in
from orthancRestApi import OrthancClient, OrthancThreadedClient
ModuleNotFoundError: No module named ‘orthancRestApi’

Can anyone help? Thanks a lot.

Regards,
Jianghua

Hi,

This python code comes from here: https://bitbucket.org/osimis/orthanc-setup-samples/src/master/docker/performance-tests/tester/requirements.txt
However, this python module has never been officially released and is discontinued. However, if you just want to run the same tests, it should still work.

Note that we have been developing the same kind of python api client here: https://github.com/orthanc-team/python-orthanc-api-client but it’s not yet toroughly documented and still “in progress”.

Best regards,

Alain.

Alain,thanks. Very helpful.

Best regards,
Jianghua

在2023年2月14日星期二 UTC+8 20:18:30 写道: