pyetp 0.0.39__py3-none-any.whl → 0.0.43__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.
- pyetp/__init__.py +10 -2
- pyetp/_version.py +34 -0
- pyetp/client.py +561 -620
- pyetp/config.py +9 -10
- pyetp/{resqml_objects/__init__.py → resqml_objects.py} +82 -72
- pyetp/types.py +130 -93
- pyetp/uri.py +28 -16
- pyetp/utils_arrays.py +224 -98
- pyetp/utils_xml.py +44 -678
- pyetp-0.0.43.dist-info/METADATA +88 -0
- pyetp-0.0.43.dist-info/RECORD +21 -0
- {pyetp-0.0.39.dist-info → pyetp-0.0.43.dist-info}/WHEEL +2 -1
- pyetp-0.0.43.dist-info/top_level.txt +2 -0
- resqml_objects/__init__.py +7 -0
- resqml_objects/epc_readers.py +114 -0
- resqml_objects/parsers.py +12 -0
- resqml_objects/serializers.py +10 -0
- resqml_objects/v201/__init__.py +1847 -0
- {pyetp/resqml_objects → resqml_objects/v201}/generated.py +2244 -2185
- resqml_objects/v201/utils.py +46 -0
- pyetp/utils.py +0 -15
- pyetp-0.0.39.dist-info/METADATA +0 -56
- pyetp-0.0.39.dist-info/RECORD +0 -14
- {pyetp-0.0.39.dist-info → pyetp-0.0.43.dist-info/licenses}/LICENSE.md +0 -0
pyetp/config.py
CHANGED
|
@@ -4,24 +4,23 @@ from pydantic import AnyUrl, BaseSettings, Field
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class WebSocketUrl(AnyUrl):
|
|
7
|
-
allowed_schemes = {
|
|
7
|
+
allowed_schemes = {"wss", "ws"}
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Settings(BaseSettings):
|
|
11
|
-
|
|
12
11
|
class Config:
|
|
13
|
-
env_prefix =
|
|
12
|
+
env_prefix = "" # defaults to no prefix, i.e. ""
|
|
14
13
|
fields = {
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
"redis_dns": {"env": ["redishost", "redis_host", "redis_dns"]},
|
|
15
|
+
"redis_password": {"env": ["redis_password", "redispass"]},
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
application_name: str = Field(default=
|
|
20
|
-
application_version: str = Field(default=
|
|
18
|
+
application_name: str = Field(default="pyetp")
|
|
19
|
+
application_version: str = Field(default="0.0.33")
|
|
21
20
|
|
|
22
|
-
#dataspace: str = Field(default='demo/pss-data-gateway')
|
|
23
|
-
etp_url: WebSocketUrl = Field(default=
|
|
24
|
-
etp_timeout: float = Field(default=15
|
|
21
|
+
# dataspace: str = Field(default='demo/pss-data-gateway')
|
|
22
|
+
etp_url: WebSocketUrl = Field(default="wss://host.com")
|
|
23
|
+
etp_timeout: float = Field(default=15.0, description="Timeout in seconds")
|
|
25
24
|
data_partition: Optional[str] = None
|
|
26
25
|
MaxWebSocketMessagePayloadSize: int = Field(default=500000000)
|
|
27
26
|
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
APIGravityUom,
|
|
6
|
-
APINeutronMeasure,
|
|
7
|
-
APINeutronUom,
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
3
|
+
from resqml_objects.v201 import (
|
|
4
|
+
URL,
|
|
8
5
|
AbsorbedDoseMeasure,
|
|
9
6
|
AbsorbedDoseUom,
|
|
10
7
|
AbstractActivityParameter,
|
|
11
8
|
AbstractBooleanArray,
|
|
12
|
-
AbstractCRSType,
|
|
13
9
|
AbstractCitedDataObject,
|
|
14
10
|
AbstractColumnLayerGridGeometry,
|
|
15
11
|
AbstractColumnLayerGridRepresentation,
|
|
@@ -18,20 +14,21 @@ from pyetp.resqml_objects.generated import (
|
|
|
18
14
|
AbstractContextualObject,
|
|
19
15
|
AbstractCoordinateOperationType,
|
|
20
16
|
AbstractCoordinateSystemType,
|
|
21
|
-
|
|
22
|
-
AbstractDQ_PositionalAccuracy_Type,
|
|
23
|
-
AbstractDQ_Result_Type,
|
|
17
|
+
AbstractCRSType,
|
|
24
18
|
AbstractDataObject,
|
|
25
19
|
AbstractDatumType,
|
|
26
20
|
AbstractDoubleArray,
|
|
21
|
+
AbstractDQ_Element_Type,
|
|
22
|
+
AbstractDQ_PositionalAccuracy_Type,
|
|
23
|
+
AbstractDQ_Result_Type,
|
|
27
24
|
AbstractEX_GeographicExtent_Type,
|
|
28
25
|
AbstractFeature,
|
|
29
26
|
AbstractFeatureInterpretation,
|
|
30
|
-
AbstractGMLType,
|
|
31
27
|
AbstractGeneralConversionType,
|
|
32
28
|
AbstractGeneralDerivedCRSType,
|
|
33
29
|
AbstractGeologicFeature,
|
|
34
30
|
AbstractGeometry,
|
|
31
|
+
AbstractGMLType,
|
|
35
32
|
AbstractGridGeometry,
|
|
36
33
|
AbstractGridRepresentation,
|
|
37
34
|
AbstractIntegerArray,
|
|
@@ -91,6 +88,12 @@ from pyetp.resqml_objects.generated import (
|
|
|
91
88
|
AngularAccelerationUom,
|
|
92
89
|
AngularVelocityMeasure,
|
|
93
90
|
AngularVelocityUom,
|
|
91
|
+
APIGammaRayMeasure,
|
|
92
|
+
APIGammaRayUom,
|
|
93
|
+
APIGravityMeasure,
|
|
94
|
+
APIGravityUom,
|
|
95
|
+
APINeutronMeasure,
|
|
96
|
+
APINeutronUom,
|
|
94
97
|
AreaMeasure,
|
|
95
98
|
AreaPerAmountOfSubstanceMeasure,
|
|
96
99
|
AreaPerAmountOfSubstanceUom,
|
|
@@ -109,14 +112,29 @@ from pyetp.resqml_objects.generated import (
|
|
|
109
112
|
BinaryContactInterpretationPart,
|
|
110
113
|
BlockedWellboreRepresentation,
|
|
111
114
|
Boolean,
|
|
115
|
+
Boolean_PropertyType,
|
|
112
116
|
BooleanArrayFromDiscretePropertyArray,
|
|
113
117
|
BooleanArrayFromIndexArray,
|
|
114
118
|
BooleanConstantArray,
|
|
115
119
|
BooleanHdf5Array,
|
|
116
|
-
Boolean_PropertyType,
|
|
117
120
|
BoundaryFeature,
|
|
118
121
|
BoundaryFeatureInterpretation,
|
|
119
122
|
BoundaryRelation,
|
|
123
|
+
CapacitanceMeasure,
|
|
124
|
+
CapacitanceUom,
|
|
125
|
+
CartesianCS_1,
|
|
126
|
+
CartesianCSPropertyType,
|
|
127
|
+
CartesianCSType,
|
|
128
|
+
CategoricalProperty,
|
|
129
|
+
CategoricalPropertySeries,
|
|
130
|
+
CellFluidPhaseUnits,
|
|
131
|
+
CellOverlap,
|
|
132
|
+
CellParentWindow,
|
|
133
|
+
CellShape,
|
|
134
|
+
CellStratigraphicUnits,
|
|
135
|
+
CharacterString,
|
|
136
|
+
CharacterString_PropertyType,
|
|
137
|
+
ChronostratigraphicRank,
|
|
120
138
|
CI_Address,
|
|
121
139
|
CI_Address_PropertyType,
|
|
122
140
|
CI_Address_Type,
|
|
@@ -127,10 +145,10 @@ from pyetp.resqml_objects.generated import (
|
|
|
127
145
|
CI_Contact_PropertyType,
|
|
128
146
|
CI_Contact_Type,
|
|
129
147
|
CI_Date,
|
|
130
|
-
CI_DateTypeCode,
|
|
131
|
-
CI_DateTypeCode_PropertyType,
|
|
132
148
|
CI_Date_PropertyType,
|
|
133
149
|
CI_Date_Type,
|
|
150
|
+
CI_DateTypeCode,
|
|
151
|
+
CI_DateTypeCode_PropertyType,
|
|
134
152
|
CI_OnLineFunctionCode,
|
|
135
153
|
CI_OnLineFunctionCode_PropertyType,
|
|
136
154
|
CI_OnlineResource,
|
|
@@ -149,22 +167,6 @@ from pyetp.resqml_objects.generated import (
|
|
|
149
167
|
CI_Telephone,
|
|
150
168
|
CI_Telephone_PropertyType,
|
|
151
169
|
CI_Telephone_Type,
|
|
152
|
-
CRSPropertyType,
|
|
153
|
-
CapacitanceMeasure,
|
|
154
|
-
CapacitanceUom,
|
|
155
|
-
CartesianCSPropertyType,
|
|
156
|
-
CartesianCSType,
|
|
157
|
-
CartesianCS_1,
|
|
158
|
-
CategoricalProperty,
|
|
159
|
-
CategoricalPropertySeries,
|
|
160
|
-
CellFluidPhaseUnits,
|
|
161
|
-
CellOverlap,
|
|
162
|
-
CellParentWindow,
|
|
163
|
-
CellShape,
|
|
164
|
-
CellStratigraphicUnits,
|
|
165
|
-
CharacterString,
|
|
166
|
-
CharacterString_PropertyType,
|
|
167
|
-
ChronostratigraphicRank,
|
|
168
170
|
Citation,
|
|
169
171
|
CodeListValue_Type,
|
|
170
172
|
CodeType,
|
|
@@ -191,18 +193,16 @@ from pyetp.resqml_objects.generated import (
|
|
|
191
193
|
CoordinateSystemAxis,
|
|
192
194
|
CoordinateSystemAxisPropertyType,
|
|
193
195
|
CoordinateSystemAxisType,
|
|
196
|
+
CRSPropertyType,
|
|
194
197
|
CustomData,
|
|
195
|
-
DQ_EvaluationMethodTypeCode,
|
|
196
|
-
DQ_EvaluationMethodTypeCode_PropertyType,
|
|
197
|
-
DQ_Result_PropertyType,
|
|
198
198
|
DataObjectParameter,
|
|
199
199
|
DataObjectReference,
|
|
200
200
|
DataTransferSpeedMeasure,
|
|
201
201
|
DataTransferSpeedUom,
|
|
202
202
|
Date,
|
|
203
|
+
Date_PropertyType,
|
|
203
204
|
DateTime,
|
|
204
205
|
DateTime_PropertyType,
|
|
205
|
-
Date_PropertyType,
|
|
206
206
|
Definition,
|
|
207
207
|
DefinitionBaseType,
|
|
208
208
|
DefinitionType,
|
|
@@ -226,20 +226,16 @@ from pyetp.resqml_objects.generated import (
|
|
|
226
226
|
DoubleLatticeArray,
|
|
227
227
|
DoubleLookup,
|
|
228
228
|
DoubleTableLookup,
|
|
229
|
+
DQ_EvaluationMethodTypeCode,
|
|
230
|
+
DQ_EvaluationMethodTypeCode_PropertyType,
|
|
231
|
+
DQ_Result_PropertyType,
|
|
229
232
|
DynamicViscosityMeasure,
|
|
230
233
|
DynamicViscosityUom,
|
|
231
|
-
EX_Extent,
|
|
232
|
-
EX_Extent_Type,
|
|
233
|
-
EX_GeographicExtent_PropertyType,
|
|
234
|
-
EX_TemporalExtent,
|
|
235
|
-
EX_TemporalExtent_PropertyType,
|
|
236
|
-
EX_TemporalExtent_Type,
|
|
237
|
-
EX_VerticalExtent,
|
|
238
|
-
EX_VerticalExtent_PropertyType,
|
|
239
|
-
EX_VerticalExtent_Type,
|
|
240
234
|
EarthModelInterpretation,
|
|
241
235
|
EdgePatch,
|
|
242
236
|
Edges,
|
|
237
|
+
ElectricalResistivityMeasure,
|
|
238
|
+
ElectricalResistivityUom,
|
|
243
239
|
ElectricChargeMeasure,
|
|
244
240
|
ElectricChargePerAreaMeasure,
|
|
245
241
|
ElectricChargePerAreaUom,
|
|
@@ -264,18 +260,16 @@ from pyetp.resqml_objects.generated import (
|
|
|
264
260
|
ElectricResistancePerLengthMeasure,
|
|
265
261
|
ElectricResistancePerLengthUom,
|
|
266
262
|
ElectricResistanceUom,
|
|
267
|
-
ElectricalResistivityMeasure,
|
|
268
|
-
ElectricalResistivityUom,
|
|
269
263
|
ElectromagneticMomentMeasure,
|
|
270
264
|
ElectromagneticMomentUom,
|
|
271
265
|
ElementIdentity,
|
|
272
266
|
ElementIndices,
|
|
273
|
-
EllipsoidPropertyType,
|
|
274
|
-
EllipsoidType,
|
|
275
267
|
Ellipsoid_1,
|
|
268
|
+
EllipsoidalCS_1,
|
|
276
269
|
EllipsoidalCSPropertyType,
|
|
277
270
|
EllipsoidalCSType,
|
|
278
|
-
|
|
271
|
+
EllipsoidPropertyType,
|
|
272
|
+
EllipsoidType,
|
|
279
273
|
EnergyLengthPerAreaMeasure,
|
|
280
274
|
EnergyLengthPerAreaUom,
|
|
281
275
|
EnergyLengthPerTimeAreaTemperatureMeasure,
|
|
@@ -293,6 +287,15 @@ from pyetp.resqml_objects.generated import (
|
|
|
293
287
|
EnergyPerVolumeUom,
|
|
294
288
|
EnergyUom,
|
|
295
289
|
EpcExternalPartReference,
|
|
290
|
+
EX_Extent,
|
|
291
|
+
EX_Extent_Type,
|
|
292
|
+
EX_GeographicExtent_PropertyType,
|
|
293
|
+
EX_TemporalExtent,
|
|
294
|
+
EX_TemporalExtent_PropertyType,
|
|
295
|
+
EX_TemporalExtent_Type,
|
|
296
|
+
EX_VerticalExtent,
|
|
297
|
+
EX_VerticalExtent_PropertyType,
|
|
298
|
+
EX_VerticalExtent_Type,
|
|
296
299
|
Facet,
|
|
297
300
|
FaultInterpretation,
|
|
298
301
|
FaultThrow,
|
|
@@ -328,9 +331,9 @@ from pyetp.resqml_objects.generated import (
|
|
|
328
331
|
GeodeticCRS,
|
|
329
332
|
GeodeticCRSPropertyType,
|
|
330
333
|
GeodeticCRSType,
|
|
334
|
+
GeodeticDatum_1,
|
|
331
335
|
GeodeticDatumPropertyType,
|
|
332
336
|
GeodeticDatumType,
|
|
333
|
-
GeodeticDatum_1,
|
|
334
337
|
GeologicBoundaryKind,
|
|
335
338
|
GeologicUnitComposition,
|
|
336
339
|
GeologicUnitFeature,
|
|
@@ -363,10 +366,10 @@ from pyetp.resqml_objects.generated import (
|
|
|
363
366
|
IdentifiedObjectType,
|
|
364
367
|
IdentityKind,
|
|
365
368
|
IjGaps,
|
|
366
|
-
IjSplitColumnEdges,
|
|
367
369
|
IjkGridGeometry,
|
|
368
370
|
IjkGridRepresentation,
|
|
369
371
|
IjkParentWindow,
|
|
372
|
+
IjSplitColumnEdges,
|
|
370
373
|
IlluminanceMeasure,
|
|
371
374
|
IlluminanceUom,
|
|
372
375
|
IndexableElements,
|
|
@@ -379,8 +382,8 @@ from pyetp.resqml_objects.generated import (
|
|
|
379
382
|
IntegerQuantityParameter,
|
|
380
383
|
IntegerRangeArray,
|
|
381
384
|
IntervalGridCells,
|
|
382
|
-
IntervalStratigraphicUnits,
|
|
383
385
|
Intervals,
|
|
386
|
+
IntervalStratigraphicUnits,
|
|
384
387
|
IsothermalCompressibilityMeasure,
|
|
385
388
|
IsothermalCompressibilityUom,
|
|
386
389
|
KDirection,
|
|
@@ -403,11 +406,11 @@ from pyetp.resqml_objects.generated import (
|
|
|
403
406
|
LengthUom,
|
|
404
407
|
LightExposureMeasure,
|
|
405
408
|
LightExposureUom,
|
|
406
|
-
LineRole,
|
|
407
409
|
LinearAccelerationMeasure,
|
|
408
410
|
LinearAccelerationUom,
|
|
409
411
|
LinearThermalExpansionMeasure,
|
|
410
412
|
LinearThermalExpansionUom,
|
|
413
|
+
LineRole,
|
|
411
414
|
LocalDepth3dCrs,
|
|
412
415
|
LocalGridSet,
|
|
413
416
|
LocalPropertyKind,
|
|
@@ -424,9 +427,6 @@ from pyetp.resqml_objects.generated import (
|
|
|
424
427
|
LuminousFluxUom,
|
|
425
428
|
LuminousIntensityMeasure,
|
|
426
429
|
LuminousIntensityUom,
|
|
427
|
-
MD_Identifier,
|
|
428
|
-
MD_Identifier_PropertyType,
|
|
429
|
-
MD_Identifier_Type,
|
|
430
430
|
MagneticDipoleMomentMeasure,
|
|
431
431
|
MagneticDipoleMomentUom,
|
|
432
432
|
MagneticFieldStrengthMeasure,
|
|
@@ -463,6 +463,9 @@ from pyetp.resqml_objects.generated import (
|
|
|
463
463
|
MassPerVolumePerLengthUom,
|
|
464
464
|
MassPerVolumeUom,
|
|
465
465
|
MassUom,
|
|
466
|
+
MD_Identifier,
|
|
467
|
+
MD_Identifier_PropertyType,
|
|
468
|
+
MD_Identifier_Type,
|
|
466
469
|
MdDatum,
|
|
467
470
|
MdDomain,
|
|
468
471
|
MdReference,
|
|
@@ -558,13 +561,13 @@ from pyetp.resqml_objects.generated import (
|
|
|
558
561
|
PressureTimePerVolumeMeasure,
|
|
559
562
|
PressureTimePerVolumeUom,
|
|
560
563
|
PressureUom,
|
|
564
|
+
PrimeMeridian_1,
|
|
561
565
|
PrimeMeridianPropertyType,
|
|
562
566
|
PrimeMeridianType,
|
|
563
|
-
PrimeMeridian_1,
|
|
564
567
|
ProjectedCRS,
|
|
565
|
-
ProjectedCRSType,
|
|
566
|
-
ProjectedCrsEpsgCode,
|
|
567
568
|
ProjectedCrs_1,
|
|
569
|
+
ProjectedCrsEpsgCode,
|
|
570
|
+
ProjectedCRSType,
|
|
568
571
|
ProjectedUnknownCrs,
|
|
569
572
|
PropertyKind,
|
|
570
573
|
PropertyKindFacet,
|
|
@@ -633,9 +636,9 @@ from pyetp.resqml_objects.generated import (
|
|
|
633
636
|
SolidAngleUom,
|
|
634
637
|
SpecificHeatCapacityMeasure,
|
|
635
638
|
SpecificHeatCapacityUom,
|
|
639
|
+
SphericalCS_1,
|
|
636
640
|
SphericalCSPropertyType,
|
|
637
641
|
SphericalCSType,
|
|
638
|
-
SphericalCS_1,
|
|
639
642
|
SplitEdges,
|
|
640
643
|
SplitFaces,
|
|
641
644
|
SplitNodePatch,
|
|
@@ -648,22 +651,21 @@ from pyetp.resqml_objects.generated import (
|
|
|
648
651
|
StratigraphicUnitInterpretationIndex,
|
|
649
652
|
StreamlineFlux,
|
|
650
653
|
StreamlinePolylineSetPatch,
|
|
651
|
-
StreamlineWellbores,
|
|
652
654
|
StreamlinesFeature,
|
|
653
655
|
StreamlinesRepresentation,
|
|
656
|
+
StreamlineWellbores,
|
|
654
657
|
StringHdf5Array,
|
|
655
658
|
StringLookup,
|
|
656
659
|
StringOrRefType,
|
|
657
660
|
StringParameter,
|
|
658
661
|
StringTableLookup,
|
|
659
662
|
StructuralOrganizationInterpretation,
|
|
660
|
-
SubRepresentation,
|
|
661
|
-
SubRepresentationPatch,
|
|
662
663
|
SubnodeNodeObject,
|
|
663
664
|
SubnodePatch,
|
|
664
665
|
SubnodeTopology,
|
|
666
|
+
SubRepresentation,
|
|
667
|
+
SubRepresentationPatch,
|
|
665
668
|
SurfaceRole,
|
|
666
|
-
TM_Primitive_PropertyType,
|
|
667
669
|
TectonicBoundaryFeature,
|
|
668
670
|
TectonicBoundaryKind,
|
|
669
671
|
TemperatureIntervalMeasure,
|
|
@@ -707,15 +709,14 @@ from pyetp.resqml_objects.generated import (
|
|
|
707
709
|
TimeSeries,
|
|
708
710
|
TimeSeriesParentage,
|
|
709
711
|
TimeSetKind,
|
|
710
|
-
TimeUom,
|
|
711
712
|
Timestamp,
|
|
713
|
+
TimeUom,
|
|
714
|
+
TM_Primitive_PropertyType,
|
|
712
715
|
TrianglePatch,
|
|
713
716
|
TriangulatedSetRepresentation,
|
|
714
717
|
TruncatedIjkGridRepresentation,
|
|
715
718
|
TruncatedUnstructuredColumnLayerGridRepresentation,
|
|
716
719
|
TruncationCellPatch,
|
|
717
|
-
URL,
|
|
718
|
-
URL_PropertyType,
|
|
719
720
|
UniformSubnodePatch,
|
|
720
721
|
UnstructuredColumnEdges,
|
|
721
722
|
UnstructuredColumnLayerGridGeometry,
|
|
@@ -724,17 +725,18 @@ from pyetp.resqml_objects.generated import (
|
|
|
724
725
|
UnstructuredGridHingeNodeFaces,
|
|
725
726
|
UnstructuredGridRepresentation,
|
|
726
727
|
UnstructuredSubnodeTopology,
|
|
728
|
+
URL_PropertyType,
|
|
727
729
|
VariableSubnodePatch,
|
|
728
730
|
VerticalCRS,
|
|
731
|
+
VerticalCrs_1,
|
|
732
|
+
VerticalCrsEpsgCode,
|
|
729
733
|
VerticalCRSType,
|
|
734
|
+
VerticalCS_1,
|
|
730
735
|
VerticalCSPropertyType,
|
|
731
736
|
VerticalCSType,
|
|
732
|
-
|
|
733
|
-
VerticalCrsEpsgCode,
|
|
734
|
-
VerticalCrs_1,
|
|
737
|
+
VerticalDatum_1,
|
|
735
738
|
VerticalDatumPropertyType,
|
|
736
739
|
VerticalDatumType,
|
|
737
|
-
VerticalDatum_1,
|
|
738
740
|
VerticalDirection,
|
|
739
741
|
VerticalUnknownCrs,
|
|
740
742
|
VolumeFlowRatePerVolumeFlowRateMeasure,
|
|
@@ -770,11 +772,11 @@ from pyetp.resqml_objects.generated import (
|
|
|
770
772
|
VolumePerVolumeUom,
|
|
771
773
|
VolumeRegion,
|
|
772
774
|
VolumeShell,
|
|
773
|
-
VolumeUom,
|
|
774
775
|
VolumetricHeatTransferCoefficientMeasure,
|
|
775
776
|
VolumetricHeatTransferCoefficientUom,
|
|
776
777
|
VolumetricThermalExpansionMeasure,
|
|
777
778
|
VolumetricThermalExpansionUom,
|
|
779
|
+
VolumeUom,
|
|
778
780
|
WellboreFeature,
|
|
779
781
|
WellboreFrameRepresentation,
|
|
780
782
|
WellboreInterpretation,
|
|
@@ -899,6 +901,14 @@ from pyetp.resqml_objects.generated import (
|
|
|
899
901
|
verticalDatum_2,
|
|
900
902
|
)
|
|
901
903
|
|
|
904
|
+
warnings.warn(
|
|
905
|
+
"The 'pyetp.resqml_objects' module is deprecated and will be removed in a future "
|
|
906
|
+
"version of pyetp. Please import from 'resqml_objects.v201' instead.",
|
|
907
|
+
DeprecationWarning,
|
|
908
|
+
stacklevel=2,
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
|
|
902
912
|
__all__ = [
|
|
903
913
|
"APIGammaRayMeasure",
|
|
904
914
|
"APIGammaRayUom",
|
pyetp/types.py
CHANGED
|
@@ -1,113 +1,150 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
3
|
+
warnings.warn(
|
|
4
|
+
"The 'pyetp.types' module is deprecated and will be removed in a future "
|
|
5
|
+
"version of pyetp. Please import the ETP types directly from 'etyptypes' instead.",
|
|
6
|
+
DeprecationWarning,
|
|
7
|
+
stacklevel=2,
|
|
8
|
+
)
|
|
9
|
+
|
|
1
10
|
|
|
2
11
|
from etptypes import ETPModel
|
|
3
12
|
from etptypes.energistics.etp.v12.datatypes.any_array import AnyArray
|
|
4
13
|
from etptypes.energistics.etp.v12.datatypes.any_array_type import AnyArrayType
|
|
5
|
-
from etptypes.energistics.etp.v12.datatypes.any_logical_array_type import
|
|
6
|
-
AnyLogicalArrayType
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
from etptypes.energistics.etp.v12.datatypes.array_of_double import
|
|
10
|
-
ArrayOfDouble
|
|
14
|
+
from etptypes.energistics.etp.v12.datatypes.any_logical_array_type import (
|
|
15
|
+
AnyLogicalArrayType,
|
|
16
|
+
)
|
|
17
|
+
from etptypes.energistics.etp.v12.datatypes.array_of_boolean import ArrayOfBoolean
|
|
18
|
+
from etptypes.energistics.etp.v12.datatypes.array_of_double import ArrayOfDouble
|
|
11
19
|
from etptypes.energistics.etp.v12.datatypes.array_of_float import ArrayOfFloat
|
|
12
20
|
from etptypes.energistics.etp.v12.datatypes.array_of_int import ArrayOfInt
|
|
13
21
|
from etptypes.energistics.etp.v12.datatypes.array_of_long import ArrayOfLong
|
|
14
|
-
from etptypes.energistics.etp.v12.datatypes.data_array_types.data_array import
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
from etptypes.energistics.etp.v12.datatypes.data_array_types.data_array_metadata import
|
|
19
|
-
DataArrayMetadata
|
|
22
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.data_array import DataArray
|
|
23
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.data_array_identifier import (
|
|
24
|
+
DataArrayIdentifier,
|
|
25
|
+
)
|
|
26
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.data_array_metadata import (
|
|
27
|
+
DataArrayMetadata,
|
|
28
|
+
)
|
|
20
29
|
from etptypes.energistics.etp.v12.datatypes.data_value import DataValue
|
|
21
30
|
from etptypes.energistics.etp.v12.datatypes.error_info import ErrorInfo
|
|
22
31
|
from etptypes.energistics.etp.v12.datatypes.message_header import MessageHeader
|
|
23
|
-
from etptypes.energistics.etp.v12.datatypes.object.data_object import
|
|
24
|
-
DataObject
|
|
32
|
+
from etptypes.energistics.etp.v12.datatypes.object.data_object import DataObject
|
|
25
33
|
from etptypes.energistics.etp.v12.datatypes.object.dataspace import Dataspace
|
|
26
|
-
from etptypes.energistics.etp.v12.datatypes.server_capabilities import
|
|
27
|
-
ServerCapabilities
|
|
34
|
+
from etptypes.energistics.etp.v12.datatypes.server_capabilities import (
|
|
35
|
+
ServerCapabilities,
|
|
36
|
+
)
|
|
28
37
|
from etptypes.energistics.etp.v12.datatypes.uuid import Uuid
|
|
29
|
-
from etptypes.energistics.etp.v12.datatypes.supported_data_object import
|
|
30
|
-
SupportedDataObject
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
from etptypes.energistics.etp.v12.datatypes.supported_data_object import (
|
|
39
|
+
SupportedDataObject,
|
|
40
|
+
)
|
|
41
|
+
from etptypes.energistics.etp.v12.datatypes.supported_protocol import SupportedProtocol
|
|
33
42
|
from etptypes.energistics.etp.v12.datatypes.version import Version
|
|
34
43
|
from etptypes.energistics.etp.v12.protocol.core.acknowledge import Acknowledge
|
|
35
44
|
from etptypes.energistics.etp.v12.protocol.core.authorize import Authorize
|
|
36
|
-
from etptypes.energistics.etp.v12.protocol.core.authorize_response import
|
|
37
|
-
AuthorizeResponse
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
from etptypes.energistics.etp.v12.protocol.core.authorize_response import (
|
|
46
|
+
AuthorizeResponse,
|
|
47
|
+
)
|
|
48
|
+
from etptypes.energistics.etp.v12.protocol.core.close_session import CloseSession
|
|
40
49
|
from etptypes.energistics.etp.v12.protocol.core.open_session import OpenSession
|
|
41
|
-
from etptypes.energistics.etp.v12.protocol.core.protocol_exception import
|
|
42
|
-
ProtocolException
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
from etptypes.energistics.etp.v12.protocol.transaction.start_transaction import
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
from etptypes.energistics.etp.v12.
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
from etptypes.energistics.etp.v12.protocol.core.protocol_exception import (
|
|
51
|
+
ProtocolException,
|
|
52
|
+
)
|
|
53
|
+
from etptypes.energistics.etp.v12.protocol.core.request_session import RequestSession
|
|
54
|
+
from etptypes.energistics.etp.v12.protocol.transaction.start_transaction import (
|
|
55
|
+
StartTransaction,
|
|
56
|
+
)
|
|
57
|
+
from etptypes.energistics.etp.v12.protocol.transaction.commit_transaction import (
|
|
58
|
+
CommitTransaction,
|
|
59
|
+
)
|
|
60
|
+
from etptypes.energistics.etp.v12.protocol.transaction.rollback_transaction import (
|
|
61
|
+
RollbackTransaction,
|
|
62
|
+
)
|
|
63
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.put_data_subarrays_type import (
|
|
64
|
+
PutDataSubarraysType,
|
|
65
|
+
)
|
|
66
|
+
from etptypes.energistics.etp.v12.datatypes.object.relationship_kind import (
|
|
67
|
+
RelationshipKind,
|
|
68
|
+
)
|
|
51
69
|
from etptypes.energistics.etp.v12.datatypes.object.context_info import ContextInfo
|
|
52
|
-
from etptypes.energistics.etp.v12.protocol.data_array.put_data_subarrays import
|
|
53
|
-
PutDataSubarrays
|
|
54
|
-
|
|
55
|
-
from etptypes.energistics.etp.v12.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
from etptypes.energistics.etp.v12.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
from etptypes.energistics.etp.v12.protocol.data_array.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
from etptypes.energistics.etp.v12.protocol.data_array.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
from etptypes.energistics.etp.v12.protocol.data_array.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
from etptypes.energistics.etp.v12.protocol.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
from etptypes.energistics.etp.v12.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
from etptypes.energistics.etp.v12.protocol.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
from etptypes.energistics.etp.v12.protocol.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
from etptypes.energistics.etp.v12.protocol.
|
|
108
|
-
|
|
109
|
-
from etptypes.energistics.etp.v12.protocol.
|
|
110
|
-
|
|
70
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_data_subarrays import (
|
|
71
|
+
PutDataSubarrays,
|
|
72
|
+
)
|
|
73
|
+
from etptypes.energistics.etp.v12.datatypes.object.context_scope_kind import (
|
|
74
|
+
ContextScopeKind,
|
|
75
|
+
)
|
|
76
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_data_subarrays_response import (
|
|
77
|
+
PutDataSubarraysResponse,
|
|
78
|
+
)
|
|
79
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.get_data_subarrays_type import (
|
|
80
|
+
GetDataSubarraysType,
|
|
81
|
+
)
|
|
82
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_subarrays import (
|
|
83
|
+
GetDataSubarrays,
|
|
84
|
+
)
|
|
85
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_subarrays_response import (
|
|
86
|
+
GetDataSubarraysResponse,
|
|
87
|
+
)
|
|
88
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.put_data_arrays_type import (
|
|
89
|
+
PutDataArraysType,
|
|
90
|
+
)
|
|
91
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_data_arrays import (
|
|
92
|
+
PutDataArrays,
|
|
93
|
+
)
|
|
94
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_data_arrays_response import (
|
|
95
|
+
PutDataArraysResponse,
|
|
96
|
+
)
|
|
97
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_arrays import (
|
|
98
|
+
GetDataArrays,
|
|
99
|
+
)
|
|
100
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_arrays_response import (
|
|
101
|
+
GetDataArraysResponse,
|
|
102
|
+
)
|
|
103
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_array_metadata import (
|
|
104
|
+
GetDataArrayMetadata,
|
|
105
|
+
)
|
|
106
|
+
from etptypes.energistics.etp.v12.protocol.data_array.get_data_array_metadata_response import (
|
|
107
|
+
GetDataArrayMetadataResponse,
|
|
108
|
+
)
|
|
109
|
+
from etptypes.energistics.etp.v12.datatypes.data_array_types.put_uninitialized_data_array_type import (
|
|
110
|
+
PutUninitializedDataArrayType,
|
|
111
|
+
)
|
|
112
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_uninitialized_data_arrays import (
|
|
113
|
+
PutUninitializedDataArrays,
|
|
114
|
+
)
|
|
115
|
+
from etptypes.energistics.etp.v12.protocol.data_array.put_uninitialized_data_arrays_response import (
|
|
116
|
+
PutUninitializedDataArraysResponse,
|
|
117
|
+
)
|
|
118
|
+
from etptypes.energistics.etp.v12.protocol.store.delete_data_objects import (
|
|
119
|
+
DeleteDataObjects,
|
|
120
|
+
)
|
|
121
|
+
from etptypes.energistics.etp.v12.protocol.store.delete_data_objects_response import (
|
|
122
|
+
DeleteDataObjectsResponse,
|
|
123
|
+
)
|
|
124
|
+
from etptypes.energistics.etp.v12.datatypes.object.resource import Resource
|
|
125
|
+
from etptypes.energistics.etp.v12.protocol.discovery.get_resources import GetResources
|
|
126
|
+
from etptypes.energistics.etp.v12.protocol.store.put_data_objects import PutDataObjects
|
|
127
|
+
from etptypes.energistics.etp.v12.protocol.store.put_data_objects_response import (
|
|
128
|
+
PutDataObjectsResponse,
|
|
129
|
+
)
|
|
130
|
+
from etptypes.energistics.etp.v12.protocol.store.get_data_objects import GetDataObjects
|
|
131
|
+
from etptypes.energistics.etp.v12.protocol.store.get_data_objects_response import (
|
|
132
|
+
GetDataObjectsResponse,
|
|
133
|
+
)
|
|
134
|
+
from etptypes.energistics.etp.v12.protocol.dataspace.delete_dataspaces import (
|
|
135
|
+
DeleteDataspaces,
|
|
136
|
+
)
|
|
137
|
+
from etptypes.energistics.etp.v12.protocol.dataspace.delete_dataspaces_response import (
|
|
138
|
+
DeleteDataspacesResponse,
|
|
139
|
+
)
|
|
140
|
+
from etptypes.energistics.etp.v12.protocol.dataspace.put_dataspaces import PutDataspaces
|
|
141
|
+
from etptypes.energistics.etp.v12.protocol.dataspace.put_dataspaces_response import (
|
|
142
|
+
PutDataspacesResponse,
|
|
143
|
+
)
|
|
144
|
+
from etptypes.energistics.etp.v12.protocol.core.authorize import Authorize
|
|
145
|
+
from etptypes.energistics.etp.v12.protocol.core.authorize_response import (
|
|
146
|
+
AuthorizeResponse,
|
|
147
|
+
)
|
|
111
148
|
#
|
|
112
149
|
# NOTE we want to `from etptypes.energistics.etp.v12 import datatypes, protocol` and use this
|
|
113
150
|
# however this not supported with pylance as of yet, hence so many imports are reexported here
|