python-hwpx 2.2__py3-none-any.whl → 2.4__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.
- hwpx/__init__.py +36 -36
- hwpx/document.py +1362 -890
- hwpx/opc/package.py +607 -514
- hwpx/opc/xml_utils.py +86 -50
- hwpx/oxml/__init__.py +222 -220
- hwpx/oxml/body.py +435 -435
- hwpx/oxml/common.py +36 -36
- hwpx/oxml/document.py +4733 -3460
- hwpx/oxml/header.py +1369 -1369
- hwpx/oxml/header_part.py +10 -10
- hwpx/oxml/memo.py +10 -10
- hwpx/oxml/namespaces.py +24 -0
- hwpx/oxml/paragraph.py +10 -10
- hwpx/oxml/parser.py +72 -72
- hwpx/oxml/schema.py +44 -44
- hwpx/oxml/section.py +10 -10
- hwpx/oxml/table.py +10 -10
- hwpx/oxml/utils.py +85 -85
- hwpx/package.py +30 -24
- hwpx/templates.py +33 -33
- hwpx/tools/__init__.py +44 -36
- hwpx/tools/_schemas/header.xsd +14 -14
- hwpx/tools/_schemas/section.xsd +12 -12
- hwpx/tools/exporter.py +272 -0
- hwpx/tools/object_finder.py +347 -347
- hwpx/tools/text_extractor.py +726 -726
- hwpx/tools/validator.py +184 -184
- {python_hwpx-2.2.dist-info → python_hwpx-2.4.dist-info}/METADATA +333 -257
- python_hwpx-2.4.dist-info/RECORD +35 -0
- {python_hwpx-2.2.dist-info → python_hwpx-2.4.dist-info}/licenses/LICENSE +32 -32
- python_hwpx-2.2.dist-info/RECORD +0 -33
- {python_hwpx-2.2.dist-info → python_hwpx-2.4.dist-info}/WHEEL +0 -0
- {python_hwpx-2.2.dist-info → python_hwpx-2.4.dist-info}/entry_points.txt +0 -0
- {python_hwpx-2.2.dist-info → python_hwpx-2.4.dist-info}/top_level.txt +0 -0
hwpx/__init__.py
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"""High-level utilities for working with HWPX documents."""
|
|
2
|
-
|
|
3
|
-
from importlib.metadata import PackageNotFoundError, version as _metadata_version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def _resolve_version() -> str:
|
|
7
|
-
"""패키지 메타데이터에서 현재 배포 버전을 조회합니다."""
|
|
8
|
-
try:
|
|
9
|
-
return _metadata_version("python-hwpx")
|
|
10
|
-
except PackageNotFoundError:
|
|
11
|
-
return "0+unknown"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
__version__ = _resolve_version()
|
|
15
|
-
|
|
16
|
-
from .tools.text_extractor import (
|
|
17
|
-
DEFAULT_NAMESPACES,
|
|
18
|
-
ParagraphInfo,
|
|
19
|
-
SectionInfo,
|
|
20
|
-
TextExtractor,
|
|
21
|
-
)
|
|
22
|
-
from .tools.object_finder import FoundElement, ObjectFinder
|
|
23
|
-
from .document import HwpxDocument
|
|
24
|
-
from .package import HwpxPackage
|
|
25
|
-
|
|
26
|
-
__all__ = [
|
|
27
|
-
"__version__",
|
|
28
|
-
"DEFAULT_NAMESPACES",
|
|
29
|
-
"ParagraphInfo",
|
|
30
|
-
"SectionInfo",
|
|
31
|
-
"TextExtractor",
|
|
32
|
-
"FoundElement",
|
|
33
|
-
"ObjectFinder",
|
|
34
|
-
"HwpxDocument",
|
|
35
|
-
"HwpxPackage",
|
|
36
|
-
]
|
|
1
|
+
"""High-level utilities for working with HWPX documents."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version as _metadata_version
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def _resolve_version() -> str:
|
|
7
|
+
"""패키지 메타데이터에서 현재 배포 버전을 조회합니다."""
|
|
8
|
+
try:
|
|
9
|
+
return _metadata_version("python-hwpx")
|
|
10
|
+
except PackageNotFoundError:
|
|
11
|
+
return "0+unknown"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
__version__ = _resolve_version()
|
|
15
|
+
|
|
16
|
+
from .tools.text_extractor import (
|
|
17
|
+
DEFAULT_NAMESPACES,
|
|
18
|
+
ParagraphInfo,
|
|
19
|
+
SectionInfo,
|
|
20
|
+
TextExtractor,
|
|
21
|
+
)
|
|
22
|
+
from .tools.object_finder import FoundElement, ObjectFinder
|
|
23
|
+
from .document import HwpxDocument
|
|
24
|
+
from .package import HwpxPackage
|
|
25
|
+
|
|
26
|
+
__all__ = [
|
|
27
|
+
"__version__",
|
|
28
|
+
"DEFAULT_NAMESPACES",
|
|
29
|
+
"ParagraphInfo",
|
|
30
|
+
"SectionInfo",
|
|
31
|
+
"TextExtractor",
|
|
32
|
+
"FoundElement",
|
|
33
|
+
"ObjectFinder",
|
|
34
|
+
"HwpxDocument",
|
|
35
|
+
"HwpxPackage",
|
|
36
|
+
]
|