maxml 1.0.4__py3-none-any.whl → 1.0.5__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.
- maxml/element/__init__.py +1 -1
- maxml/namespace/__init__.py +1 -1
- maxml/version.txt +1 -1
- {maxml-1.0.4.dist-info → maxml-1.0.5.dist-info}/METADATA +15 -8
- maxml-1.0.5.dist-info/RECORD +12 -0
- {maxml-1.0.4.dist-info → maxml-1.0.5.dist-info}/WHEEL +1 -1
- maxml-1.0.4.dist-info/RECORD +0 -12
- {maxml-1.0.4.dist-info → maxml-1.0.5.dist-info}/top_level.txt +0 -0
- {maxml-1.0.4.dist-info → maxml-1.0.5.dist-info}/zip-safe +0 -0
maxml/element/__init__.py
CHANGED
maxml/namespace/__init__.py
CHANGED
|
@@ -94,7 +94,7 @@ class Namespace(object):
|
|
|
94
94
|
def copy(self) -> Namespace:
|
|
95
95
|
"""Create an independent copy of the current Namespace instance."""
|
|
96
96
|
|
|
97
|
-
return Namespace(prefix=self.prefix, uri=self.uri)
|
|
97
|
+
return Namespace(prefix=self.prefix, uri=self.uri, promoted=self.promoted)
|
|
98
98
|
|
|
99
99
|
@property
|
|
100
100
|
def promoted(self) -> bool:
|
maxml/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.5
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: maxml
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: A streamlined pure Python XML serializer.
|
|
5
5
|
Author: Daniel Sissman
|
|
6
6
|
License-Expression: MIT
|
|
@@ -19,9 +19,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
Requires-Dist: classicist==1.0.*
|
|
22
|
-
Requires-Dist: enumerific==1.
|
|
22
|
+
Requires-Dist: enumerific==1.1.*
|
|
23
23
|
Provides-Extra: development
|
|
24
|
-
Requires-Dist: black==
|
|
24
|
+
Requires-Dist: black==26.1.*; extra == "development"
|
|
25
25
|
Requires-Dist: pytest==8.3.*; extra == "development"
|
|
26
26
|
Requires-Dist: pytest-codeblocks==0.17.0; extra == "development"
|
|
27
27
|
Provides-Extra: distribution
|
|
@@ -133,11 +133,15 @@ The `Element` class provides the following methods:
|
|
|
133
133
|
Each namespace consists of a prefix which can be used to prefix element names
|
|
134
134
|
and the URI associated with that namespace prefix.
|
|
135
135
|
|
|
136
|
-
Optionally, a namespace can be marked as promoted during registration, which
|
|
137
|
-
result in the namespace being serialized into the XML before any attributes on
|
|
138
|
-
element. Namespaces that are not marked as promoted will appear after
|
|
139
|
-
Namespace promotion can be enabled for a given namespace
|
|
140
|
-
passing the optional `promoted` keyword argument with the
|
|
136
|
+
Optionally, a namespace can be marked as being promoted during registration, which
|
|
137
|
+
will result in the namespace being serialized into the XML before any attributes on
|
|
138
|
+
the element. Namespaces that are not marked as being promoted will appear after any
|
|
139
|
+
attributes on the element. Namespace promotion can be enabled for a given namespace
|
|
140
|
+
during registration by passing the optional `promoted` keyword argument with the
|
|
141
|
+
value of `True`. Whether a namespace is marked as promoted or not can be changed
|
|
142
|
+
after registration by changing a `Namespace` entity's `promoted` property value or
|
|
143
|
+
by using the `promote()` and `unpromote()` methods. See the **Namespace Class** for
|
|
144
|
+
more information.
|
|
141
145
|
|
|
142
146
|
For example, the 'rdf' prefix is associated with the following canonical URI:
|
|
143
147
|
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
@@ -284,6 +288,9 @@ The `Namespace` class constructor `Namespace(...)` takes the following arguments
|
|
|
284
288
|
|
|
285
289
|
* `prefix` (`str`) – The required `prefix` argument sets the namespace prefix.
|
|
286
290
|
* `uri` (`str`) – The required `uri` argument sets the namespace URI.
|
|
291
|
+
* `promoted` (`bool`) – The optional `promoted` argument sets whether the namespace is
|
|
292
|
+
marked as being promoted or not. Promoted namespaces result in the namespace being
|
|
293
|
+
serialized into the XML before any attributes on their associated element.
|
|
287
294
|
|
|
288
295
|
The `Namespace` class provides the following methods:
|
|
289
296
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
maxml/__init__.py,sha256=9wLSTIlZTXinpBr9ABp_PUWhfxubtNM89Iac2VCNet8,150
|
|
2
|
+
maxml/version.txt,sha256=nXE_EpedYoeSULwKIDXj71cxWsQlHoUBnSHHXtcmlyA,5
|
|
3
|
+
maxml/element/__init__.py,sha256=fE8S25ijZORtZMql0w58KONgoybWkkfXynCFNxEPUb4,26394
|
|
4
|
+
maxml/enumerations/__init__.py,sha256=N15XKtEZp2cFwqq_1GXyODqoOE--z9WukZGt_rFur2E,1153
|
|
5
|
+
maxml/exceptions/__init__.py,sha256=qMI3bIXJe6zDXzRnxdW3v6wbxSYfd1oK-9lnxvZzzjQ,38
|
|
6
|
+
maxml/logging/__init__.py,sha256=AMpvZEQH9GIBe8609sMwb2T64rovpkRRCc9rs2kHy8g,52
|
|
7
|
+
maxml/namespace/__init__.py,sha256=EJs0gJClL2Kz0ECtGr8hQzrXOtGxi3RIbLzAoXIufno,4091
|
|
8
|
+
maxml-1.0.5.dist-info/METADATA,sha256=dPUqqC104G7xgyz0jdGGbxx4bszCVVgE-tj1BkPicGw,17165
|
|
9
|
+
maxml-1.0.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
10
|
+
maxml-1.0.5.dist-info/top_level.txt,sha256=ZFK3SmCc04Dzhl9QkO_hVBAEiHwCNrwn8X_PINWE9C4,6
|
|
11
|
+
maxml-1.0.5.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
12
|
+
maxml-1.0.5.dist-info/RECORD,,
|
maxml-1.0.4.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
maxml/__init__.py,sha256=9wLSTIlZTXinpBr9ABp_PUWhfxubtNM89Iac2VCNet8,150
|
|
2
|
-
maxml/version.txt,sha256=rqWtvvV0eFJzxPOcG3aHz4AZk-DLa_Z4GkFonk7bsgw,5
|
|
3
|
-
maxml/element/__init__.py,sha256=TDHieGdGX6ypTWq885ilJgO-sRUt4AT8twa3w9MElOM,26396
|
|
4
|
-
maxml/enumerations/__init__.py,sha256=N15XKtEZp2cFwqq_1GXyODqoOE--z9WukZGt_rFur2E,1153
|
|
5
|
-
maxml/exceptions/__init__.py,sha256=qMI3bIXJe6zDXzRnxdW3v6wbxSYfd1oK-9lnxvZzzjQ,38
|
|
6
|
-
maxml/logging/__init__.py,sha256=AMpvZEQH9GIBe8609sMwb2T64rovpkRRCc9rs2kHy8g,52
|
|
7
|
-
maxml/namespace/__init__.py,sha256=1TT9vo6iWQyxEOLPzvHd_cf4i5_w3F-tdOm_k-VABQM,4067
|
|
8
|
-
maxml-1.0.4.dist-info/METADATA,sha256=UTM15oNsmwGV5YFujZhMYBXKGIF8U8D_BQ34OVENOj4,16626
|
|
9
|
-
maxml-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
-
maxml-1.0.4.dist-info/top_level.txt,sha256=ZFK3SmCc04Dzhl9QkO_hVBAEiHwCNrwn8X_PINWE9C4,6
|
|
11
|
-
maxml-1.0.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
12
|
-
maxml-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|