Skip to content

Commit 26f4c3f

Browse files
committed
Further unify interfaces of web and file clients
1 parent 3678e53 commit 26f4c3f

File tree

7 files changed

+1223
-894
lines changed

7 files changed

+1223
-894
lines changed

src/dicomweb_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.56.3'
1+
__version__ = '0.56.4'
22

33
from dicomweb_client.api import DICOMwebClient, DICOMfileClient
44
from dicomweb_client.protocol import DICOMClient

src/dicomweb_client/ext/gcp/uri.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
@dataclasses.dataclass(eq=True, frozen=True)
2929
class GoogleCloudHealthcareURL:
30-
"""Base URL container for DICOM Stores under the `Google Cloud Healthcare API`_.
30+
"""URL container for DICOM Stores under the `Google Cloud Healthcare API`_.
3131
3232
This class facilitates the parsing and creation of :py:attr:`URI.base_url`
3333
corresponding to DICOMweb API Service URLs under the v1_ API. The URLs are
@@ -37,24 +37,26 @@ class GoogleCloudHealthcareURL:
3737
.. _Google Cloud Healthcare API: https://cloud.google.com/healthcare
3838
.. _v1: https://cloud.google.com/healthcare/docs/how-tos/transition-guide
3939
40-
Attributes:
41-
project_id: str
42-
The ID of the `GCP Project
43-
<https://cloud.google.com/healthcare/docs/concepts/projects-datasets-data-stores#projects>`_
44-
that contains the DICOM Store.
45-
location: str
46-
The `Region name
47-
<https://cloud.google.com/healthcare/docs/concepts/regions>`_ of the
48-
geographic location configured for the Dataset that contains the
49-
DICOM Store.
50-
dataset_id: str
51-
The ID of the `Dataset
52-
<https://cloud.google.com/healthcare/docs/concepts/projects-datasets-data-stores#datasets_and_data_stores>`_
53-
that contains the DICOM Store.
54-
dicom_store_id: str
55-
The ID of the `DICOM Store
56-
<https://cloud.google.com/healthcare/docs/concepts/dicom#dicom_stores>`_.
57-
"""
40+
Attributes
41+
----------
42+
project_id: str
43+
The ID of the `GCP Project
44+
<https://cloud.google.com/healthcare/docs/concepts/projects-datasets-data-stores#projects>`_
45+
that contains the DICOM Store.
46+
location: str
47+
The `Region name
48+
<https://cloud.google.com/healthcare/docs/concepts/regions>`_ of the
49+
geographic location configured for the Dataset that contains the
50+
DICOM Store.
51+
dataset_id: str
52+
The ID of the `Dataset
53+
<https://cloud.google.com/healthcare/docs/concepts/projects-datasets-data-stores#datasets_and_data_stores>`_
54+
that contains the DICOM Store.
55+
dicom_store_id: str
56+
The ID of the `DICOM Store
57+
<https://cloud.google.com/healthcare/docs/concepts/dicom#dicom_stores>`_.
58+
59+
""" # noqa: E501
5860
project_id: str
5961
location: str
6062
dataset_id: str
@@ -84,7 +86,7 @@ def __str__(self) -> str:
8486

8587
@classmethod
8688
def from_string(cls, base_url: str) -> 'GoogleCloudHealthcareURL':
87-
"""Creates an instance from ``base_url``.
89+
"""Create an instance from `base_url`.
8890
8991
Parameters
9092
----------

0 commit comments

Comments
 (0)