Skip to main content

Serious KDocument Converter(skdconv)

Publish to PyPI PyPI version Python versions License

한국 공문서(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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skdconv 1.0.4
File Size Uploaded Provenance Actions
skdconv-1.0.4.tar.gz 116.6 kB With provenance Details for skdconv-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skdconv 1.0.4
File Interpreter ABI Platform Actions
skdconv-1.0.4-py3-none-any.whl Python 3 none any Details for skdconv-1.0.4-py3-none-any.whl

Total release size: 222.9 kB

Release files / skdconv-1.0.4.tar.gz

Download URL skdconv-1.0.4.tar.gz
Size 116.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c9b73266a54c9beff83e5da8e52261b6b2a3b5d0dd0de88a21382ddbee855193
BLAKE2b-256 checksum
How to use checksums
d9a5e3a98e4461d92d610cccd6f1fcee591e5252c19d28fee7d0eae8c8f3bb90
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 log

Release files / skdconv-1.0.4-py3-none-any.whl

Download URL skdconv-1.0.4-py3-none-any.whl
Size 106.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a9bb1ea36c5191af693acbba15ce450d32de21aacc55a55a138adf401f937bd
BLAKE2b-256 checksum
How to use checksums
a8de7e55045d80b88297c5264ece2239596683bef0983e1a5b4c3c1d0a844eec
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 log

Security for skdconv 1.0.4

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.

Select from 2 files

Attestation for skdconv-1.0.4.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page