staplus-client 0.3.3__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.
Files changed (53) hide show
  1. staplus_client/__init__.py +47 -0
  2. staplus_client/__version__.py +8 -0
  3. staplus_client/dao/__init__.py +18 -0
  4. staplus_client/dao/actuator.py +30 -0
  5. staplus_client/dao/base.py +70 -0
  6. staplus_client/dao/campaign.py +25 -0
  7. staplus_client/dao/datastream.py +35 -0
  8. staplus_client/dao/features_of_interest.py +36 -0
  9. staplus_client/dao/historical_location.py +35 -0
  10. staplus_client/dao/license.py +25 -0
  11. staplus_client/dao/location.py +35 -0
  12. staplus_client/dao/multi_datastream.py +36 -0
  13. staplus_client/dao/observation.py +55 -0
  14. staplus_client/dao/observation_group.py +25 -0
  15. staplus_client/dao/observedproperty.py +35 -0
  16. staplus_client/dao/party.py +25 -0
  17. staplus_client/dao/relation.py +57 -0
  18. staplus_client/dao/sensor.py +35 -0
  19. staplus_client/dao/task.py +30 -0
  20. staplus_client/dao/tasking_capability.py +30 -0
  21. staplus_client/dao/thing.py +36 -0
  22. staplus_client/model/__init__.py +29 -0
  23. staplus_client/model/campaign.py +417 -0
  24. staplus_client/model/datastream.py +166 -0
  25. staplus_client/model/entity.py +29 -0
  26. staplus_client/model/ext/__init__.py +0 -0
  27. staplus_client/model/ext/entity_list.py +75 -0
  28. staplus_client/model/ext/entity_type.py +142 -0
  29. staplus_client/model/ext/unitofmeasurement.py +5 -0
  30. staplus_client/model/feature_of_interest.py +17 -0
  31. staplus_client/model/historical_location.py +21 -0
  32. staplus_client/model/license.py +301 -0
  33. staplus_client/model/location.py +22 -0
  34. staplus_client/model/multi_datastream.py +160 -0
  35. staplus_client/model/observation.py +218 -0
  36. staplus_client/model/observation_group.py +399 -0
  37. staplus_client/model/observedproperty.py +20 -0
  38. staplus_client/model/party.py +315 -0
  39. staplus_client/model/relation.py +246 -0
  40. staplus_client/model/sensor.py +16 -0
  41. staplus_client/model/thing.py +110 -0
  42. staplus_client/query/__init__.py +0 -0
  43. staplus_client/query/query.py +109 -0
  44. staplus_client/service/BearerAuth.py +23 -0
  45. staplus_client/service/__init__.py +17 -0
  46. staplus_client/service/auth_handler.py +23 -0
  47. staplus_client/service/staplusservice.py +162 -0
  48. staplus_client/utils.py +64 -0
  49. staplus_client-0.3.3.dist-info/LICENSE +165 -0
  50. staplus_client-0.3.3.dist-info/METADATA +470 -0
  51. staplus_client-0.3.3.dist-info/RECORD +53 -0
  52. staplus_client-0.3.3.dist-info/WHEEL +5 -0
  53. staplus_client-0.3.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,109 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+
