Python으로 HWP/HWPX 파일 생성·파싱·변환. 한컴오피스 문서를 Markdown으로, Markdown을 HWP/HWPX로.
Project description
HWP Converter AI
Python으로 HWP/HWPX 파일을 생성·파싱·변환합니다. 한컴오피스 없이 HWP 문서를 프로그래밍으로 처리할 수 있습니다.
설치
pip install hwp-converter-ai
3줄이면 HWP 생성
from hwp_converter_ai import HwpWriter
writer = HwpWriter()
writer.from_markdown("# 업무 보고\n\n내용입니다.", "report.hwp")
주요 기능
Markdown → HWP (한글 97~2024 호환)
from hwp_converter_ai import HwpWriter
writer = HwpWriter()
writer.from_markdown("""
# 업무 보고서
일반 텍스트 **볼드 강조** 그리고 *이탤릭*.
| 항목 | 상태 |
|------|------|
| 변환 | 완료 |
| 교정 | 진행중 |
""", "report.hwp")
Markdown → HWPX (한글 2014+ 호환)
from hwp_converter_ai import HwpxGenerator
gen = HwpxGenerator()
gen.from_markdown("# 제목\n\n본문 **볼드**", output_path="report.hwpx")
HWP → Markdown
from hwp_converter_ai import HwpParser
ir = HwpParser.parse("document.hwp")
print(ir.to_markdown())
HWPX → Markdown
from hwp_converter_ai import HwpxParser
ir = HwpxParser().parse("document.hwpx")
print(ir.to_markdown())
지원 기능
| 기능 | HWP | HWPX |
|---|---|---|
| 텍스트/문단 | ✅ | ✅ |
| 제목 (H1~H3) | ✅ | ✅ |
| 볼드/이탤릭 | ✅ | ✅ |
| 표 (테두리 포함) | ✅ | ✅ |
| 이미지 추출 | ✅ | ✅ |
| 리스트 감지 | ✅ | ✅ |
라이선스
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hwp_converter_ai-0.1.0.tar.gz
(29.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hwp_converter_ai-0.1.0.tar.gz.
File metadata
- Download URL: hwp_converter_ai-0.1.0.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d36807027a6c33eafb3bf9d30314e6e4e0c6cee3422731baa40fa4d6422db411
|
|
| MD5 |
1d77f1707d8f764e0964eb2d60665c93
|
|
| BLAKE2b-256 |
55922c8957e77e36c66875562a05bee3fd93c981176aef1506eadef9e4af85da
|
File details
Details for the file hwp_converter_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hwp_converter_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dffcef14906c0bd0a275d8075b4aad9ae0370198e823960a1e37d0755b56f79
|
|
| MD5 |
751d06b0c830302b58577c773b6ff552
|
|
| BLAKE2b-256 |
6ce587db242c3a8cbe09b41f076f92da50f30f0ea226a996b5ff5cecd5da8f76
|