pysdmx 1.8.0__py3-none-any.whl → 1.8.1__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.
- pysdmx/__init__.py +1 -1
- pysdmx/io/json/fusion/messages/msd.py +1 -1
- pysdmx/io/json/sdmxjson2/messages/msd.py +5 -1
- {pysdmx-1.8.0.dist-info → pysdmx-1.8.1.dist-info}/METADATA +1 -1
- {pysdmx-1.8.0.dist-info → pysdmx-1.8.1.dist-info}/RECORD +7 -7
- {pysdmx-1.8.0.dist-info → pysdmx-1.8.1.dist-info}/WHEEL +0 -0
- {pysdmx-1.8.0.dist-info → pysdmx-1.8.1.dist-info}/licenses/LICENSE +0 -0
pysdmx/__init__.py
CHANGED
|
@@ -29,7 +29,7 @@ class FusionMetadataAttribute(Struct, frozen=True):
|
|
|
29
29
|
id: str
|
|
30
30
|
concept: str
|
|
31
31
|
minOccurs: int
|
|
32
|
-
maxOccurs: Union[int, Literal["unbounded"]]
|
|
32
|
+
maxOccurs: Union[int, Literal["unbounded"]] = "unbounded"
|
|
33
33
|
presentational: Optional[bool] = False
|
|
34
34
|
representation: Optional[FusionRepresentation] = None
|
|
35
35
|
metadataAttributes: Sequence["FusionMetadataAttribute"] = ()
|
|
@@ -37,6 +37,7 @@ class JsonMetadataAttribute(Struct, frozen=True, omit_defaults=True):
|
|
|
37
37
|
maxOccurs: Union[int, Literal["unbounded"]]
|
|
38
38
|
isPresentational: bool
|
|
39
39
|
localRepresentation: Optional[JsonRepresentation] = None
|
|
40
|
+
metadataAttributes: Sequence["JsonMetadataAttribute"] = ()
|
|
40
41
|
|
|
41
42
|
def to_model(
|
|
42
43
|
self, cs: Sequence[JsonConceptScheme], cls: Sequence[Codelist]
|
|
@@ -72,7 +73,7 @@ class JsonMetadataAttribute(Struct, frozen=True, omit_defaults=True):
|
|
|
72
73
|
local_codes=codes,
|
|
73
74
|
array_def=ab,
|
|
74
75
|
local_enum_ref=local_enum_ref,
|
|
75
|
-
components=(),
|
|
76
|
+
components=[a.to_model(cs, cls) for a in self.metadataAttributes],
|
|
76
77
|
)
|
|
77
78
|
|
|
78
79
|
@classmethod
|
|
@@ -94,6 +95,9 @@ class JsonMetadataAttribute(Struct, frozen=True, omit_defaults=True):
|
|
|
94
95
|
minOccurs=min_occurs,
|
|
95
96
|
maxOccurs=max_occurs,
|
|
96
97
|
isPresentational=cmp.is_presentational,
|
|
98
|
+
metadataAttributes=[
|
|
99
|
+
JsonMetadataAttribute.from_model(c) for c in cmp.components
|
|
100
|
+
],
|
|
97
101
|
)
|
|
98
102
|
|
|
99
103
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pysdmx/__extras_check.py,sha256=I39OaM1lAPBnyzHVJ7kA_ZA_tMeDAQLr6ZKqEQ9MK1Q,1659
|
|
2
|
-
pysdmx/__init__.py,sha256=
|
|
2
|
+
pysdmx/__init__.py,sha256=ewDMAm-SxznkiNhpzGsqtt8Up4ZirPcPQ4RDZLupcsE,67
|
|
3
3
|
pysdmx/api/__init__.py,sha256=8lRaF6kEO51ehl0fmW_pHLvkN_34TtEhqhr3oKo6E6g,26
|
|
4
4
|
pysdmx/api/dc/__init__.py,sha256=oPU32X8CRZy4T1to9mO5KMqMwxQsVI424dPqai-I8zI,121
|
|
5
5
|
pysdmx/api/dc/_api.py,sha256=poy1FYFXnF6maBGy5lpOodf32-7QQjH8PCBNDkuOXxQ,7747
|
|
@@ -50,7 +50,7 @@ pysdmx/io/json/fusion/messages/dsd.py,sha256=9QO0IzDSa3sHRTt6tvRAE1tAieugxB55tJ0
|
|
|
50
50
|
pysdmx/io/json/fusion/messages/map.py,sha256=TPsCFuUfk5Jhhe7CNvEoHuFNZFpHhvNiYFWeIEUx-sc,7695
|
|
51
51
|
pysdmx/io/json/fusion/messages/metadataflow.py,sha256=Js4j8lUF9ZwqL7lJUrfrjk9tmBmRQPt8qxdrfnZ6R5E,1374
|
|
52
52
|
pysdmx/io/json/fusion/messages/mpa.py,sha256=WvcHn7Pa_UBHxkZbfSzIxc8qeeMfTWThxgCRHuioXFY,1494
|
|
53
|
-
pysdmx/io/json/fusion/messages/msd.py,sha256=
|
|
53
|
+
pysdmx/io/json/fusion/messages/msd.py,sha256=S7PR8DbY1Vob5UUCTHbSmfpz5kMMyGJvtE0zcF1RqbE,3781
|
|
54
54
|
pysdmx/io/json/fusion/messages/org.py,sha256=gWIvmvVrj5wXCrwbsJL0B13YM3WjlfIQxrRUc_WAoYs,9538
|
|
55
55
|
pysdmx/io/json/fusion/messages/pa.py,sha256=6zN8Qxj5bdf5zo2N9TwYlSLyGxokvsELtk1--1cMbxw,1393
|
|
56
56
|
pysdmx/io/json/fusion/messages/report.py,sha256=ZE62ZmHlCXk3TxRTRWCDCKVMhnN0J5UjMEzrsnD5I3E,1551
|
|
@@ -76,7 +76,7 @@ pysdmx/io/json/sdmxjson2/messages/dsd.py,sha256=8-Q5ADEk0cSKEtXECBqOkzW4yN9dhRmm
|
|
|
76
76
|
pysdmx/io/json/sdmxjson2/messages/map.py,sha256=-hhUyPxIWKoIxij0qbuoFDsZMqmtMfclCMUme4c9SS0,16767
|
|
77
77
|
pysdmx/io/json/sdmxjson2/messages/metadataflow.py,sha256=37VsdrDpXWKkRczPjxozygrmZAiWxyZbBwDUeg03DDk,2936
|
|
78
78
|
pysdmx/io/json/sdmxjson2/messages/mpa.py,sha256=ryoQCvOvd2j6gPdGOEML4bc-NXUSetuKNOfmd9Ogn2s,3050
|
|
79
|
-
pysdmx/io/json/sdmxjson2/messages/msd.py,sha256=
|
|
79
|
+
pysdmx/io/json/sdmxjson2/messages/msd.py,sha256=R2onHmPfG0q1NAOLqc36cbKihIaB1ntGysN40df28VY,8225
|
|
80
80
|
pysdmx/io/json/sdmxjson2/messages/pa.py,sha256=VoaPBgcWGwWU7h5IaVa5wNWncOoktWihSXjcP4vEb00,2780
|
|
81
81
|
pysdmx/io/json/sdmxjson2/messages/provider.py,sha256=htAwdDzVR3qeyExhmjpvg8W0X4lWqRh2Bvd5H8wsOTY,8197
|
|
82
82
|
pysdmx/io/json/sdmxjson2/messages/report.py,sha256=thcZZUuoiJ6OJ9P33EOTN3PIHFKxdQUMapI7HmSoB4A,6571
|
|
@@ -160,7 +160,7 @@ pysdmx/util/__init__.py,sha256=m_XWRAmVJ7F6ai4Ckrj_YuPbhg3cJZAXeZrEThrL88k,3997
|
|
|
160
160
|
pysdmx/util/_date_pattern_map.py,sha256=IS1qONwVHbTBNIFCT0Rqbijj2a9mYvs7onXSK6GeQAQ,1620
|
|
161
161
|
pysdmx/util/_model_utils.py,sha256=d0XY8cnxvviQtkJJInVik7LWeuqX-eb4-zikFortL58,2335
|
|
162
162
|
pysdmx/util/_net_utils.py,sha256=nOTz_x3FgFrwKh42_J70IqYXz9duQkMFJWtejZXcLHs,1326
|
|
163
|
-
pysdmx-1.8.
|
|
164
|
-
pysdmx-1.8.
|
|
165
|
-
pysdmx-1.8.
|
|
166
|
-
pysdmx-1.8.
|
|
163
|
+
pysdmx-1.8.1.dist-info/METADATA,sha256=iz3Tj7Ygmub585wRzXNuWbqrLs7S-3PrKH4dq65EIP8,4719
|
|
164
|
+
pysdmx-1.8.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
165
|
+
pysdmx-1.8.1.dist-info/licenses/LICENSE,sha256=3XTNDPtv2RxDUNkQzn9MIWit2u7_Ob5daMLEq-4pBJs,649
|
|
166
|
+
pysdmx-1.8.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|