17
+
18
+ import staplus_client.utils
19
+ import staplus_client.model.ext.entity_list
20
+ from frost_sta_client.query import query
21
+
22
+ import logging
23
+ import requests
24
+ from requests.exceptions import JSONDecodeError
25
+
26
+
27
+ class Query(query.Query):
28
+ def __init__(self, service, entity, entitytype_plural, entity_class, parent):
29
+ super().__init__(service, entity, entitytype_plural, entity_class, parent)
30
+
31
+ @property
32
+ def service(self):
33
+ return self._service
34
+
35
+ @service.setter
36
+ def service(self, service):
37
+ if service is None:
38
+ self._service = service
39
+ return
40
+ if not isinstance(service, staplus_client.service.staplusservice.STAplusService):
41
+ raise ValueError('service should be of type STAplusService')
42
+ self._service = service
43
+
44
+ # exception: similar functions in basedao
45
+ def list(self, callback=None, step_size=None):
46
+ """
47
+ Get an entity collection as a dictionary
48
+ callbacks so far only work in combination with step_size. If step_size is set, then the callback function
49
+ is called at every iteration of the step_size
50
+ """
51
+ url = self.service.get_full_path(self.parent, self.entitytype_plural)
52
+ #slash = "" if str(furl.path).endswith('/') else "/"
53
+ #if self.parent is None:
54
+ #url = self.service.url.url + slash + self.entitytype_plural
55
+ #else:
56
+ #url = self.service.url.url + slash + self.entitytype_plural + '(' + str(self.parent.id) + ')/' + self.entity
57
+
58
+ #url = furl(url)
59
+ url.args = self.params
60
+ try:
61
+ response = self.service.execute('get', url)
62
+ except requests.exceptions.HTTPError as e:
63
+ error_json = e.response.json()
64
+ error_message = error_json['message']
65
+ logging.error("Query failed with status-code {}, {}".format(e.response.status_code, error_message))
66
+ raise e
67
+ logging.debug('Received response: {} from {}'.format(response.status_code, url))
68
+ try:
69
+ json_response = response.json()
70
+ except JSONDecodeError:
71
+ raise ValueError('Cannot find json in http response')
72
+ entity_list = staplus_client.utils.transform_json_to_entity_list(json_response, self.entity_class)
73
+ entity_list.set_service(self.service)
74
+
75
+ entity_list.callback = callback
76
+ entity_list.step_size = step_size
77
+
78
+ return entity_list
79
+ def item(self, callback=None, step_size=None):
80
+ """
81
+ Get an entity as a dictionary
82
+ callbacks so far only work in combination with step_size. If step_size is set, then the callback function
83
+ is called at every iteration of the step_size
84
+ """
85
+ url = self.service.get_full_path(self.parent, self.entity)
86
+ #slash = "" if str(furl.path).endswith('/') else "/"
87
+ #if self.parent is None:
88
+ #url = self.service.url.url + slash + self.entitytype_plural
89
+ #else:
90
+ #url = self.service.url.url + slash + self.entitytype_plural + '(' + str(self.parent.id) + ')/' + self.entity
91
+
92
+ #url = furl(url)
93
+ url.args = self.params
94
+ try:
95
+ response = self.service.execute('get', url)
96
+ except requests.exceptions.HTTPError as e:
97
+ error_json = e.response.json()
98
+ error_message = error_json['message']
99
+ logging.error("Query failed with status-code {}, {}".format(e.response.status_code, error_message))
100
+ raise e
101
+ logging.debug('Received response: {} from {}'.format(response.status_code, url))
102
+ try:
103
+ json_response = response.json()
104
+ except JSONDecodeError:
105
+ raise ValueError('Cannot find json in http response')
106
+ entity = staplus_client.utils.transform_json_to_entity(json_response, self.entity_class)
107
+ entity.set_service(self.service)
108
+
109
+ return entity
@@ -0,0 +1,23 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ import requests
17
+
18
+ class BearerAuth(requests.auth.AuthBase):
19
+ def __init__(self, token):
20
+ self.token = token
21
+ def __call__(self, r):
22
+ r.headers["authorization"] = "Bearer " + self.token
23
+ return r
@@ -0,0 +1,17 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ from staplus_client.service import staplusservice
17
+ from staplus_client.service import auth_handler
@@ -0,0 +1,23 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ from staplus_client.service.BearerAuth import BearerAuth
17
+ class AuthHandler:
18
+ def __init__(self, token=""):
19
+ self.token = token
20
+
21
+ def add_auth_header(self):
22
+ if not (self.token is None):
23
+ return BearerAuth(self.token)
@@ -0,0 +1,162 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ import requests
17
+
18
+ from staplus_client.service.auth_handler import AuthHandler as STAplusAuthHandler
19
+ from frost_sta_client.service.auth_handler import AuthHandler as STAAuthHandler
20
+ from frost_sta_client.service import sensorthingsservice
21
+
22
+ from staplus_client.dao import observedproperty
23
+ from staplus_client.dao import historical_location
24
+ from staplus_client.dao import location
25
+ from staplus_client.dao import features_of_interest
26
+ from staplus_client.dao import datastream
27
+ from staplus_client.dao import observation_group
28
+ from staplus_client.dao import license
29
+ from staplus_client.dao import multi_datastream
30
+ from staplus_client.dao import observation
31
+ from staplus_client.dao import party
32
+ from staplus_client.dao import campaign
33
+ from staplus_client.dao import relation
34
+ from staplus_client.dao import thing
35
+ from staplus_client.dao import sensor
36
+ import staplus_client.model.ext.entity_type as staplus_entity_type
37
+
38
+ class STAplusService(sensorthingsservice.SensorThingsService):
39
+ def __init__(self, url, auth_handler=None):
40
+ super().__init__(url, auth_handler)
41
+
42
+ def create(self, entity):
43
+ return entity.get_dao(self).create(entity)
44
+
45
+ def update(self, entity):
46
+ entity.get_dao(self).update(entity)
47
+
48
+ def patch(self, entity, patches):
49
+ entity.get_dao(self).patch(entity, patches)
50
+
51
+ def delete(self, entity):
52
+ entity.get_dao(self).delete(entity)
53
+
54
+ @property
55
+ def auth_handler(self):
56
+ return self._auth_handler
57
+
58
+ @auth_handler.setter
59
+ def auth_handler(self, value):
60
+ if value is None:
61
+ self._auth_handler = None
62
+ return
63
+ if (not isinstance(value, STAplusAuthHandler) and ( not isinstance(value, STAAuthHandler))):
64
+ raise ValueError('auth should be of type AuthHandler!')
65
+ self._auth_handler = value
66
+
67
+ def execute(self, method, url, **kwargs):
68
+ if self.auth_handler is not None:
69
+ response = requests.request(method, url, auth=self.auth_handler.add_auth_header(), **kwargs)
70
+ else:
71
+ response = requests.request(method, url, **kwargs)
72
+ try:
73
+ response.raise_for_status()
74
+ except requests.exceptions.HTTPError as e:
75
+ raise e
76
+
77
+ return response
78
+
79
+ def get_path(self, parent, relation):
80
+ if parent is None:
81
+ return relation
82
+ this_entity_type = staplus_entity_type.get_list_for_class(type(parent))
83
+ #this_entity_type = staplus_entity_type.EntityTypes[relation]['plural'] if relation in staplus_entity_type.EntityTypes.keys() else staplus_entity_type.get_list_for_class(type(parent))
84
+ if type(parent.id) == str:
85
+ return "{entity_type}('{id}')/{relation}".format(entity_type=this_entity_type, id=parent.id, relation=relation)
86
+ else:
87
+ return "{entity_type}({id})/{relation}".format(entity_type=this_entity_type, id=parent.id, relation=relation)
88
+
89
+ def party(self):
90
+ return party.PartyDao(self)
91
+
92
+ def parties(self):
93
+ return party.PartyDao(self)
94
+
95
+ def license(self):
96
+ return license.LicenseDao(self)
97
+
98
+ def licenses(self):
99
+ return license.LicenseDao(self)
100
+
101
+ def thing(self):
102
+ return thing.ThingDao(self)
103
+
104
+ def things(self):
105
+ return thing.ThingDao(self)
106
+
107
+ def sensor(self):
108
+ return sensor.SensorDao(self)
109
+
110
+ def sensors(self):
111
+ return sensor.SensorDao(self)
112
+
113
+ def datastream(self):
114
+ return datastream.DatastreamDao(self)
115
+
116
+ def datastreams(self):
117
+ return datastream.DatastreamDao(self)
118
+
119
+ def multi_datastream(self):
120
+ return multi_datastream.MultiDatastreamDao(self)
121
+
122
+ def multi_datastreams(self):
123
+ return multi_datastream.MultiDatastreamDao(self)
124
+
125
+ def observed_property(self):
126
+ return observedproperty.ObservedPropertyDao(self)
127
+
128
+ def observed_properties(self):
129
+ return observedproperty.ObservedPropertyDao(self)
130
+
131
+ def features_of_interest(self):
132
+ return features_of_interest.FeaturesOfInterestDao(self)
133
+
134
+ def historical_locations(self):
135
+ return historical_location.HistoricalLocationDao(self)
136
+
137
+ def locations(self):
138
+ return location.LocationDao(self)
139
+
140
+ def observations(self):
141
+ return observation.ObservationDao(self)
142
+
143
+ def campaigns(self):
144
+ return campaign.CampaignDao(self)
145
+
146
+ def relations(self):
147
+ return relation.RelationDao(self)
148
+
149
+ def subjects(self):
150
+ return relation.SubjectsDao(self)
151
+
152
+ def subject(self):
153
+ return observation.SubjectDao(self)
154
+
155
+ def objects(self):
156
+ return relation.ObjectsDao(self)
157
+
158
+ def object(self):
159
+ return observation.ObjectDao(self)
160
+
161
+ def observation_groups(self):
162
+ return observation_group.ObservationGroupDao(self)
@@ -0,0 +1,64 @@
1
+ # Copyright (C) 2023-2024 Secure Dimensions GmbH, Munich, Germany.
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU Lesser General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+ import json
16
+
17
+ import geojson
18
+ import jsonpickle, sys
19
+
20
+ from staplus_client.model.ext.entity_list import EntityList
21
+ from staplus_client.model.thing import Thing
22
+ from frost_sta_client import utils
23
+
24
+
25
+ def transform_json_to_entity_list(json_response, entity_class):
26
+ entity_list = EntityList(entity_class)
27
+ response_list = []
28
+ if isinstance(json_response, dict):
29
+ try:
30
+ response_list = json_response['value']
31
+ entity_list.next_link = json_response.get("@iot.nextLink", None)
32
+ entity_list.count = json_response.get("@iot.count", None)
33
+ except AttributeError as e:
34
+ raise e
35
+ elif isinstance(json_response, list):
36
+ response_list = json_response
37
+ else:
38
+ raise ValueError("expected json as a dict or list to transform into entity list")
39
+ entity_list.entities = [transform_json_to_entity(item, entity_list.entity_class) for item in response_list]
40
+ return entity_list
41
+
42
+
43
+ def transform_json_to_entity(json_response, entity_class):
44
+ return utils.transform_json_to_entity(json_response, entity_class)
45
+
46
+ def transform_entity_to_json_dict(entity):
47
+ data = utils.transform_entity_to_json_dict(entity)
48
+ if 'feature' in data and type(data['feature']) != dict:
49
+ data['feature'] = json.loads(geojson.dumps(entity.feature))
50
+ if 'location' in data and type(data['location']) != dict:
51
+ data['location'] = json.loads(geojson.dumps(entity.location))
52
+ if type(entity) == Thing and entity.locations is not None and type(entity.locations) != dict:
53
+ locations = []
54
+ for l in entity.locations:
55
+ location = transform_entity_to_json_dict(l)
56
+ #location['location'] = json.loads(geojson.dumps(l.location))
57
+ locations.append(location)
58
+
59
+ data['Locations'] = locations
60
+
61
+ return data
62
+
63
+ def class_from_string(string):
64
+ return utils.class_from_string(string)
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.