Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-beren for openSUSE:Factory checked in at 2021-07-27 14:32:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-beren (Old) and /work/SRC/openSUSE:Factory/.python-beren.new.1899 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-beren" Tue Jul 27 14:32:15 2021 rev:4 rq:908545 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-beren/python-beren.changes 2021-01-19 16:04:03.635548660 +0100 +++ /work/SRC/openSUSE:Factory/.python-beren.new.1899/python-beren.changes 2021-07-27 14:32:38.051450109 +0200 @@ -1,0 +2,6 @@ +Thu Jul 22 19:46:12 UTC 2021 - Axel Braun <axel.br...@gmx.de> + +- version 0.7.1 + * no upstream changelog + +------------------------------------------------------------------- Old: ---- beren-0.7.0.tar.gz New: ---- beren-0.7.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-beren.spec ++++++ --- /var/tmp/diff_new_pack.doPqDY/_old 2021-07-27 14:32:38.611449554 +0200 +++ /var/tmp/diff_new_pack.doPqDY/_new 2021-07-27 14:32:38.615449550 +0200 @@ -1,8 +1,8 @@ # -# spec file for package python-beren +# spec file # # Copyright (c) 2021 SUSE LLC -# Copyright (c) 2019 Dr. Axel Braun <d...@opensuse.org> +# Copyright (c) 2019-2021 Dr. Axel Braun <d...@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,7 @@ %define modname beren Name: python-%{modname} -Version: 0.7.0 +Version: 0.7.1 Release: 0 Summary: Provides a REST client targeted at Orthanc REST API endpoints License: GPL-3.0-or-later ++++++ beren-0.7.0.tar.gz -> beren-0.7.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/PKG-INFO new/beren-0.7.1/PKG-INFO --- old/beren-0.7.0/PKG-INFO 2020-07-26 22:57:20.797431000 +0200 +++ new/beren-0.7.1/PKG-INFO 2021-07-11 23:29:41.249366800 +0200 @@ -1,142 +1,11 @@ Metadata-Version: 2.1 Name: beren -Version: 0.7.0 +Version: 0.7.1 Summary: REST client for Orthanc DICOM servers Home-page: https://github.com/teffalump/beren Author: teffalump Author-email: ch...@teffalump.com License: UNKNOWN -Description: # beren - - [](https://travis-ci.com/teffalump/beren) - [](https://badge.fury.io/py/beren) - - `beren` provides a REST client for [Orthanc](https://www.orthanc-server.com), an open-source DICOM server. - - Built using the excellent [apiron](https://github.com/ithaka/apiron) library. - - ### Install - - Use pip: - - pip install beren - - ### How to use - - Import the client and provide the server details - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - # Patient endpoints - orthanc.get_patients() - orthanc.get_patient(id) - ...and so on - - # Study endpoints - orthanc.get_studies() - orthanc.get_study(id) - ...and so on - - # Series endpoints - orthanc.get_series() - orthanc.get_one_series(id) - ...and so on - - # Instance endpoints - orthanc.get_instances() - orthanc.get_instance(id) - ...and so on - - # Get changes - orthanc.get_changes() - - # Find objects by query - query = {'PatientName': 'Jon*'} - orthanc.find(query, level='Patient', expand=False, limit=2) - - # Get previous queries - orthanc.get_queries() - - There are many other preconfigured endpoints. - - ### Authentication - - Many servers require authentication to utilize their API. Simply provide a valid authentication object when defining the client: - - from requests.auth import HTTPBasicAuth - auth = HTTPBasicAuth('orthanc', 'orthanc') - orthanc = Orthanc('https://test.server.com', auth=auth) - - To override the default authentication, provide a new authentication object when calling the endpoint: - - new_auth = HTTPBasicAuth('new_user', 'new_password') - orthanc.get_patients(auth=auth) - - ### Advanced Configuration - - #### Timeouts - - Some servers are slow (and some methods can be slow). For example, asking for all instances from a server can cause a timeout before the server responds. To - modify the timeout settings, use `apiron`'s `Timeout` class: - - from apiron import Timeout - t = Timeout(read_timeout=6, connection_timeout=1) # Modify the timeout - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - orthanc.get_instances(timeout_spec=t) # Use new timeout - - Increase the read timeout if the endpoint is slow. Increase the connection timeout for slow servers. - - #### Disable Certificate Checks - - To disable TLS certificate checking, use sessions: - - import requests - session = requests.sessions.Session() # New session - session.verify = False # Disable certificate checking - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - orthanc.get_patients(session=session) # Use session - - #### Non-HTTPS endpoints - - The client will warn when using HTTP endpoints. Medical data is particularly sensitive, consequently, strongly consider using HTTPS. - - You can disable the warning using the `warn_insecure` argument: - - from beren import Orthanc - orthanc = Orthanc('http://insecure.endpoint.com', warn_insecure=False) - - ### Examples - - To save an instance file to the local directory: - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - with open('test_file.dcm', 'wb') as dcm: - for chunk in orthanc.get_instance_file(<instance_id>): - dcm.write(chunk) - - To get an archive of a series (DCM files in a zip file): - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - with open('test.zip', 'wb') as z: - for chunk in orthanc.get_series_archive(<instance_id>): - z.write(chunk) - - ### Further help - - - [apiron](https://github.com/ithaka/apiron) - - [Orthanc documentation](https://book.orthanc-server.com) - - [Orthanc OpenAPI](https://api.orthanc-server.com) - - [Orthanc REST API spreadsheet](https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml#) - Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Programming Language :: Python :: 3 @@ -145,3 +14,142 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Description-Content-Type: text/markdown +License-File: LICENSE + +# beren + +[](https://badge.fury.io/py/beren) + +`beren` provides a REST client for [Orthanc](https://www.orthanc-server.com), an open-source DICOM server. + +Built using the excellent [apiron](https://github.com/ithaka/apiron) library. + +### Install + +Use pip: + + pip install beren + +### How to use + +Import the client and provide the server details + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + # Patient endpoints + orthanc.get_patients() + orthanc.get_patient(id) + ...and so on + + # Study endpoints + orthanc.get_studies() + orthanc.get_study(id) + ...and so on + + # Series endpoints + orthanc.get_series() + orthanc.get_one_series(id) + ...and so on + + # Instance endpoints + orthanc.get_instances() + orthanc.get_instance(id) + ...and so on + + # Get changes + orthanc.get_changes() + + # Find objects by query + query = {'PatientName': 'Jon*'} + orthanc.find(query, level='Patient', expand=False, limit=2) + + # Get previous queries + orthanc.get_queries() + +There are many other preconfigured endpoints. + +### Authentication + +Many servers require authentication to utilize their API. Simply provide a valid authentication object when defining the client: + + from requests.auth import HTTPBasicAuth + auth = HTTPBasicAuth('orthanc', 'orthanc') + orthanc = Orthanc('https://test.server.com', auth=auth) + +To override the default authentication, provide a new authentication object when calling the endpoint: + + new_auth = HTTPBasicAuth('new_user', 'new_password') + orthanc.get_patients(auth=auth) + +### Advanced Configuration + +#### Timeouts + +Some servers are slow (and some methods can be slow). For example, asking for all instances from a server can cause a timeout before the server responds. To +modify the timeout settings, use `apiron`'s `Timeout` class: + + from apiron import Timeout + t = Timeout(read_timeout=6, connection_timeout=1) # Modify the timeout + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + orthanc.get_instances(timeout_spec=t) # Use new timeout + +Increase the read timeout if the endpoint is slow. Increase the connection timeout for slow servers. + +#### Disable Certificate Checks + +To disable TLS certificate checking, use sessions: + + import requests + session = requests.sessions.Session() # New session + session.verify = False # Disable certificate checking + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + orthanc.get_patients(session=session) # Use session + +#### Non-HTTPS endpoints + +The client will warn when using HTTP endpoints. Medical data is particularly sensitive, consequently, strongly consider using HTTPS. + +You can disable the warning using the `warn_insecure` argument: + + from beren import Orthanc + orthanc = Orthanc('http://insecure.endpoint.com', warn_insecure=False) + +### Examples + +To save an instance file to the local directory: + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + with open('test_file.dcm', 'wb') as dcm: + for chunk in orthanc.get_instance_file(<instance_id>): + dcm.write(chunk) + +To get an archive of a series (DCM files in a zip file): + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + with open('test.zip', 'wb') as z: + for chunk in orthanc.get_series_archive(<instance_id>): + z.write(chunk) + +### Further help + +- [apiron](https://github.com/ithaka/apiron) +- [Orthanc documentation](https://book.orthanc-server.com) +- [Orthanc OpenAPI](https://api.orthanc-server.com) +- [Orthanc REST API spreadsheet](https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml#) + +### Future goals + +- Asynchronous requests +- Document every function +- Better test coverage + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/README.md new/beren-0.7.1/README.md --- old/beren-0.7.0/README.md 2020-07-26 22:44:48.000000000 +0200 +++ new/beren-0.7.1/README.md 2021-07-11 23:29:32.000000000 +0200 @@ -1,6 +1,5 @@ # beren -[](https://travis-ci.com/teffalump/beren) [](https://badge.fury.io/py/beren) `beren` provides a REST client for [Orthanc](https://www.orthanc-server.com), an open-source DICOM server. @@ -128,3 +127,9 @@ - [Orthanc documentation](https://book.orthanc-server.com) - [Orthanc OpenAPI](https://api.orthanc-server.com) - [Orthanc REST API spreadsheet](https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml#) + +### Future goals + +- Asynchronous requests +- Document every function +- Better test coverage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/beren/VERSION new/beren-0.7.1/beren/VERSION --- old/beren-0.7.0/beren/VERSION 2020-07-26 22:45:00.000000000 +0200 +++ new/beren-0.7.1/beren/VERSION 2021-07-11 23:29:32.000000000 +0200 @@ -1 +1 @@ -0.7.0 +0.7.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/beren/orthanc.py new/beren-0.7.1/beren/orthanc.py --- old/beren-0.7.0/beren/orthanc.py 2020-07-26 22:09:27.000000000 +0200 +++ new/beren-0.7.1/beren/orthanc.py 2021-07-11 23:29:32.000000000 +0200 @@ -763,7 +763,7 @@ return self.series.archive(id_=id_, **kwargs) def get_series_instances(self, id_, **kwargs): - """"Retrieve all the instances of this series in a single REST call + """Retrieve all the instances of this series in a single REST call :param str id_: Series UUID diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/beren.egg-info/PKG-INFO new/beren-0.7.1/beren.egg-info/PKG-INFO --- old/beren-0.7.0/beren.egg-info/PKG-INFO 2020-07-26 22:57:20.000000000 +0200 +++ new/beren-0.7.1/beren.egg-info/PKG-INFO 2021-07-11 23:29:41.000000000 +0200 @@ -1,142 +1,11 @@ Metadata-Version: 2.1 Name: beren -Version: 0.7.0 +Version: 0.7.1 Summary: REST client for Orthanc DICOM servers Home-page: https://github.com/teffalump/beren Author: teffalump Author-email: ch...@teffalump.com License: UNKNOWN -Description: # beren - - [](https://travis-ci.com/teffalump/beren) - [](https://badge.fury.io/py/beren) - - `beren` provides a REST client for [Orthanc](https://www.orthanc-server.com), an open-source DICOM server. - - Built using the excellent [apiron](https://github.com/ithaka/apiron) library. - - ### Install - - Use pip: - - pip install beren - - ### How to use - - Import the client and provide the server details - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - # Patient endpoints - orthanc.get_patients() - orthanc.get_patient(id) - ...and so on - - # Study endpoints - orthanc.get_studies() - orthanc.get_study(id) - ...and so on - - # Series endpoints - orthanc.get_series() - orthanc.get_one_series(id) - ...and so on - - # Instance endpoints - orthanc.get_instances() - orthanc.get_instance(id) - ...and so on - - # Get changes - orthanc.get_changes() - - # Find objects by query - query = {'PatientName': 'Jon*'} - orthanc.find(query, level='Patient', expand=False, limit=2) - - # Get previous queries - orthanc.get_queries() - - There are many other preconfigured endpoints. - - ### Authentication - - Many servers require authentication to utilize their API. Simply provide a valid authentication object when defining the client: - - from requests.auth import HTTPBasicAuth - auth = HTTPBasicAuth('orthanc', 'orthanc') - orthanc = Orthanc('https://test.server.com', auth=auth) - - To override the default authentication, provide a new authentication object when calling the endpoint: - - new_auth = HTTPBasicAuth('new_user', 'new_password') - orthanc.get_patients(auth=auth) - - ### Advanced Configuration - - #### Timeouts - - Some servers are slow (and some methods can be slow). For example, asking for all instances from a server can cause a timeout before the server responds. To - modify the timeout settings, use `apiron`'s `Timeout` class: - - from apiron import Timeout - t = Timeout(read_timeout=6, connection_timeout=1) # Modify the timeout - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - orthanc.get_instances(timeout_spec=t) # Use new timeout - - Increase the read timeout if the endpoint is slow. Increase the connection timeout for slow servers. - - #### Disable Certificate Checks - - To disable TLS certificate checking, use sessions: - - import requests - session = requests.sessions.Session() # New session - session.verify = False # Disable certificate checking - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - orthanc.get_patients(session=session) # Use session - - #### Non-HTTPS endpoints - - The client will warn when using HTTP endpoints. Medical data is particularly sensitive, consequently, strongly consider using HTTPS. - - You can disable the warning using the `warn_insecure` argument: - - from beren import Orthanc - orthanc = Orthanc('http://insecure.endpoint.com', warn_insecure=False) - - ### Examples - - To save an instance file to the local directory: - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - with open('test_file.dcm', 'wb') as dcm: - for chunk in orthanc.get_instance_file(<instance_id>): - dcm.write(chunk) - - To get an archive of a series (DCM files in a zip file): - - from beren import Orthanc - orthanc = Orthanc('https://example-orthanc-server.com') - - with open('test.zip', 'wb') as z: - for chunk in orthanc.get_series_archive(<instance_id>): - z.write(chunk) - - ### Further help - - - [apiron](https://github.com/ithaka/apiron) - - [Orthanc documentation](https://book.orthanc-server.com) - - [Orthanc OpenAPI](https://api.orthanc-server.com) - - [Orthanc REST API spreadsheet](https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml#) - Platform: UNKNOWN Classifier: Development Status :: 4 - Beta Classifier: Programming Language :: Python :: 3 @@ -145,3 +14,142 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) Classifier: Operating System :: OS Independent Description-Content-Type: text/markdown +License-File: LICENSE + +# beren + +[](https://badge.fury.io/py/beren) + +`beren` provides a REST client for [Orthanc](https://www.orthanc-server.com), an open-source DICOM server. + +Built using the excellent [apiron](https://github.com/ithaka/apiron) library. + +### Install + +Use pip: + + pip install beren + +### How to use + +Import the client and provide the server details + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + # Patient endpoints + orthanc.get_patients() + orthanc.get_patient(id) + ...and so on + + # Study endpoints + orthanc.get_studies() + orthanc.get_study(id) + ...and so on + + # Series endpoints + orthanc.get_series() + orthanc.get_one_series(id) + ...and so on + + # Instance endpoints + orthanc.get_instances() + orthanc.get_instance(id) + ...and so on + + # Get changes + orthanc.get_changes() + + # Find objects by query + query = {'PatientName': 'Jon*'} + orthanc.find(query, level='Patient', expand=False, limit=2) + + # Get previous queries + orthanc.get_queries() + +There are many other preconfigured endpoints. + +### Authentication + +Many servers require authentication to utilize their API. Simply provide a valid authentication object when defining the client: + + from requests.auth import HTTPBasicAuth + auth = HTTPBasicAuth('orthanc', 'orthanc') + orthanc = Orthanc('https://test.server.com', auth=auth) + +To override the default authentication, provide a new authentication object when calling the endpoint: + + new_auth = HTTPBasicAuth('new_user', 'new_password') + orthanc.get_patients(auth=auth) + +### Advanced Configuration + +#### Timeouts + +Some servers are slow (and some methods can be slow). For example, asking for all instances from a server can cause a timeout before the server responds. To +modify the timeout settings, use `apiron`'s `Timeout` class: + + from apiron import Timeout + t = Timeout(read_timeout=6, connection_timeout=1) # Modify the timeout + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + orthanc.get_instances(timeout_spec=t) # Use new timeout + +Increase the read timeout if the endpoint is slow. Increase the connection timeout for slow servers. + +#### Disable Certificate Checks + +To disable TLS certificate checking, use sessions: + + import requests + session = requests.sessions.Session() # New session + session.verify = False # Disable certificate checking + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + orthanc.get_patients(session=session) # Use session + +#### Non-HTTPS endpoints + +The client will warn when using HTTP endpoints. Medical data is particularly sensitive, consequently, strongly consider using HTTPS. + +You can disable the warning using the `warn_insecure` argument: + + from beren import Orthanc + orthanc = Orthanc('http://insecure.endpoint.com', warn_insecure=False) + +### Examples + +To save an instance file to the local directory: + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + with open('test_file.dcm', 'wb') as dcm: + for chunk in orthanc.get_instance_file(<instance_id>): + dcm.write(chunk) + +To get an archive of a series (DCM files in a zip file): + + from beren import Orthanc + orthanc = Orthanc('https://example-orthanc-server.com') + + with open('test.zip', 'wb') as z: + for chunk in orthanc.get_series_archive(<instance_id>): + z.write(chunk) + +### Further help + +- [apiron](https://github.com/ithaka/apiron) +- [Orthanc documentation](https://book.orthanc-server.com) +- [Orthanc OpenAPI](https://api.orthanc-server.com) +- [Orthanc REST API spreadsheet](https://docs.google.com/spreadsheets/d/1muKHMIb9Br-59wfaQbDeLzAfKYsoWfDSXSmyt6P4EM8/pubhtml#) + +### Future goals + +- Asynchronous requests +- Document every function +- Better test coverage + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/beren.egg-info/requires.txt new/beren-0.7.1/beren.egg-info/requires.txt --- old/beren-0.7.0/beren.egg-info/requires.txt 2020-07-26 22:57:20.000000000 +0200 +++ new/beren-0.7.1/beren.egg-info/requires.txt 2021-07-11 23:29:41.000000000 +0200 @@ -1 +1 @@ -apiron==5.1.0 +apiron==6.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/beren-0.7.0/requirements.txt new/beren-0.7.1/requirements.txt --- old/beren-0.7.0/requirements.txt 2020-07-26 21:48:08.000000000 +0200 +++ new/beren-0.7.1/requirements.txt 2021-07-11 23:29:32.000000000 +0200 @@ -1 +1 @@ -apiron==5.1.0 +apiron==6.0.0