python-hwpx 2.9.0__py3-none-any.whl → 2.10.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.
Files changed (52) hide show
  1. hwpx/__init__.py +39 -0
  2. hwpx/authoring.py +1881 -0
  3. hwpx/builder/__init__.py +43 -0
  4. hwpx/builder/core.py +512 -0
  5. hwpx/builder/report.py +59 -0
  6. hwpx/data/Skeleton.hwpx +0 -0
  7. hwpx/document.py +190 -14
  8. hwpx/form_fill.py +333 -0
  9. hwpx/opc/package.py +63 -11
  10. hwpx/opc/relationships.py +1 -0
  11. hwpx/opc/xml_utils.py +1 -0
  12. hwpx/oxml/__init__.py +1 -0
  13. hwpx/oxml/body.py +23 -1
  14. hwpx/oxml/common.py +1 -0
  15. hwpx/oxml/document.py +991 -42
  16. hwpx/oxml/header.py +1 -0
  17. hwpx/oxml/header_part.py +1 -0
  18. hwpx/oxml/memo.py +1 -0
  19. hwpx/oxml/namespaces.py +26 -0
  20. hwpx/oxml/paragraph.py +1 -0
  21. hwpx/oxml/parser.py +1 -0
  22. hwpx/oxml/schema.py +1 -0
  23. hwpx/oxml/section.py +1 -0
  24. hwpx/oxml/table.py +1 -0
  25. hwpx/oxml/utils.py +1 -0
  26. hwpx/package.py +1 -0
  27. hwpx/presets/__init__.py +22 -0
  28. hwpx/presets/proposal.py +538 -0
  29. hwpx/template_formfit.py +592 -0
  30. hwpx/templates.py +1 -0
  31. hwpx/tools/__init__.py +1 -0
  32. hwpx/tools/archive_cli.py +32 -1
  33. hwpx/tools/exporter.py +43 -146
  34. hwpx/tools/object_finder.py +1 -0
  35. hwpx/tools/package_validator.py +63 -1
  36. hwpx/tools/page_guard.py +1 -0
  37. hwpx/tools/recover.py +151 -0
  38. hwpx/tools/repair.py +263 -0
  39. hwpx/tools/table_navigation.py +1 -0
  40. hwpx/tools/template_analyzer.py +1 -0
  41. hwpx/tools/text_extract_cli.py +1 -0
  42. hwpx/tools/text_extractor.py +5 -1
  43. hwpx/tools/validator.py +27 -7
  44. {python_hwpx-2.9.0.dist-info → python_hwpx-2.10.0.dist-info}/METADATA +133 -80
  45. python_hwpx-2.10.0.dist-info/RECORD +53 -0
  46. {python_hwpx-2.9.0.dist-info → python_hwpx-2.10.0.dist-info}/entry_points.txt +1 -0
  47. python_hwpx-2.10.0.dist-info/licenses/LICENSE +178 -0
  48. python_hwpx-2.10.0.dist-info/licenses/NOTICE +42 -0
  49. python_hwpx-2.9.0.dist-info/RECORD +0 -42
  50. python_hwpx-2.9.0.dist-info/licenses/LICENSE +0 -32
  51. {python_hwpx-2.9.0.dist-info → python_hwpx-2.10.0.dist-info}/WHEEL +0 -0
  52. {python_hwpx-2.9.0.dist-info → python_hwpx-2.10.0.dist-info}/top_level.txt +0 -0
hwpx/__init__.py CHANGED
@@ -1,3 +1,4 @@
1
+ # SPDX-License-Identifier: Apache-2.0
1
2
  """High-level utilities for working with HWPX documents."""
2
3
 
3
4
  from importlib.metadata import PackageNotFoundError, version as _metadata_version
@@ -26,15 +27,53 @@ from .tools.text_extractor import (
26
27
  from .tools.object_finder import FoundElement, ObjectFinder
27
28
  from .document import HwpxDocument
28
29
  from .package import HwpxPackage
30
+ from .authoring import (
31
+ AUTHORING_REPORT_VERSION,
32
+ DEFAULT_STYLE_PRESET,
33
+ DOCUMENT_PLAN_SCHEMA_VERSION,
34
+ DocumentBlock,
35
+ DocumentPlan,
36
+ DocumentStylePreset,
37
+ PlanValidationIssue,
38
+ PlanValidationReport,
39
+ create_document_from_plan,
40
+ inspect_document_authoring_quality,
41
+ inspect_operating_plan_quality,
42
+ normalize_document_plan,
43
+ validate_document_plan,
44
+ )
45
+ from .template_formfit import (
46
+ TEMPLATE_FORMFIT_BASELINE_SCHEMA_VERSION,
47
+ TEMPLATE_FORMFIT_PLAN_SCHEMA_VERSION,
48
+ analyze_template_formfit,
49
+ apply_template_formfit,
50
+ )
29
51
 
30
52
  __all__ = [
31
53
  "__version__",
54
+ "AUTHORING_REPORT_VERSION",
32
55
  "DEFAULT_NAMESPACES",
56
+ "DEFAULT_STYLE_PRESET",
57
+ "DOCUMENT_PLAN_SCHEMA_VERSION",
58
+ "DocumentBlock",
59
+ "DocumentPlan",
60
+ "DocumentStylePreset",
33
61
  "ParagraphInfo",
62
+ "PlanValidationReport",
34
63
  "SectionInfo",
64
+ "TEMPLATE_FORMFIT_BASELINE_SCHEMA_VERSION",
65
+ "TEMPLATE_FORMFIT_PLAN_SCHEMA_VERSION",
35
66
  "TextExtractor",
36
67
  "FoundElement",
37
68
  "ObjectFinder",
69
+ "PlanValidationIssue",
38
70
  "HwpxDocument",
39
71
  "HwpxPackage",
72
+ "create_document_from_plan",
73
+ "analyze_template_formfit",
74
+ "apply_template_formfit",
75
+ "inspect_document_authoring_quality",
76
+ "inspect_operating_plan_quality",
77
+ "normalize_document_plan",
78
+ "validate_document_plan",
40
79
  ]