rs-client-libraries 0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- config/staging_templates/README.md +17 -0
- config/staging_templates/yaml/additionalParameter.yaml +30 -0
- config/staging_templates/yaml/bbox.yaml +34 -0
- config/staging_templates/yaml/binaryInputValue.yaml +15 -0
- config/staging_templates/yaml/confClasses.yaml +22 -0
- config/staging_templates/yaml/descriptionType.yaml +36 -0
- config/staging_templates/yaml/dpr_openapi_schema.yaml +223 -0
- config/staging_templates/yaml/exception.yaml +31 -0
- config/staging_templates/yaml/execute.yaml +34 -0
- config/staging_templates/yaml/format.yaml +25 -0
- config/staging_templates/yaml/inlineOrRefData.yaml +18 -0
- config/staging_templates/yaml/inputDescription.yaml +32 -0
- config/staging_templates/yaml/inputValue.yaml +17 -0
- config/staging_templates/yaml/inputValueNoObject.yaml +22 -0
- config/staging_templates/yaml/jobControlOptions.yaml +19 -0
- config/staging_templates/yaml/jobList.yaml +27 -0
- config/staging_templates/yaml/landingPage.yaml +28 -0
- config/staging_templates/yaml/link.yaml +31 -0
- config/staging_templates/yaml/metadata.yaml +22 -0
- config/staging_templates/yaml/output.yaml +20 -0
- config/staging_templates/yaml/outputDescription.yaml +22 -0
- config/staging_templates/yaml/process.yaml +23 -0
- config/staging_templates/yaml/processList.yaml +27 -0
- config/staging_templates/yaml/processSummary.yaml +37 -0
- config/staging_templates/yaml/qualifiedInputValue.yaml +22 -0
- config/staging_templates/yaml/reference.yaml +21 -0
- config/staging_templates/yaml/results.yaml +16 -0
- config/staging_templates/yaml/schema.yaml +144 -0
- config/staging_templates/yaml/staging_openapi_schema.yaml +223 -0
- config/staging_templates/yaml/statusCode.yaml +22 -0
- config/staging_templates/yaml/statusInfo.yaml +52 -0
- config/staging_templates/yaml/subscriber.yaml +33 -0
- config/staging_templates/yaml/transmissionMode.yaml +19 -0
- rs_client/__init__.py +18 -0
- rs_client/ogcapi/__init__.py +15 -0
- rs_client/ogcapi/dpr_client.py +231 -0
- rs_client/ogcapi/ogcapi_client.py +282 -0
- rs_client/ogcapi/staging_client.py +178 -0
- rs_client/rs_client.py +277 -0
- rs_client/stac/__init__.py +15 -0
- rs_client/stac/auxip_client.py +70 -0
- rs_client/stac/cadip_client.py +70 -0
- rs_client/stac/catalog_client.py +479 -0
- rs_client/stac/stac_base.py +313 -0
- rs_client_libraries-0.2.dist-info/LICENSE +201 -0
- rs_client_libraries-0.2.dist-info/METADATA +44 -0
- rs_client_libraries-0.2.dist-info/RECORD +62 -0
- rs_client_libraries-0.2.dist-info/WHEEL +4 -0
- rs_common/__init__.py +20 -0
- rs_common/config.py +69 -0
- rs_common/init_opentelemetry.py +250 -0
- rs_common/logging.py +107 -0
- rs_common/prefect_utils.py +407 -0
- rs_common/utils.py +70 -0
- rs_workflows/__init__.py +15 -0
- rs_workflows/auxip_flow.py +70 -0
- rs_workflows/cadip_flow.py +69 -0
- rs_workflows/catalog_flow.py +71 -0
- rs_workflows/dpr_flow.py +272 -0
- rs_workflows/flow_utils.py +127 -0
- rs_workflows/on_demand_processing.py +243 -0
- rs_workflows/staging_flow.py +78 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# Copyright 2024 CS Group
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""StacBase class implementation."""
|
|
16
|
+
|
|
17
|
+
import logging
|
|
18
|
+
from collections.abc import Callable, Iterator
|
|
19
|
+
from functools import lru_cache, wraps
|
|
20
|
+
from typing import Any, cast
|
|
21
|
+
|
|
22
|
+
import requests
|
|
23
|
+
from pystac import Collection, Item, ItemCollection
|
|
24
|
+
from pystac_client import Client
|
|
25
|
+
from pystac_client.collection_client import CollectionClient
|
|
26
|
+
from pystac_client.exceptions import APIError
|
|
27
|
+
from pystac_client.stac_api_io import StacApiIO, Timeout
|
|
28
|
+
from requests import Request
|
|
29
|
+
|
|
30
|
+
from rs_client.rs_client import APIKEY_HEADER, TIMEOUT, RsClient
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def handle_api_error(func):
|
|
34
|
+
"""
|
|
35
|
+
Decorator to handle APIError exceptions in methods that interact with pystac-client.
|
|
36
|
+
|
|
37
|
+
This decorator wraps methods of the StacBase class that call `self.ps_client`,
|
|
38
|
+
catching `APIError` exceptions and logging them using the instance's `logger`.
|
|
39
|
+
|
|
40
|
+
If the `logger` attribute is not found or is `None`, it falls back to printing the error.
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
func (Callable): The method to be wrapped.
|
|
44
|
+
|
|
45
|
+
Returns:
|
|
46
|
+
Callable: The wrapped method that catches and logs `APIError` exceptions,
|
|
47
|
+
then raises a RuntimeError.
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
@wraps(func)
|
|
51
|
+
def wrapper(self, *args, **kwargs):
|
|
52
|
+
try:
|
|
53
|
+
return func(self, *args, **kwargs)
|
|
54
|
+
except APIError as e:
|
|
55
|
+
error_message = f"Pystac client returned exception: {e}"
|
|
56
|
+
if hasattr(self, "logger") and self.logger:
|
|
57
|
+
self.logger.exception(error_message)
|
|
58
|
+
else:
|
|
59
|
+
print(error_message) # Fallback logging
|
|
60
|
+
raise RuntimeError(error_message) from e
|
|
61
|
+
|
|
62
|
+
return wrapper
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class StacBase(RsClient):
|
|
66
|
+
"""
|
|
67
|
+
Base class for interacting with a STAC (SpatioTemporal Asset Catalog) API using pystac-client.
|
|
68
|
+
|
|
69
|
+
This class provides methods to retrieve STAC collections, items, queryables, and perform searches.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
@handle_api_error
|
|
73
|
+
def __init__( # pylint: disable=too-many-branches, too-many-arguments, too-many-positional-arguments
|
|
74
|
+
self,
|
|
75
|
+
rs_server_href: str | None,
|
|
76
|
+
rs_server_api_key: str | None = None,
|
|
77
|
+
owner_id: str | None = None,
|
|
78
|
+
logger: logging.Logger | None = None,
|
|
79
|
+
stac_href: str | None = None, # Flag to enable pystac_client for specific subclasses
|
|
80
|
+
headers: dict[str, str] | None = None,
|
|
81
|
+
parameters: dict[str, Any] | None = None,
|
|
82
|
+
ignore_conformance: bool | None = None,
|
|
83
|
+
modifier: Callable[[Collection | Item | ItemCollection | dict[Any, Any]], None] | None = None,
|
|
84
|
+
request_modifier: Callable[[Request], Request | None] | None = None,
|
|
85
|
+
stac_io: StacApiIO | None = None,
|
|
86
|
+
timeout: Timeout | None = TIMEOUT,
|
|
87
|
+
):
|
|
88
|
+
"""
|
|
89
|
+
Initialize the StacBase instance.
|
|
90
|
+
|
|
91
|
+
Args:
|
|
92
|
+
rs_server_href (str | None): URL of the RS server.
|
|
93
|
+
rs_server_api_key (str | None, optional): API key for authentication.
|
|
94
|
+
owner_id (str | None, optional): Owner identifier.
|
|
95
|
+
logger (logging.Logger | None, optional): Logger instance.
|
|
96
|
+
stac_href (str | None): STAC API URL.
|
|
97
|
+
headers (Optional[Dict[str, str]], optional): HTTP headers.
|
|
98
|
+
parameters (Optional[Dict[str, Any]], optional): Additional query parameters.
|
|
99
|
+
ignore_conformance (Optional[bool], optional): Whether to ignore conformance.
|
|
100
|
+
modifier (Callable, optional): Function to modify collection, item, or item collection.
|
|
101
|
+
request_modifier (Optional[Callable[[Request], Union[Request, None]]], optional):
|
|
102
|
+
Function to modify requests.
|
|
103
|
+
stac_io (Optional[StacApiIO], optional): Custom STAC API I/O handler.
|
|
104
|
+
timeout (Optional[Timeout], optional): Request timeout.
|
|
105
|
+
"""
|
|
106
|
+
# call RsClient init
|
|
107
|
+
super().__init__(rs_server_href, rs_server_api_key, owner_id, logger)
|
|
108
|
+
|
|
109
|
+
# Initialize pystac_client.Client only if required (for CadipClient, AuxipClient, StacClient)
|
|
110
|
+
if not stac_href:
|
|
111
|
+
raise RuntimeError("No stac href provided")
|
|
112
|
+
# pystac_client may throw APIError exception this is handled by the decorator handle_api_error
|
|
113
|
+
self.stac_href = stac_href
|
|
114
|
+
if rs_server_api_key:
|
|
115
|
+
if headers is None:
|
|
116
|
+
headers = {}
|
|
117
|
+
headers[APIKEY_HEADER] = rs_server_api_key
|
|
118
|
+
if stac_io is None:
|
|
119
|
+
stac_io = StacApiIO( # This is what is done in pystac_client/client.py::from_file
|
|
120
|
+
headers=headers,
|
|
121
|
+
parameters=parameters,
|
|
122
|
+
request_modifier=request_modifier,
|
|
123
|
+
timeout=timeout,
|
|
124
|
+
)
|
|
125
|
+
# Save the OAuth2 authentication cookie in the pystac client cookies
|
|
126
|
+
if self.rs_server_oauth2_cookie:
|
|
127
|
+
stac_io.session.cookies.set("session", self.rs_server_oauth2_cookie)
|
|
128
|
+
self.ps_client = Client.open(
|
|
129
|
+
stac_href,
|
|
130
|
+
headers=headers,
|
|
131
|
+
parameters=parameters,
|
|
132
|
+
ignore_conformance=ignore_conformance,
|
|
133
|
+
modifier=modifier,
|
|
134
|
+
request_modifier=request_modifier,
|
|
135
|
+
stac_io=stac_io,
|
|
136
|
+
timeout=timeout,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
################################
|
|
140
|
+
# Specific STAC implementation #
|
|
141
|
+
################################
|
|
142
|
+
@handle_api_error
|
|
143
|
+
def get_landing(self) -> dict:
|
|
144
|
+
"""
|
|
145
|
+
Retrieve the STAC API landing page.
|
|
146
|
+
|
|
147
|
+
Returns:
|
|
148
|
+
dict: The landing page response.
|
|
149
|
+
|
|
150
|
+
Raises:
|
|
151
|
+
RuntimeError: If an API error occurs.
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return self.ps_client.to_dict()
|
|
155
|
+
|
|
156
|
+
@handle_api_error
|
|
157
|
+
def get_collections(self) -> Iterator[Collection]:
|
|
158
|
+
"""
|
|
159
|
+
Retrieve available STAC collections the user has permission to access.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Iterator[Collection]: An iterator over available collections.
|
|
163
|
+
|
|
164
|
+
Raises:
|
|
165
|
+
RuntimeError: If an API error occurs.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
# Get all the available collections
|
|
169
|
+
return self.ps_client.get_collections()
|
|
170
|
+
|
|
171
|
+
@lru_cache
|
|
172
|
+
@handle_api_error
|
|
173
|
+
def get_collection(self, collection_id: str) -> Collection | CollectionClient:
|
|
174
|
+
"""
|
|
175
|
+
Retrieve a specific STAC collection by ID.
|
|
176
|
+
|
|
177
|
+
Args:
|
|
178
|
+
collection_id (str): The ID of the collection.
|
|
179
|
+
|
|
180
|
+
Returns:
|
|
181
|
+
Union[Collection, CollectionClient]: The requested collection.
|
|
182
|
+
|
|
183
|
+
Raises:
|
|
184
|
+
RuntimeError: If an API error occurs.
|
|
185
|
+
"""
|
|
186
|
+
return self.ps_client.get_collection(collection_id)
|
|
187
|
+
|
|
188
|
+
@handle_api_error
|
|
189
|
+
def get_items(self, collection_id: str, items_ids: list[str] | None = None) -> Iterator["Item"]:
|
|
190
|
+
"""
|
|
191
|
+
Retrieve all items or specific items from a collection.
|
|
192
|
+
|
|
193
|
+
Args:
|
|
194
|
+
collection_id (str): The ID of the collection.
|
|
195
|
+
items_ids (Union[str, None], optional): Specific item ID(s) to retrieve.
|
|
196
|
+
|
|
197
|
+
Returns:
|
|
198
|
+
Iterator[Item]: An iterator over retrieved items.
|
|
199
|
+
Raises:
|
|
200
|
+
RuntimeError: If an API error occurs.
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
# Retrieve the collection
|
|
204
|
+
collection = self.ps_client.get_collection(collection_id)
|
|
205
|
+
# Retrieve a list of items
|
|
206
|
+
if items_ids:
|
|
207
|
+
self.logger.info(f"Retrieving specific items from collection '{collection_id}'.")
|
|
208
|
+
return collection.get_items(*items_ids)
|
|
209
|
+
# Retrieve all items
|
|
210
|
+
self.logger.info(f"Retrieving all items from collection '{collection_id}'.")
|
|
211
|
+
return collection.get_items()
|
|
212
|
+
|
|
213
|
+
@handle_api_error
|
|
214
|
+
def get_item(self, collection_id: str, item_id: str) -> Item | None:
|
|
215
|
+
"""
|
|
216
|
+
Retrieve a specific item from a collection.
|
|
217
|
+
|
|
218
|
+
Args:
|
|
219
|
+
collection_id (str): The collection ID.
|
|
220
|
+
item_id (str): The item ID.
|
|
221
|
+
|
|
222
|
+
Returns:
|
|
223
|
+
Item | None: The retrieved item or None if not found.
|
|
224
|
+
|
|
225
|
+
Raises:
|
|
226
|
+
RuntimeError: If an API error occurs.
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
# Retrieve the collection
|
|
230
|
+
collection = self.ps_client.get_collection(collection_id)
|
|
231
|
+
item = collection.get_item(item_id)
|
|
232
|
+
if not item:
|
|
233
|
+
self.logger.error(f"Item with ID '{item_id}' not found in collection '{collection_id}'.")
|
|
234
|
+
return item
|
|
235
|
+
|
|
236
|
+
@handle_api_error
|
|
237
|
+
def get_collection_queryables(self, collection_id) -> dict[str, Any]:
|
|
238
|
+
"""
|
|
239
|
+
Retrieve queryable fields for a specific collection.
|
|
240
|
+
|
|
241
|
+
Args:
|
|
242
|
+
collection_id (str): The collection ID.
|
|
243
|
+
|
|
244
|
+
Returns:
|
|
245
|
+
Dict[str, Any]: Dictionary of queryable fields.
|
|
246
|
+
|
|
247
|
+
Raises:
|
|
248
|
+
RuntimeError: If an API error occurs.
|
|
249
|
+
"""
|
|
250
|
+
|
|
251
|
+
return self.ps_client.get_merged_queryables([collection_id])
|
|
252
|
+
|
|
253
|
+
def get_queryables(self) -> dict[str, Any]:
|
|
254
|
+
"""
|
|
255
|
+
Retrieve queryable fields for all collections in the STAC API. These are the available terms for
|
|
256
|
+
usage when writing filter expressions in /search endpoint for all the collections
|
|
257
|
+
NOTE: the pystac-client library doesn't have a function for this action, so the direct call of
|
|
258
|
+
the endpoint is needed
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
Dict[str, Any]: Dictionary of queryable fields.
|
|
262
|
+
|
|
263
|
+
Raises:
|
|
264
|
+
RuntimeError: If an exception occurs from the request level.
|
|
265
|
+
"""
|
|
266
|
+
try:
|
|
267
|
+
href_queryables = self.stac_href + "queryables"
|
|
268
|
+
response = self.http_session.get(
|
|
269
|
+
href_queryables,
|
|
270
|
+
**self.apikey_headers,
|
|
271
|
+
timeout=TIMEOUT,
|
|
272
|
+
)
|
|
273
|
+
except (requests.exceptions.RequestException, requests.exceptions.Timeout) as e:
|
|
274
|
+
self.logger.exception(f"Could not get the response from the endpoint {href_queryables}: {e}")
|
|
275
|
+
raise RuntimeError(
|
|
276
|
+
f"Could not get the response from the endpoint {href_queryables}",
|
|
277
|
+
) from e
|
|
278
|
+
if not response.ok:
|
|
279
|
+
raise RuntimeError(f"Could not get queryables from {href_queryables}")
|
|
280
|
+
try:
|
|
281
|
+
json_data = response.json()
|
|
282
|
+
return cast(dict[str, Any], json_data) # Explicitly cast to Dict[str, Any]
|
|
283
|
+
except ValueError as e:
|
|
284
|
+
raise RuntimeError(f"Invalid JSON response from {href_queryables}") from e
|
|
285
|
+
|
|
286
|
+
@handle_api_error
|
|
287
|
+
def search( # pylint: disable=too-many-arguments, too-many-positional-arguments
|
|
288
|
+
self,
|
|
289
|
+
**kwargs,
|
|
290
|
+
) -> ItemCollection | None:
|
|
291
|
+
"""
|
|
292
|
+
Perform a STAC search using query parameters.
|
|
293
|
+
|
|
294
|
+
Returns:
|
|
295
|
+
ItemCollection | None: Retrieved item collection or None if not found.
|
|
296
|
+
|
|
297
|
+
Raises:
|
|
298
|
+
RuntimeError: If an API error occurs.
|
|
299
|
+
"""
|
|
300
|
+
kwargs.pop("owner_id", None)
|
|
301
|
+
kwargs["datetime"] = kwargs.pop("timestamp", None)
|
|
302
|
+
kwargs["filter"] = kwargs.pop("stac_filter", None)
|
|
303
|
+
|
|
304
|
+
try:
|
|
305
|
+
items_search = self.ps_client.search(**kwargs)
|
|
306
|
+
|
|
307
|
+
return items_search.item_collection()
|
|
308
|
+
except NotImplementedError:
|
|
309
|
+
self.logger.exception(
|
|
310
|
+
"The API does not conform to the STAC API Item Search spec"
|
|
311
|
+
"or does not have a link with a 'rel' type of 'search' ",
|
|
312
|
+
)
|
|
313
|
+
return None
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: rs-client-libraries
|
|
3
|
+
Version: 0.2
|
|
4
|
+
Summary: Copernicus Sentinel rs-client library and processing workflows.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Keywords: stac,copernicus,sentinel,processing
|
|
7
|
+
Author: ESA under contract with Airbus and CS
|
|
8
|
+
Author-email: ops_coprs@airbus.com
|
|
9
|
+
Requires-Python: >=3.11,<4.0
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Framework :: OpenTelemetry
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Dist: cachetools (>=5.5.2,<6.0.0)
|
|
22
|
+
Requires-Dist: click (==8.1.8)
|
|
23
|
+
Requires-Dist: openapi-core (>=0.19.5,<0.20.0)
|
|
24
|
+
Requires-Dist: opentelemetry-distro (>=0.57b0,<0.58)
|
|
25
|
+
Requires-Dist: opentelemetry-exporter-otlp (>=1.36.0,<2.0.0)
|
|
26
|
+
Requires-Dist: opentelemetry-instrumentation-aws-lambda (>=0.57b0,<0.58)
|
|
27
|
+
Requires-Dist: opentelemetry-test-utils (>=0.57b0,<0.58)
|
|
28
|
+
Requires-Dist: prefect[aws] (==3.2.13)
|
|
29
|
+
Requires-Dist: protobuf (>=5.29.5)
|
|
30
|
+
Requires-Dist: pystac (>=1.13.0,<2.0.0)
|
|
31
|
+
Requires-Dist: pystac-client (>=0.9.0,<0.10.0)
|
|
32
|
+
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
|
33
|
+
Requires-Dist: python-logging-loki (>=0.3.1,<0.4.0)
|
|
34
|
+
Requires-Dist: requests (>=2.32.4,<3.0.0)
|
|
35
|
+
Requires-Dist: stac-pydantic (>=3.4.0,<4.0.0)
|
|
36
|
+
Requires-Dist: urllib3 (>=2.5.0)
|
|
37
|
+
Project-URL: Documentation, https://home.rs-python.eu/rs-documentation/rs-client-libraries/docs/doc/
|
|
38
|
+
Project-URL: Homepage, https://home.rs-python.eu/
|
|
39
|
+
Project-URL: Repository, https://github.com/RS-PYTHON/rs-client-libraries
|
|
40
|
+
Description-Content-Type: text/plain
|
|
41
|
+
|
|
42
|
+
# rs-client-libraries
|
|
43
|
+
This repository contains all the prefect flows allowing to build Copernicus processing chains.
|
|
44
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
config/staging_templates/README.md,sha256=psTMxFvUCbZ-i7BgXZ67aF2iBRQDNORYw2UJMfwKEJI,941
|
|
2
|
+
config/staging_templates/yaml/additionalParameter.yaml,sha256=nOuNOIcD8huLnTtLaB7DlTpEydUVdGXa5IKhC9kgi-Q,872
|
|
3
|
+
config/staging_templates/yaml/bbox.yaml,sha256=Ty4kKB0xKZmaKLXgO8BUaFr77i2PJiHpn_t7XYTAJQw,981
|
|
4
|
+
config/staging_templates/yaml/binaryInputValue.yaml,sha256=JKrAljX_b79KJB3A3W2T5ThSTbbDxsKDEpyjrfhf504,598
|
|
5
|
+
config/staging_templates/yaml/confClasses.yaml,sha256=PVPgqOwmLnLTd8GxlOBqrLEdI4wV4PWp8-7m_saWxsQ,760
|
|
6
|
+
config/staging_templates/yaml/descriptionType.yaml,sha256=V7OSL7ZjeSCG_ReSNGnEnBOu8cuGIRxkMRYDqq1k5lc,998
|
|
7
|
+
config/staging_templates/yaml/dpr_openapi_schema.yaml,sha256=Ozuh2OaAkdkFCce5nu7KC8xz-uUYQjL3JfzZlEKot-s,6482
|
|
8
|
+
config/staging_templates/yaml/exception.yaml,sha256=3hI_zZ6DBOGDN65Y_YQL29uKxkjBRV5HPTFlGUpUl_E,861
|
|
9
|
+
config/staging_templates/yaml/execute.yaml,sha256=tRp09mFzZFYMsyWLOOSj4CTOd4cvRyMqlnSpcTsJPhE,956
|
|
10
|
+
config/staging_templates/yaml/format.yaml,sha256=BGEr1VHVM-sv-hS1CxwvHMeiM4qHlUImJ5jS2G268Q4,740
|
|
11
|
+
config/staging_templates/yaml/inlineOrRefData.yaml,sha256=T56DWe7gDyr2_09vx6YzeL-i_IO7saioc210kSVdnxQ,675
|
|
12
|
+
config/staging_templates/yaml/inputDescription.yaml,sha256=2XVCon2c30MV7P4dGbp1P4-oYrITPXIAP0Rmui_1zdA,927
|
|
13
|
+
config/staging_templates/yaml/inputValue.yaml,sha256=sjF2s1H_-vxFc55Y72ILAwwpGDRGNFWB-j0oyf9gNFg,633
|
|
14
|
+
config/staging_templates/yaml/inputValueNoObject.yaml,sha256=7t1p1xfUfzj7xdd2PVXUBko5GFx-70bBaxKUDAtxJAY,722
|
|
15
|
+
config/staging_templates/yaml/jobControlOptions.yaml,sha256=RNHcRGWBadXhgjI1wgl0DPiUIz5Dp2S1cX-KiWj07n8,639
|
|
16
|
+
config/staging_templates/yaml/jobList.yaml,sha256=cO3it7KU2XPtysWLZtdBAK3Te0DGNFIAKfjsg_HR_xA,752
|
|
17
|
+
config/staging_templates/yaml/landingPage.yaml,sha256=qdyj911BL54kiZYeVeM4r7erEvc7XVHmS-guE5RhkdM,853
|
|
18
|
+
config/staging_templates/yaml/link.yaml,sha256=hO2VkZsn7x7KLw6cbt_aFWql1xRw7A6MuKdMsr4lbYE,813
|
|
19
|
+
config/staging_templates/yaml/metadata.yaml,sha256=zRdgDwFw0hrvl0TNH9gIjs6lcY_ezRUMVPI-5in2R8s,683
|
|
20
|
+
config/staging_templates/yaml/output.yaml,sha256=wsMm9Pgv26yjR0uKBw6aESCn4YMkvn9_4acPBtSIXJ0,686
|
|
21
|
+
config/staging_templates/yaml/outputDescription.yaml,sha256=hqsiTGtUk06TA3TbuTyC2Rvn9RKN72f9Stjo7X5Xr6s,717
|
|
22
|
+
config/staging_templates/yaml/process.yaml,sha256=2BXsIIgDhS8ad0tOISMXejVn5_MNxfvTmPIfpmUw-vg,783
|
|
23
|
+
config/staging_templates/yaml/processList.yaml,sha256=DSKMHJ6B0QIwRfWgLRP12gqbiX5JclSyg98987bfO84,766
|
|
24
|
+
config/staging_templates/yaml/processSummary.yaml,sha256=NMdXnib3sX8tHuU5fspgae-VJL5EJhvatQq5lmOJMrM,1032
|
|
25
|
+
config/staging_templates/yaml/qualifiedInputValue.yaml,sha256=GGEkGUJG8dCiwQGNvvzR2e7Cbd_kxVshsKSzffZEm4g,710
|
|
26
|
+
config/staging_templates/yaml/reference.yaml,sha256=ERo-f9zCmLlpFZQyaKIseYraSaGNodzx_m9msI9SDiU,672
|
|
27
|
+
config/staging_templates/yaml/results.yaml,sha256=pW-HkCPq4ajSFzJxZlGLGvZXXI1q6c80Q6n0uHdVEs4,626
|
|
28
|
+
config/staging_templates/yaml/schema.yaml,sha256=vSlNinmytRsiyzJV2Vlo2WpjQbh1b9X_eK79EtqrUqE,3315
|
|
29
|
+
config/staging_templates/yaml/staging_openapi_schema.yaml,sha256=T4EyKV_11czTkL2rNGpwq9EbvXLjzpI98-aeNvYaeic,6458
|
|
30
|
+
config/staging_templates/yaml/statusCode.yaml,sha256=J6RuaGChc3xsp_rCXLAPkwfVJiG-1syGr0ctCrXvmho,673
|
|
31
|
+
config/staging_templates/yaml/statusInfo.yaml,sha256=ojiSN2Hb-AUKofPQb2LJl2XE4jgvnT50yY3F8HnRtBE,1191
|
|
32
|
+
config/staging_templates/yaml/subscriber.yaml,sha256=FT9Rk28EeaVoBrDDMXg0cEzLFhWbHhnZlapgQXpPnuI,1037
|
|
33
|
+
config/staging_templates/yaml/transmissionMode.yaml,sha256=Hm33rawn5TVlo5gEdBdCgNb2p9ZcsxbCeUbPIcjvx8Y,631
|
|
34
|
+
rs_client/__init__.py,sha256=py2OYYO0Jnbo5AjWOzVC755buvFFmTpyLY_zSyQ5K-g,681
|
|
35
|
+
rs_client/ogcapi/__init__.py,sha256=euHDUZTr8RFrMwBruT_wIu1ASobhImyuLY6tCDnw1Gg,596
|
|
36
|
+
rs_client/ogcapi/dpr_client.py,sha256=8TfohUaOjkC9n-pMsGyKz6_qL5CgD4u5Faz5bh5-_s8,8658
|
|
37
|
+
rs_client/ogcapi/ogcapi_client.py,sha256=adJoKmjqDI8bgs_QdaFb6GRler70avZK3MoNe9Zdrdw,10284
|
|
38
|
+
rs_client/ogcapi/staging_client.py,sha256=qDCtM7W4K_oXF1JIkHnTyrDos014z7OrEkO0tyy0YgQ,7519
|
|
39
|
+
rs_client/rs_client.py,sha256=CMgXp0FjMKrvx3lC0nJ0rPfFHEuNKfA1nABx7g5j0Dk,11159
|
|
40
|
+
rs_client/stac/__init__.py,sha256=MVI6UBS9f6nQ-skkklOqGim0xZ7guD5ttSicwEv07Hw,592
|
|
41
|
+
rs_client/stac/auxip_client.py,sha256=tyqGOP3cT1ICR1cLdkP7QRrZsGyxMfQ8tQXc3O8ai68,2597
|
|
42
|
+
rs_client/stac/cadip_client.py,sha256=2vicbwYrXjHellDFCTjs5oFWVTOZUEObHmuWihLdiig,2600
|
|
43
|
+
rs_client/stac/catalog_client.py,sha256=RuK3JGW6sVCdEdazoeDnH3aOxDZfq41HlxGDtQ4JoNQ,17897
|
|
44
|
+
rs_client/stac/stac_base.py,sha256=0uOvx8RGIt5TGLvYb-Fna-oHyfvnp_0FS1r0hX-UCD8,11670
|
|
45
|
+
rs_common/__init__.py,sha256=NvKES7PAcACLRHXeRJpZPzvE_iEVq4py2ZJqsXuALoA,708
|
|
46
|
+
rs_common/config.py,sha256=LhGgCgVIhRAf1Ex9ZWn61LY-h9qMxTWtrrkX-SqFDd8,1561
|
|
47
|
+
rs_common/init_opentelemetry.py,sha256=f5Op6Ei8YUM1jE4h1YekJwH8zyvJUifAqMV1iVncMkY,9164
|
|
48
|
+
rs_common/logging.py,sha256=EL3U9NcZkcgHeUrEWN1ZXKNl3a7YuykwaGwcCGgx3Ys,3417
|
|
49
|
+
rs_common/prefect_utils.py,sha256=CVOReX0tX2rZ7wEj4BJeElu3d58R8unruprr1ITsswA,13863
|
|
50
|
+
rs_common/utils.py,sha256=ClCdEzsbj3eEFbYqQsrci3Dq96LProncp5OVelSJV28,2259
|
|
51
|
+
rs_workflows/__init__.py,sha256=VHOvNcBbLIXW_PKRbIx3EXjiPoll_0EULJ3-QsjAqUs,607
|
|
52
|
+
rs_workflows/auxip_flow.py,sha256=GP8pV8rH1GR0rGZLQV5jszKiCicJWMIUxHKCh_SZAAk,2254
|
|
53
|
+
rs_workflows/cadip_flow.py,sha256=AXfFrdpG2ldnU-fh34dX5Peu9r-gtI4RH4bmhs1LxfA,2311
|
|
54
|
+
rs_workflows/catalog_flow.py,sha256=VRJjmzMVCrZwAVDCVUEBvOKVzQQExw1I6FTiIKY7zlw,2710
|
|
55
|
+
rs_workflows/dpr_flow.py,sha256=pZcNOYoWF6Z1k-zYDDy7HsI7UQyvlOt01_fsQxH7K7w,10439
|
|
56
|
+
rs_workflows/flow_utils.py,sha256=FKS4TemKLaJAdOb2F5I9JuK7Za7G1_cCHj095r-TdCk,4529
|
|
57
|
+
rs_workflows/on_demand_processing.py,sha256=SqNflh6FP_ACd_Vbdqq1iCbq1yhG5ei7MJG1a1y9b-8,9217
|
|
58
|
+
rs_workflows/staging_flow.py,sha256=C_4jrSa9jI3Rio7FD31X1etquEWAnwGFV_YvpufsHCY,2926
|
|
59
|
+
rs_client_libraries-0.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
60
|
+
rs_client_libraries-0.2.dist-info/METADATA,sha256=UvG9nN3lV3YUFYX4do4HtXP5eoyBSOdGjwvOSjyYKIE,2022
|
|
61
|
+
rs_client_libraries-0.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
62
|
+
rs_client_libraries-0.2.dist-info/RECORD,,
|
rs_common/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright 2024 CS Group
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
"""Common modules."""
|
|
16
|
+
|
|
17
|
+
# Configure OpenTelemetry
|
|
18
|
+
from rs_common import init_opentelemetry
|
|
19
|
+
|
|
20
|
+
init_opentelemetry.init_traces("rs.client")
|