python-hwpx 2.22.0__tar.gz → 2.24.0__tar.gz
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.
- python_hwpx-2.24.0/PKG-INFO +214 -0
- python_hwpx-2.24.0/README.md +172 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/pyproject.toml +1 -1
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/__init__.py +18 -0
- python_hwpx-2.24.0/src/hwpx/body_patch.py +573 -0
- python_hwpx-2.24.0/src/hwpx/evalplan_fill.py +1590 -0
- python_hwpx-2.24.0/src/hwpx/fill_residue.py +163 -0
- python_hwpx-2.24.0/src/hwpx/formfill_quality.py +823 -0
- python_hwpx-2.24.0/src/hwpx/guidance_scan.py +519 -0
- python_hwpx-2.24.0/src/hwpx/ingest/__init__.py +26 -0
- python_hwpx-2.24.0/src/hwpx/ingest/base.py +230 -0
- python_hwpx-2.24.0/src/hwpx/ingest/hwpx_converter.py +127 -0
- python_hwpx-2.24.0/src/hwpx/table_patch.py +1567 -0
- python_hwpx-2.24.0/src/python_hwpx.egg-info/PKG-INFO +214 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/python_hwpx.egg-info/SOURCES.txt +19 -0
- python_hwpx-2.24.0/tests/test_body_patch.py +223 -0
- python_hwpx-2.24.0/tests/test_cell_line_spacing.py +90 -0
- python_hwpx-2.24.0/tests/test_evalplan_fill.py +774 -0
- python_hwpx-2.24.0/tests/test_fill_residue.py +71 -0
- python_hwpx-2.24.0/tests/test_formfill_quality.py +217 -0
- python_hwpx-2.24.0/tests/test_guidance_scan.py +160 -0
- python_hwpx-2.24.0/tests/test_ingest.py +65 -0
- python_hwpx-2.24.0/tests/test_row_heights.py +76 -0
- python_hwpx-2.24.0/tests/test_split_cell.py +113 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_table_patch.py +58 -0
- python_hwpx-2.24.0/tests/test_table_patch_dryrun.py +64 -0
- python_hwpx-2.24.0/tests/test_table_patch_m105.py +240 -0
- python_hwpx-2.22.0/PKG-INFO +0 -467
- python_hwpx-2.22.0/README.md +0 -425
- python_hwpx-2.22.0/src/hwpx/table_patch.py +0 -845
- python_hwpx-2.22.0/src/python_hwpx.egg-info/PKG-INFO +0 -467
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/LICENSE +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/NOTICE +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/setup.cfg +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/authoring.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/builder/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/builder/core.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/builder/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/badges.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/corpus/corpus.json +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/corpus/meeting_summary.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/corpus/notice.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/corpus/report_table.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/corpus.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/roundtrip_batch.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/conformance/runner.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/data/Skeleton.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/_support.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/composer.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/harvest.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/plan.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/fragments/body.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/fragments/heading.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/fragments/info_table.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/fragments/title.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/profile.json +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/application_form/template.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/home_notice/fragments/body.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/home_notice/fragments/heading.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/home_notice/fragments/title.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/home_notice/profile.json +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/home_notice/template.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/fragments/body.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/fragments/heading.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/fragments/info_table.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/fragments/title.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/profile.json +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/official_notice/template.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/fragments/body.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/fragments/heading.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/fragments/info_table.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/fragments/title.xml +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/profile.json +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/profiles/report/template.hwpx +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/design/validator.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/document.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/compose.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/ir.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/measure.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/parser.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/exam/profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fill.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/apply.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/engine.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/measure.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/policy.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/seal.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/form_fit/wordbox.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/layout/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/layout/lint.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/layout/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/opc/package.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/opc/relationships.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/opc/security.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/opc/xml_utils.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/_document_impl.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/body.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/canonical_defaults.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/common.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/document.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/header.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/header_part.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/memo.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/namespaces.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/numbering.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/objects.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/paragraph.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/parser.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/run.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/schema.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/section.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/simple_parts.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/table.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/oxml/utils.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/package.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/patch.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/presets/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/presets/proposal.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/py.typed +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/quality/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/quality/ledger.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/quality/policy.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/quality/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/quality/save_pipeline.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/template_formfit.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/templates.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/_schemas/header.xsd +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/_schemas/section.xsd +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/advanced_generators.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/archive_cli.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/doc_diff.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/exporter.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/__main__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/catalog.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/generator.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/minimize.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/fuzz/runner.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/generic_inventory.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/id_integrity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/idempotence.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/ir_equality.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/layout_preview.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/mail_merge.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/markdown_export.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/object_finder.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/official_lint.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/package_reconcile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/package_validator.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/page_guard.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/pii.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/read_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/recover.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/redline.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/repair.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/report_parser.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/report_utils.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/roundtrip_diff.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/style_profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/table_cleanup.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/table_compute.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/table_navigation.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/template_analyzer.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/text_extract_cli.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/text_extractor.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/toc_author.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/toc_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/tools/validator.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/__init__.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/_hancom_open_rate.ps1 +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/_refresh_hwpx_mac.applescript +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/_render_hwpx.ps1 +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/_render_hwpx_mac.applescript +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/detectors.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/diff.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/masks.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/oracle.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/hwpx/visual/report.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/python_hwpx.egg-info/dependency_links.txt +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/python_hwpx.egg-info/entry_points.txt +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/python_hwpx.egg-info/requires.txt +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/src/python_hwpx.egg-info/top_level.txt +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_advanced_generators.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_authoring_profile_routing.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_authoring_profile_routing_oracle.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_authoring_render_check.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_builder_core.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_builder_plan_v2.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_builder_vertical_slice.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_comment_node_robustness.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_conformance.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_corpus_read_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_coverage_promotion.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_coverage_targets.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_design_builder.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_deviations_registry.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_doc_diff.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_document_context_manager.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_document_formatting.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_document_plan.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_document_plan_computed_fields.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_document_save_api.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_compose.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_compose_oracle.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_fixtures.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_ir.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_measure.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_parser.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_exam_profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_existing_document_format_editing.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fields.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fill_split_run.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fit.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fit_integration.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fit_seal.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fit_seal_placement.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_form_fit_wordbox.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_fuzz_loop.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_fuzz_regressions.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_gap_closure_tools.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_government_report_preset.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_government_table_profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_hp_tab_support.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_hwpxlib_corpus_read.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_id_generator_range.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_id_integrity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_image_object_workflow.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_inline_models.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_integration_hwpx_compatibility.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_integration_roundtrip.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_kordoc_absorption.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_layout_lint.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_layout_preview.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_mail_merge_fit.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_mail_merge_table_compute.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_mail_merge_xlsx.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_markdown_export.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_memo_and_style_editing.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_namespace_handling.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_new_features.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_official_document_style.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_official_lint_gongmun_gate.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_official_lint_tableaware.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_opc_package.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_open_safety_corpus.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_openrate.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_oxml_parsing.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_packaging_license_metadata.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_packaging_py_typed.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_paragraph_keep_together.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_paragraph_section_management.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_pii.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_pii_structural.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_pii_wiring.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_proposal_preset.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_question_split_detector.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_read_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_recover_broken_zip.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_redline_authoring.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_redline_verify.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_repair_repack.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_report_parser.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_report_utils.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_repr_snapshots.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_rhwp_t1_gates.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_rhwp_t2_verification.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_roundtrip_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_save_pipeline.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_save_pipeline_no_bypass.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_section_headers.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_set_paragraph_format_keep.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_skeleton_template_ids.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_split_merged_cell.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_style_profile.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_table_cleanup.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_table_navigation.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_tables_default_border.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_template_analyzer_enrichment.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_template_formfit.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_text_extractor_annotations.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_toc_author.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_toc_fidelity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_validation_severity.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_validator_comment_nodes.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_version_metadata.py +0 -0
- {python_hwpx-2.22.0 → python_hwpx-2.24.0}/tests/test_visual_oracle.py +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-hwpx
|
|
3
|
+
Version: 2.24.0
|
|
4
|
+
Summary: 한글 없이 HWPX 문서를 열고, 편집하고, 생성하고, 검증하는 Python 자동화 라이브러리
|
|
5
|
+
Author: python-hwpx Maintainers
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/airmang/python-hwpx
|
|
8
|
+
Project-URL: Documentation, https://airmang.github.io/python-hwpx/
|
|
9
|
+
Project-URL: Issues, https://github.com/airmang/python-hwpx/issues
|
|
10
|
+
Keywords: hwp,hwpx,hancom,opc,xml,document-automation,validation,template
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Text Processing :: Markup :: XML
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
License-File: NOTICE
|
|
23
|
+
Requires-Dist: lxml<6,>=4.9
|
|
24
|
+
Provides-Extra: visual
|
|
25
|
+
Requires-Dist: pymupdf>=1.24; extra == "visual"
|
|
26
|
+
Requires-Dist: pillow>=10.0; extra == "visual"
|
|
27
|
+
Requires-Dist: numpy>=1.26; extra == "visual"
|
|
28
|
+
Provides-Extra: xlsx
|
|
29
|
+
Requires-Dist: openpyxl>=3.1; extra == "xlsx"
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
32
|
+
Requires-Dist: twine>=4.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest>=7.4; extra == "dev"
|
|
34
|
+
Provides-Extra: test
|
|
35
|
+
Requires-Dist: build>=1.0; extra == "test"
|
|
36
|
+
Requires-Dist: pytest>=7.4; extra == "test"
|
|
37
|
+
Requires-Dist: pytest-cov>=5.0; extra == "test"
|
|
38
|
+
Provides-Extra: typecheck
|
|
39
|
+
Requires-Dist: mypy>=1.10; extra == "typecheck"
|
|
40
|
+
Requires-Dist: pyright>=1.1.390; extra == "typecheck"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<h1 align="center">python-hwpx</h1>
|
|
45
|
+
<p align="center">
|
|
46
|
+
<strong>한글 없이 HWPX 문서를 Python으로 읽고, 편집하고, 생성하고, 검증합니다.</strong>
|
|
47
|
+
</p>
|
|
48
|
+
<p align="center">
|
|
49
|
+
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/v/python-hwpx?color=blue&label=PyPI" alt="PyPI"></a>
|
|
50
|
+
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/pyversions/python-hwpx" alt="Python"></a>
|
|
51
|
+
<a href="https://github.com/airmang/python-hwpx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License"></a>
|
|
52
|
+
<a href="https://airmang.github.io/python-hwpx/"><img src="https://img.shields.io/badge/docs-Sphinx-8CA1AF" alt="Docs"></a>
|
|
53
|
+
</p>
|
|
54
|
+
</p>
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🧩 HWPX Stack (3종)
|
|
59
|
+
|
|
60
|
+
| 계층 | 레포 | 역할 |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| 📦 라이브러리 | **[`python-hwpx`](https://github.com/airmang/python-hwpx)** | 순수 파이썬 HWPX 파싱·편집·생성 코어 |
|
|
63
|
+
| 🔌 MCP 서버 | [`hwpx-mcp-server`](https://github.com/airmang/hwpx-mcp-server) | MCP 클라이언트(Claude Desktop, VS Code 등)에서 HWPX 조작 |
|
|
64
|
+
| 🎯 에이전트 스킬 | [`hwpx-skill`](https://github.com/airmang/hwpx-plugins) | 에이전트가 HWPX를 바로 쓰게 해주는 공식 온보딩 스킬 |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 왜 python-hwpx인가
|
|
69
|
+
|
|
70
|
+
- **한컴오피스 설치 불필요** — HWPX는 ZIP+XML(OWPML/OPC) 구조라, 순수 파이썬으로 Windows·macOS·Linux·CI 어디서나 읽고 씁니다.
|
|
71
|
+
- **읽기부터 생성까지 한 코어** — 텍스트/서식 추출, 문단·표·양식 편집, 새 문서 생성, XSD 스키마 검증을 하나의 API로 처리합니다.
|
|
72
|
+
- **에이전트·자동화 친화** — 같은 스택 위에서 `hwpx-mcp-server`와 공식 스킬이 직결됩니다.
|
|
73
|
+
|
|
74
|
+
## 빠른 시작
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
pip install python-hwpx # Python 3.10+ · lxml ≥ 4.9
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
from hwpx import HwpxDocument
|
|
82
|
+
|
|
83
|
+
# 기존 문서 열기 → 편집 → 저장
|
|
84
|
+
doc = HwpxDocument.open("보고서.hwpx")
|
|
85
|
+
doc.add_paragraph("자동화로 추가한 문단입니다.")
|
|
86
|
+
doc.save_to_path("보고서-수정.hwpx")
|
|
87
|
+
|
|
88
|
+
# 새 문서 만들기
|
|
89
|
+
new = HwpxDocument.new()
|
|
90
|
+
new.add_paragraph("python-hwpx로 만든 새 문서")
|
|
91
|
+
new.save_to_path("새문서.hwpx")
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
> 💡 컨텍스트 매니저도 지원합니다 — `with` 블록을 벗어나면 리소스가 자동 정리됩니다:
|
|
95
|
+
> ```python
|
|
96
|
+
> with HwpxDocument.open("보고서.hwpx") as doc:
|
|
97
|
+
> doc.add_paragraph("자동으로 리소스가 정리됩니다.")
|
|
98
|
+
> doc.save_to_path("결과물.hwpx")
|
|
99
|
+
> ```
|
|
100
|
+
|
|
101
|
+
`open`/`new` → `edit`/`extract` → `save_to_path` 흐름만 잡으면 나머지는 필요할 때 확장하면 됩니다.
|
|
102
|
+
|
|
103
|
+
## 무엇을 하나
|
|
104
|
+
|
|
105
|
+
### 🔍 읽기 · 추출
|
|
106
|
+
- 텍스트/HTML/Markdown 내보내기 — `export_text()` · `export_html()` · `export_markdown()`
|
|
107
|
+
- **풍부한 Markdown** — `export_rich_markdown()`은 인라인 서식(`**굵게**`·`*기울임*`·`~~취소선~~`), 중첩 표(colspan/rowspan 안전), 도형 텍스트, 이미지, 각주/미주, 하이퍼링크, 제목(`#`/`##`) 자동 감지까지 보존
|
|
108
|
+
- **문서 ingest 게이트웨이** — `hwpx.ingest.DocumentIngestor`가 HWPX를 감지해 rich Markdown과 섹션/표 메타데이터로 정규화
|
|
109
|
+
- `TextExtractor` / `ObjectFinder` — 섹션·문단 순회, 태그·속성·XPath로 객체 탐색 (`hp:tab`은 `\t`로 보존, roundtrip 안전)
|
|
110
|
+
|
|
111
|
+
```python
|
|
112
|
+
doc = HwpxDocument.open("보고서.hwpx")
|
|
113
|
+
md = doc.export_rich_markdown(
|
|
114
|
+
image_dir="out/images", # BinData 이미지를 디스크에 추출
|
|
115
|
+
image_ref_prefix="images/", # 마크다운 내  경로 접두
|
|
116
|
+
detect_headings=True, # Ⅰ./1. 패턴 기반 #/## 자동
|
|
117
|
+
)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### ✏️ 편집
|
|
121
|
+
- 문단 추가/삭제/서식, Run 단위 볼드·이탤릭·밑줄·색상
|
|
122
|
+
- 섹션 추가/삭제(`add_section(after=)`·`remove_section()`, manifest 자동 관리)
|
|
123
|
+
- 표 생성·셀 텍스트·병합/분할·중첩 테이블, 이미지 임베드, 머리글/바닥글, 메모(앵커 기반), 각주/미주, 북마크/하이퍼링크, 다단 편집
|
|
124
|
+
- **기존 문서 서식 편집** — 정렬·줄간격·들여쓰기·문단 간격, 용지·여백·방향, 쪽번호, 불릿/번호
|
|
125
|
+
- **스타일 기반 치환** — 색상·밑줄·`charPrIDRef`로 Run을 필터링해 선택 교체(`replace_text_in_runs`·`find_runs_by_style`)
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
# 빨간색 텍스트만 찾아서 치환
|
|
129
|
+
doc.replace_text_in_runs("임시", "확정", text_color="#FF0000")
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### 🖊️ 양식 채우기 (byte-preserving)
|
|
133
|
+
- 누름틀(클릭히어) 필드 조회·서식 보존 채움, 라벨 기반 셀 탐색(`find_cell_by_label`)·경로 채우기(`fill_by_path`)
|
|
134
|
+
- **바이트 보존 구조 편집** — 셀 채우기 / 행·열·표 삭제·삽입 / 열 너비 오토핏 / 폰트 shrink-to-fit 을 문서 재조립 없이 수행해 양식 서식을 그대로 보존. 미수정 영역은 `hwpx.patch`가 section XML 바이트를 splice해 손대지 않음
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
doc = HwpxDocument.open("신청서.hwpx")
|
|
138
|
+
result = doc.fill_by_path({
|
|
139
|
+
"성명 > right": "홍길동",
|
|
140
|
+
"소속 > right": "플랫폼팀",
|
|
141
|
+
})
|
|
142
|
+
doc.save_to_path("신청서-작성완료.hwpx")
|
|
143
|
+
print(result["applied_count"], result["failed_count"])
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### 🏗️ 생성 · 공문서 도구
|
|
147
|
+
- `hwpx.builder` — Section/Heading/Table/Image/Header 조립형 생성 + 하드게이트 저장 리포트
|
|
148
|
+
- 공문서 도구 — `official_lint`(항목기호 위계·"끝." 표시·붙임·날짜 lint), 결재란 프리셋
|
|
149
|
+
- `advanced_generators` — 사진대지(image_grid)·회의 명패·표 기반 조직도
|
|
150
|
+
- `mail_merge` — 템플릿+데이터 N부 대량 생성, 표 합계·평균 계산
|
|
151
|
+
- `doc_diff` — 문단 LCS diff·신구대조표·참조 정합 lint
|
|
152
|
+
- `style_profile` — 참조 문서 프로파일 추출·적용, 템플릿 레지스트리
|
|
153
|
+
|
|
154
|
+
### ✅ 검증 · 안전 · 저수준
|
|
155
|
+
- XSD 스키마 + 패키지 구조 검증 — CLI `hwpx-validate` · `hwpx-validate-package`, `hwpx-analyze-template`
|
|
156
|
+
- `validate_editor_open_safety` — 저장/팩/리페어/빌더 출력 게이트, `openSafety` 증거 반환
|
|
157
|
+
- `hwpx.tools.fuzz`(시드 결정적 시나리오·3중 오라클) · `hwpx.tools.layout_preview`(페이지 박스 근사 HTML/PNG 자기검증) · `opc.security`(XML entity·ZIP 압축 폭탄 가드)
|
|
158
|
+
- `hwpx.oxml` 데이터클래스로 OWPML 스키마 ↔ Python 객체 직접 조작, HWPML 2016→2011 네임스페이스 자동 정규화
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
hwpx-validate-package 보고서.hwpx
|
|
162
|
+
hwpx-analyze-template 보고서.hwpx
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
> 전체 기능·클래스·메서드 목록은 [사용 가이드](docs/usage.md)와 [API 레퍼런스](https://airmang.github.io/python-hwpx/api_reference.html)를 참고하세요.
|
|
166
|
+
|
|
167
|
+
## 대항 라이브러리 비교
|
|
168
|
+
|
|
169
|
+
| | python-hwpx | pyhwpx | pyhwp |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| **대상 포맷** | `.hwpx` (OWPML/OPC) | `.hwpx` | `.hwp` (v5 바이너리) |
|
|
172
|
+
| **한/글 설치** | 불필요 | 필요 (Windows COM) | 불필요 |
|
|
173
|
+
| **크로스 플랫폼** | ✅ Linux / macOS / Windows / CI | ❌ Windows 전용 | ✅ |
|
|
174
|
+
| **편집/생성 API** | ✅ | ✅ (COM) | ❌ 대부분 읽기 |
|
|
175
|
+
| **스키마 검증** | ✅ | ❌ | ❌ |
|
|
176
|
+
| **AI 에이전트 연동 (MCP)** | ✅ `hwpx-mcp-server` | ❌ | ❌ |
|
|
177
|
+
|
|
178
|
+
> HWP(v5 바이너리) 파일은 지원하지 않습니다. 한컴오피스에서 HWPX로 변환 후 사용하세요.
|
|
179
|
+
|
|
180
|
+
## 알려진 제약
|
|
181
|
+
|
|
182
|
+
- `add_shape()` / `add_control()`은 한/글이 요구하는 모든 하위 요소를 생성하지 않습니다. 복잡한 개체 추가 시 한/글에서 열어 검증하세요.
|
|
183
|
+
- 이미지 바이너리 임베드는 지원하지만 `<hp:pic>` 요소의 완전 자동 생성은 제공하지 않습니다.
|
|
184
|
+
- 암호화된 HWPX 파일의 암복호화는 지원하지 않습니다.
|
|
185
|
+
|
|
186
|
+
## 더 보기
|
|
187
|
+
|
|
188
|
+
- **[🚀 빠른 시작](docs/quickstart.md)** · **[📚 사용 가이드](docs/usage.md)** — 첫 파일 열기부터 문단·표·메모·섹션 편집, 텍스트 추출·검증까지
|
|
189
|
+
- **[💡 예제 모음](docs/examples.md)** · [`examples/`](examples/) — `build_release_checklist.py`(메모·스타일 편집 HWPX 생성), `extract_text.py`(CLI 텍스트 추출), `find_objects.py`(OWPML 노드 추적) 등
|
|
190
|
+
- **[📐 스키마 개요](docs/schema-overview.md)** · **[🔧 설치 검증](docs/installation.md)**
|
|
191
|
+
- **[📖 전체 문서 (Sphinx)](https://airmang.github.io/python-hwpx/)** — API 레퍼런스·50+ 실전 패턴·FAQ
|
|
192
|
+
- **[📝 CHANGELOG](CHANGELOG.md)** · **[🤝 CONTRIBUTING](CONTRIBUTING.md)** · **[👥 CONTRIBUTORS](CONTRIBUTORS.md)**
|
|
193
|
+
|
|
194
|
+
## 기여하기
|
|
195
|
+
|
|
196
|
+
버그 리포트, 기능 제안, PR 모두 환영합니다.
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
git clone https://github.com/airmang/python-hwpx.git
|
|
200
|
+
cd python-hwpx
|
|
201
|
+
pip install -e ".[dev]"
|
|
202
|
+
pytest
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## License
|
|
206
|
+
|
|
207
|
+
Apache License 2.0. See LICENSE and NOTICE.
|
|
208
|
+
|
|
209
|
+
## Maintainer
|
|
210
|
+
|
|
211
|
+
Primary maintainer/contact: **고규현** — 광교고등학교 정보·컴퓨터 교사
|
|
212
|
+
|
|
213
|
+
- ✉️ [kokyuhyun@hotmail.com](mailto:kokyuhyun@hotmail.com)
|
|
214
|
+
- 🐙 [@airmang](https://github.com/airmang)
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<h1 align="center">python-hwpx</h1>
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>한글 없이 HWPX 문서를 Python으로 읽고, 편집하고, 생성하고, 검증합니다.</strong>
|
|
5
|
+
</p>
|
|
6
|
+
<p align="center">
|
|
7
|
+
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/v/python-hwpx?color=blue&label=PyPI" alt="PyPI"></a>
|
|
8
|
+
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/pyversions/python-hwpx" alt="Python"></a>
|
|
9
|
+
<a href="https://github.com/airmang/python-hwpx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License"></a>
|
|
10
|
+
<a href="https://airmang.github.io/python-hwpx/"><img src="https://img.shields.io/badge/docs-Sphinx-8CA1AF" alt="Docs"></a>
|
|
11
|
+
</p>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 🧩 HWPX Stack (3종)
|
|
17
|
+
|
|
18
|
+
| 계층 | 레포 | 역할 |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| 📦 라이브러리 | **[`python-hwpx`](https://github.com/airmang/python-hwpx)** | 순수 파이썬 HWPX 파싱·편집·생성 코어 |
|
|
21
|
+
| 🔌 MCP 서버 | [`hwpx-mcp-server`](https://github.com/airmang/hwpx-mcp-server) | MCP 클라이언트(Claude Desktop, VS Code 등)에서 HWPX 조작 |
|
|
22
|
+
| 🎯 에이전트 스킬 | [`hwpx-skill`](https://github.com/airmang/hwpx-plugins) | 에이전트가 HWPX를 바로 쓰게 해주는 공식 온보딩 스킬 |
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 왜 python-hwpx인가
|
|
27
|
+
|
|
28
|
+
- **한컴오피스 설치 불필요** — HWPX는 ZIP+XML(OWPML/OPC) 구조라, 순수 파이썬으로 Windows·macOS·Linux·CI 어디서나 읽고 씁니다.
|
|
29
|
+
- **읽기부터 생성까지 한 코어** — 텍스트/서식 추출, 문단·표·양식 편집, 새 문서 생성, XSD 스키마 검증을 하나의 API로 처리합니다.
|
|
30
|
+
- **에이전트·자동화 친화** — 같은 스택 위에서 `hwpx-mcp-server`와 공식 스킬이 직결됩니다.
|
|
31
|
+
|
|
32
|
+
## 빠른 시작
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install python-hwpx # Python 3.10+ · lxml ≥ 4.9
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from hwpx import HwpxDocument
|
|
40
|
+
|
|
41
|
+
# 기존 문서 열기 → 편집 → 저장
|
|
42
|
+
doc = HwpxDocument.open("보고서.hwpx")
|
|
43
|
+
doc.add_paragraph("자동화로 추가한 문단입니다.")
|
|
44
|
+
doc.save_to_path("보고서-수정.hwpx")
|
|
45
|
+
|
|
46
|
+
# 새 문서 만들기
|
|
47
|
+
new = HwpxDocument.new()
|
|
48
|
+
new.add_paragraph("python-hwpx로 만든 새 문서")
|
|
49
|
+
new.save_to_path("새문서.hwpx")
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
> 💡 컨텍스트 매니저도 지원합니다 — `with` 블록을 벗어나면 리소스가 자동 정리됩니다:
|
|
53
|
+
> ```python
|
|
54
|
+
> with HwpxDocument.open("보고서.hwpx") as doc:
|
|
55
|
+
> doc.add_paragraph("자동으로 리소스가 정리됩니다.")
|
|
56
|
+
> doc.save_to_path("결과물.hwpx")
|
|
57
|
+
> ```
|
|
58
|
+
|
|
59
|
+
`open`/`new` → `edit`/`extract` → `save_to_path` 흐름만 잡으면 나머지는 필요할 때 확장하면 됩니다.
|
|
60
|
+
|
|
61
|
+
## 무엇을 하나
|
|
62
|
+
|
|
63
|
+
### 🔍 읽기 · 추출
|
|
64
|
+
- 텍스트/HTML/Markdown 내보내기 — `export_text()` · `export_html()` · `export_markdown()`
|
|
65
|
+
- **풍부한 Markdown** — `export_rich_markdown()`은 인라인 서식(`**굵게**`·`*기울임*`·`~~취소선~~`), 중첩 표(colspan/rowspan 안전), 도형 텍스트, 이미지, 각주/미주, 하이퍼링크, 제목(`#`/`##`) 자동 감지까지 보존
|
|
66
|
+
- **문서 ingest 게이트웨이** — `hwpx.ingest.DocumentIngestor`가 HWPX를 감지해 rich Markdown과 섹션/표 메타데이터로 정규화
|
|
67
|
+
- `TextExtractor` / `ObjectFinder` — 섹션·문단 순회, 태그·속성·XPath로 객체 탐색 (`hp:tab`은 `\t`로 보존, roundtrip 안전)
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
doc = HwpxDocument.open("보고서.hwpx")
|
|
71
|
+
md = doc.export_rich_markdown(
|
|
72
|
+
image_dir="out/images", # BinData 이미지를 디스크에 추출
|
|
73
|
+
image_ref_prefix="images/", # 마크다운 내  경로 접두
|
|
74
|
+
detect_headings=True, # Ⅰ./1. 패턴 기반 #/## 자동
|
|
75
|
+
)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### ✏️ 편집
|
|
79
|
+
- 문단 추가/삭제/서식, Run 단위 볼드·이탤릭·밑줄·색상
|
|
80
|
+
- 섹션 추가/삭제(`add_section(after=)`·`remove_section()`, manifest 자동 관리)
|
|
81
|
+
- 표 생성·셀 텍스트·병합/분할·중첩 테이블, 이미지 임베드, 머리글/바닥글, 메모(앵커 기반), 각주/미주, 북마크/하이퍼링크, 다단 편집
|
|
82
|
+
- **기존 문서 서식 편집** — 정렬·줄간격·들여쓰기·문단 간격, 용지·여백·방향, 쪽번호, 불릿/번호
|
|
83
|
+
- **스타일 기반 치환** — 색상·밑줄·`charPrIDRef`로 Run을 필터링해 선택 교체(`replace_text_in_runs`·`find_runs_by_style`)
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
# 빨간색 텍스트만 찾아서 치환
|
|
87
|
+
doc.replace_text_in_runs("임시", "확정", text_color="#FF0000")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 🖊️ 양식 채우기 (byte-preserving)
|
|
91
|
+
- 누름틀(클릭히어) 필드 조회·서식 보존 채움, 라벨 기반 셀 탐색(`find_cell_by_label`)·경로 채우기(`fill_by_path`)
|
|
92
|
+
- **바이트 보존 구조 편집** — 셀 채우기 / 행·열·표 삭제·삽입 / 열 너비 오토핏 / 폰트 shrink-to-fit 을 문서 재조립 없이 수행해 양식 서식을 그대로 보존. 미수정 영역은 `hwpx.patch`가 section XML 바이트를 splice해 손대지 않음
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
doc = HwpxDocument.open("신청서.hwpx")
|
|
96
|
+
result = doc.fill_by_path({
|
|
97
|
+
"성명 > right": "홍길동",
|
|
98
|
+
"소속 > right": "플랫폼팀",
|
|
99
|
+
})
|
|
100
|
+
doc.save_to_path("신청서-작성완료.hwpx")
|
|
101
|
+
print(result["applied_count"], result["failed_count"])
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 🏗️ 생성 · 공문서 도구
|
|
105
|
+
- `hwpx.builder` — Section/Heading/Table/Image/Header 조립형 생성 + 하드게이트 저장 리포트
|
|
106
|
+
- 공문서 도구 — `official_lint`(항목기호 위계·"끝." 표시·붙임·날짜 lint), 결재란 프리셋
|
|
107
|
+
- `advanced_generators` — 사진대지(image_grid)·회의 명패·표 기반 조직도
|
|
108
|
+
- `mail_merge` — 템플릿+데이터 N부 대량 생성, 표 합계·평균 계산
|
|
109
|
+
- `doc_diff` — 문단 LCS diff·신구대조표·참조 정합 lint
|
|
110
|
+
- `style_profile` — 참조 문서 프로파일 추출·적용, 템플릿 레지스트리
|
|
111
|
+
|
|
112
|
+
### ✅ 검증 · 안전 · 저수준
|
|
113
|
+
- XSD 스키마 + 패키지 구조 검증 — CLI `hwpx-validate` · `hwpx-validate-package`, `hwpx-analyze-template`
|
|
114
|
+
- `validate_editor_open_safety` — 저장/팩/리페어/빌더 출력 게이트, `openSafety` 증거 반환
|
|
115
|
+
- `hwpx.tools.fuzz`(시드 결정적 시나리오·3중 오라클) · `hwpx.tools.layout_preview`(페이지 박스 근사 HTML/PNG 자기검증) · `opc.security`(XML entity·ZIP 압축 폭탄 가드)
|
|
116
|
+
- `hwpx.oxml` 데이터클래스로 OWPML 스키마 ↔ Python 객체 직접 조작, HWPML 2016→2011 네임스페이스 자동 정규화
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
hwpx-validate-package 보고서.hwpx
|
|
120
|
+
hwpx-analyze-template 보고서.hwpx
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
> 전체 기능·클래스·메서드 목록은 [사용 가이드](docs/usage.md)와 [API 레퍼런스](https://airmang.github.io/python-hwpx/api_reference.html)를 참고하세요.
|
|
124
|
+
|
|
125
|
+
## 대항 라이브러리 비교
|
|
126
|
+
|
|
127
|
+
| | python-hwpx | pyhwpx | pyhwp |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| **대상 포맷** | `.hwpx` (OWPML/OPC) | `.hwpx` | `.hwp` (v5 바이너리) |
|
|
130
|
+
| **한/글 설치** | 불필요 | 필요 (Windows COM) | 불필요 |
|
|
131
|
+
| **크로스 플랫폼** | ✅ Linux / macOS / Windows / CI | ❌ Windows 전용 | ✅ |
|
|
132
|
+
| **편집/생성 API** | ✅ | ✅ (COM) | ❌ 대부분 읽기 |
|
|
133
|
+
| **스키마 검증** | ✅ | ❌ | ❌ |
|
|
134
|
+
| **AI 에이전트 연동 (MCP)** | ✅ `hwpx-mcp-server` | ❌ | ❌ |
|
|
135
|
+
|
|
136
|
+
> HWP(v5 바이너리) 파일은 지원하지 않습니다. 한컴오피스에서 HWPX로 변환 후 사용하세요.
|
|
137
|
+
|
|
138
|
+
## 알려진 제약
|
|
139
|
+
|
|
140
|
+
- `add_shape()` / `add_control()`은 한/글이 요구하는 모든 하위 요소를 생성하지 않습니다. 복잡한 개체 추가 시 한/글에서 열어 검증하세요.
|
|
141
|
+
- 이미지 바이너리 임베드는 지원하지만 `<hp:pic>` 요소의 완전 자동 생성은 제공하지 않습니다.
|
|
142
|
+
- 암호화된 HWPX 파일의 암복호화는 지원하지 않습니다.
|
|
143
|
+
|
|
144
|
+
## 더 보기
|
|
145
|
+
|
|
146
|
+
- **[🚀 빠른 시작](docs/quickstart.md)** · **[📚 사용 가이드](docs/usage.md)** — 첫 파일 열기부터 문단·표·메모·섹션 편집, 텍스트 추출·검증까지
|
|
147
|
+
- **[💡 예제 모음](docs/examples.md)** · [`examples/`](examples/) — `build_release_checklist.py`(메모·스타일 편집 HWPX 생성), `extract_text.py`(CLI 텍스트 추출), `find_objects.py`(OWPML 노드 추적) 등
|
|
148
|
+
- **[📐 스키마 개요](docs/schema-overview.md)** · **[🔧 설치 검증](docs/installation.md)**
|
|
149
|
+
- **[📖 전체 문서 (Sphinx)](https://airmang.github.io/python-hwpx/)** — API 레퍼런스·50+ 실전 패턴·FAQ
|
|
150
|
+
- **[📝 CHANGELOG](CHANGELOG.md)** · **[🤝 CONTRIBUTING](CONTRIBUTING.md)** · **[👥 CONTRIBUTORS](CONTRIBUTORS.md)**
|
|
151
|
+
|
|
152
|
+
## 기여하기
|
|
153
|
+
|
|
154
|
+
버그 리포트, 기능 제안, PR 모두 환영합니다.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
git clone https://github.com/airmang/python-hwpx.git
|
|
158
|
+
cd python-hwpx
|
|
159
|
+
pip install -e ".[dev]"
|
|
160
|
+
pytest
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## License
|
|
164
|
+
|
|
165
|
+
Apache License 2.0. See LICENSE and NOTICE.
|
|
166
|
+
|
|
167
|
+
## Maintainer
|
|
168
|
+
|
|
169
|
+
Primary maintainer/contact: **고규현** — 광교고등학교 정보·컴퓨터 교사
|
|
170
|
+
|
|
171
|
+
- ✉️ [kokyuhyun@hotmail.com](mailto:kokyuhyun@hotmail.com)
|
|
172
|
+
- 🐙 [@airmang](https://github.com/airmang)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-hwpx"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.24.0"
|
|
8
8
|
description = "한글 없이 HWPX 문서를 열고, 편집하고, 생성하고, 검증하는 Python 자동화 라이브러리"
|
|
9
9
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -75,6 +75,16 @@ from .tools.layout_preview import (
|
|
|
75
75
|
PreviewPage,
|
|
76
76
|
render_layout_preview,
|
|
77
77
|
)
|
|
78
|
+
from .ingest import (
|
|
79
|
+
ConversionAttempt,
|
|
80
|
+
DocumentConverter,
|
|
81
|
+
DocumentIngestError,
|
|
82
|
+
DocumentIngestResult,
|
|
83
|
+
DocumentIngestor,
|
|
84
|
+
DocumentSourceInfo,
|
|
85
|
+
HwpxMarkdownConverter,
|
|
86
|
+
UnsupportedDocumentFormat,
|
|
87
|
+
)
|
|
78
88
|
from .patch import (
|
|
79
89
|
BytePreservingPatchResult,
|
|
80
90
|
ParagraphTextPatch,
|
|
@@ -123,8 +133,14 @@ __all__ = [
|
|
|
123
133
|
"DEFAULT_STYLE_PRESET",
|
|
124
134
|
"DOCUMENT_PLAN_SCHEMA_VERSION",
|
|
125
135
|
"get_document_plan_schema",
|
|
136
|
+
"ConversionAttempt",
|
|
126
137
|
"DocumentBlock",
|
|
138
|
+
"DocumentConverter",
|
|
139
|
+
"DocumentIngestError",
|
|
140
|
+
"DocumentIngestResult",
|
|
141
|
+
"DocumentIngestor",
|
|
127
142
|
"DocumentPlan",
|
|
143
|
+
"DocumentSourceInfo",
|
|
128
144
|
"DocumentStylePreset",
|
|
129
145
|
"EditorOpenSafetyReport",
|
|
130
146
|
"ParagraphInfo",
|
|
@@ -141,6 +157,7 @@ __all__ = [
|
|
|
141
157
|
"TEMPLATE_FORMFIT_PLAN_SCHEMA_VERSION",
|
|
142
158
|
"TextExtractor",
|
|
143
159
|
"FoundElement",
|
|
160
|
+
"HwpxMarkdownConverter",
|
|
144
161
|
"ObjectFinder",
|
|
145
162
|
"OFFICIAL_DOCUMENT_STYLE_REPORT_VERSION",
|
|
146
163
|
"DOC_DIFF_REPORT_VERSION",
|
|
@@ -150,6 +167,7 @@ __all__ = [
|
|
|
150
167
|
"STYLE_PROFILE_SCHEMA_VERSION",
|
|
151
168
|
"TEMPLATE_REGISTRY_SCHEMA_VERSION",
|
|
152
169
|
"TABLE_COMPUTE_REPORT_VERSION",
|
|
170
|
+
"UnsupportedDocumentFormat",
|
|
153
171
|
"apply_style_profile_to_plan",
|
|
154
172
|
"build_comparison_table_plan",
|
|
155
173
|
"build_image_grid",
|