Skip to main content

Python HWP 파일 파서 및 텍스트 추출 라이브러리

Project description

helper_hwp

Python으로 작성된 HWP (한글 문서) 파일 파서 및 텍스트 추출 라이브러리입니다.

특징

  • HWP 5.x 포맷 지원 (CFB 기반)
  • 텍스트 추출 및 마크다운 변환
  • 표, 페이지 단위 파싱 지원
  • 단위 변환 유틸리티 제공 (HWPUNIT ↔ cm/inch/px)

설치

pip install helper-hwp

또는 소스에서 설치:

git clone https://github.com/c0z0c/helper_hwp.git
cd helper_hwp
pip install -e .

빠른 시작

텍스트 추출

from helper_hwp import hwp_to_txt

# HWP 파일에서 텍스트 추출
text = hwp_to_txt('example.hwp')
print(text)

마크다운 변환

from helper_hwp import hwp_to_markdown

# HWP 파일을 마크다운으로 변환
markdown = hwp_to_markdown('example.hwp')
print(markdown)

문서 객체 사용

from helper_hwp import open_hwp

# HWP 문서 열기
doc = open_hwp('example.hwp')

# 문단 단위 순회
for paragraph in doc.iter_paragraphs():
    print(paragraph.text)

# 표 단위 순회
for table in doc.iter_tables():
    print(table.rows)

사용 예제

더 많은 예제는 examples 디렉토리를 참조하세요:

문서

요구사항

  • Python 3.8 이상
  • olefile >= 0.46
  • pycryptodome >= 3.15.0

라이센스

이 프로젝트는 Apache License 2.0 라이센스 하에 배포됩니다.

누구나 자유롭게 사용하고 수정할 수 있으며, 사용 시 출처를 표기해 주세요.

출처: https://github.com/c0z0c/helper_hwp

자세한 내용은 LICENSE 파일을 참조하세요.

기여

프로젝트에 대한 기여를 환영합니다! 기여 방법은 개발자 문서를 참조하세요.

변경 이력

변경 이력은 CHANGELOG.md를 참조하세요.

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

helper_hwp-0.5.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

helper_hwp-0.5.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file helper_hwp-0.5.0.tar.gz.

File metadata

  • Download URL: helper_hwp-0.5.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for helper_hwp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d8ccd84347c1cc8c43570a10627b3b7dd00f3b6f4faefdbc67c48a2fa51850d7
MD5 f19fee7a8a825453135529a69875904a
BLAKE2b-256 8c0c4205e5bf81421118c9b87249fe39d31a1580d148fa08617775832384205c

See more details on using hashes here.

File details

Details for the file helper_hwp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: helper_hwp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for helper_hwp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aebc032b73ce44eb6655ef81b4e9fc2a876d07c6a3245adf19b120105a07b66d
MD5 82798ed84798be099f725ccb6bac1efb
BLAKE2b-256 e125fb2c6c8e18e94f1f192437f68a443d96e1b4cc46a1f7c6d47139bf5f6cde

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