python-docx-oss 0.3.3__py3-none-any.whl → 0.5.0__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.
docx/__init__.py CHANGED
@@ -9,14 +9,25 @@ from __future__ import annotations
9
9
  from typing import TYPE_CHECKING, Type
10
10
 
11
11
  from docx.api import Document
12
+ from docx.inspection import FingerprintItem, FingerprintPolicy, fingerprint, inspect, serialize_xml
13
+ from docx.transforms import normalize, repair
12
14
 
13
15
  if TYPE_CHECKING:
14
16
  from docx.opc.part import Part
15
17
 
16
- __version__ = "0.3.3"
18
+ __version__ = "0.5.0"
17
19
 
18
20
 
19
- __all__ = ["Document"]
21
+ __all__ = [
22
+ "Document",
23
+ "FingerprintItem",
24
+ "FingerprintPolicy",
25
+ "fingerprint",
26
+ "inspect",
27
+ "normalize",
28
+ "repair",
29
+ "serialize_xml",
30
+ ]
20
31
 
21
32
 
22
33
  # -- register custom Part classes with opc package reader --
@@ -0,0 +1,31 @@
1
+ """Read-only package inspection and configurable content fingerprints."""
2
+
3
+ from docx.inspection.features import ScanEvent
4
+ from docx.inspection.fingerprint import (
5
+ FingerprintItem,
6
+ FingerprintPolicy,
7
+ fingerprint,
8
+ serialize_xml,
9
+ )
10
+ from docx.inspection.reader import inspect
11
+ from docx.inspection.result import (
12
+ Finding,
13
+ PackageInspection,
14
+ PackageInventory,
15
+ PartInventory,
16
+ RelationshipInventory,
17
+ )
18
+
19
+ __all__ = [
20
+ "ScanEvent",
21
+ "Finding",
22
+ "FingerprintItem",
23
+ "FingerprintPolicy",
24
+ "PackageInspection",
25
+ "PackageInventory",
26
+ "PartInventory",
27
+ "RelationshipInventory",
28
+ "fingerprint",
29
+ "serialize_xml",
30
+ "inspect",
31
+ ]