Skip to main content

Convert HWP (Hangul Word Processor) files to HWPX format

Project description

hwp2hwpx

HWP(한글 워드프로세서) 파일을 HWPX(OWPML) 형식으로 변환하는 Python 패키지.

neolord0/hwp2hwpx Java 라이브러리를 번들하여 pip install 한 줄로 설치, 바로 사용할 수 있게 만든 래퍼입니다.

요구사항

  • Python 3.8+
  • Java Runtime Environment (JRE) 8+

설치

pip install hwp2hwpx

Java가 없으면:

# Windows
winget install EclipseAdoptium.Temurin.21.JDK

# macOS
brew install temurin

# Linux (Debian/Ubuntu)
apt install default-jre

사용법

CLI

# 단일 파일
hwp2hwpx document.hwp

# 여러 파일
hwp2hwpx *.hwp

# 출력 디렉토리 지정
hwp2hwpx document.hwp -o output/

# 폴더 내 전체 변환 (재귀)
hwp2hwpx ./documents/ -r

Python API

from hwp2hwpx import convert, convert_batch

# 단일 파일
output_path = convert("document.hwp")
output_path = convert("document.hwp", "output.hwpx")

# 배치
results = convert_batch(["a.hwp", "b.hwp"], output_dir="output/")
for input_path, output_path, error in results:
    if error:
        print(f"FAIL: {input_path}: {error}")
    else:
        print(f"OK: {output_path}")

한글 경로 지원

Windows에서 한글(Korean) 파일 경로를 자동으로 처리합니다. 내부적으로 임시 ASCII 경로를 경유하여 JVM 인코딩 문제를 우회합니다.

라이선스

Apache License 2.0

원본 Java 라이브러리:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hwp2hwpx-1.0.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hwp2hwpx-1.0.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file hwp2hwpx-1.0.0.tar.gz.

File metadata

  • Download URL: hwp2hwpx-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for hwp2hwpx-1.0.0.tar.gz
Algorithm Hash digest
SHA256 65650731b29fae9208856f6def9f4e52be455f498001adbd84e155b30f5a3458
MD5 645bdf1ee236563ec1a96e8eb282e704
BLAKE2b-256 026f84bcd7e77d3d1f5b280c6f130ced082a99f1db47ba84600e8fac19a2aa7c

See more details on using hashes here.

File details

Details for the file hwp2hwpx-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hwp2hwpx-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for hwp2hwpx-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7fe0bd43ee0f5e13bdb73d8bf51b6fd3a42422221da418e59062abe3ce631f74
MD5 80dc6617800ab840720b031e8f634165
BLAKE2b-256 5aed6d0c46a5f2703bf9a3fc65e5b83fc10baa980a2e2079841487f8b4252502

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page