Serious KDocument Converter(skdconv)
한국 공문서(HWP, HWPX, HWPML, XLS, XLSX, DOCX)를 마크다운으로 변환하는 파서 라이브러리입니다.
지원 포맷
| 포맷 | 설명 |
|---|---|
| HWP 3.x | 한글 구버전 |
| HWP 5.x | 한글 바이너리 |
| HWPX | 한글 XML 기반 |
| HWPML | 한글 XML 내보내기 |
| XLSX | Excel 2007+ |
| XLS | Excel 97-2003 |
| DOCX | Word 2007+ |
설치
pip install skdconv
의존성: lxml, olefile, pycryptodome
사용법
라이브러리
import skdconv
with open("문서.hwpx", "rb") as f:
data = f.read()
result = skdconv.parse(data)
if result.success:
print(result.markdown)
print(result.page_count)
else:
print(result.error, result.code)
ParseOptions
from skdconv import ParseOptions
opts = ParseOptions(
pages="1-3", # 페이지/섹션 범위
remove_header_footer=True, # 머리글/바닥글 제거
)
result = skdconv.parse(data, opts)
ParseSuccess 필드
| 필드 | 타입 | 설명 |
|---|---|---|
file_type |
str |
감지된 포맷 |
markdown |
str |
변환된 마크다운 |
blocks |
list[IRBlock] |
문서 블록 트리 |
page_count |
int | None |
페이지 수 |
metadata |
DocumentMetadata | None |
문서 메타데이터 |
outline |
list[OutlineItem] | None |
목차 |
warnings |
list[ParseWarning] | None |
파싱 경고 |
images |
list[ExtractedImage] | None |
추출된 이미지 |
CLI
# 마크다운으로 출력
skdconv 문서.hwpx
# 파일로 저장
skdconv 문서.hwpx -o output.md
# 여러 파일을 디렉토리에 저장
skdconv *.hwpx -d output/
# JSON 형식 출력
skdconv 문서.xlsx --format json
# 페이지 범위 지정
skdconv 문서.hwp -p 1-5
# 머리글/바닥글 제거
skdconv 문서.hwpx --no-header-footer
라이선스
MIT
Metadata
Release files for skdconv 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skdconv-1.0.5.tar.gz | 116.6 kB | With provenance | Details for skdconv-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skdconv-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for skdconv-1.0.5-py3-none-any.whl |
Total release size: 222.8 kB
Release files / skdconv-1.0.5.tar.gz
| Download URL | skdconv-1.0.5.tar.gz |
|---|---|
| Size | 116.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0109e9f4c937763a1b37cde469744980a0a691810051a36213f2ed572a8620c0
|
|
BLAKE2b-256 checksum How to use checksums |
8b7e4bbbed9faa8b4d351ea403da3fb0d0431ee904fa282590f482923a411cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.
Transparency logRelease files / skdconv-1.0.5-py3-none-any.whl
| Download URL | skdconv-1.0.5-py3-none-any.whl |
|---|---|
| Size | 106.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
33c9153ed1b0f9dd470fd12e5610c0f8edaed622e5e1a9637b27ce129426ebf3
|
|
BLAKE2b-256 checksum How to use checksums |
f03befea4418475dc36fb9ffa7282ac26887b09912f666fe4021877fc89c6b16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.
Transparency logSecurity for skdconv 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for skdconv-1.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.