🐍 pyhwpx: 파이썬-아래아한글 자동화 모듈
pyhwpx는 pywin32 패키지를 활용하여 아래아한글(HWP) 문서를 자동화할 수 있는 Python 모듈입니다.
현재 Hwp 클래스가 포함되어 있으며, HwpAutomation에서 제공하는 모든 저수준 API 메서드의 사용법, 파라미터 및 예시 코드를 추가하는 작업이 진행 중입니다.
👉 한글 문서 업무 자동화에 많이 사용되는 패턴들을 추가하며, 보다 실용적인 오픈소스 라이브러리로 발전시킬 계획입니다.
💡 유용한 단축 메서드도 지속적으로 업데이트할 예정입니다.
📌 주요 기능
- 아래아한글 문서 조작: 텍스트 삽입, 저장, 문서 편집 자동화
- HwpAutomation API 래핑:
pywin32를 사용하여 Hwp 명령 실행 - 직관적인 인스턴스: 기존
win32com방식보다 쉬운 사용법 제공 - 단축 기능 추가 예정: 문서 서식 설정, 표 삽입 등 기능 확장 가능
🚀 설치 방법
pyhwpx는 **PyPI(Python Package Index)**에 등록되어 있으며, 아래 명령에서 간편하게 설치할 수 있습니다.
pip install pyhwpx
⚠️ 주의: pyhwpx는 Windows 환경에서 작동하며, 한/글이 설치되어 있어야 합니다.
💡pywin32가 필요하며,pip install pywin32로 별도로 설치할 수도 있습니다. ✨ Python 3.9 이상이 필요합니다.
설치가 완료되면 Python에서 import하여 사용할 수 있습니다.
💡 사용법 예제
from pyhwpx import Hwp
hwp = Hwp() # 보안모듈 자동 등록
# 텍스트 삽입
hwp.insert_text("Hello world!")
# win32com 방식으로도 실행 가능
pset = hwp.HParameterSet.HInsertText
pset.Text = "Hello world!"
hwp.HAction.Execute("InsertText", pset.HSet)
# 문서 저장
hwp.save_as("./helloworld.hwp")
# 한/글 종료
hwp.quit()
📋 API Reference와 User Guide 는 공식문서에서 확인 가능합니다.
Metadata
Release files for pyhwpx 1.7.2
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 |
|---|---|---|---|---|
| pyhwpx-1.7.2.tar.gz | 373.1 kB | Without provenance | Details for pyhwpx-1.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhwpx-1.7.2-py3-none-any.whl | Python 3 | none | any | Details for pyhwpx-1.7.2-py3-none-any.whl |
Total release size: 748.5 kB
Release files / pyhwpx-1.7.2.tar.gz
| Download URL | pyhwpx-1.7.2.tar.gz |
|---|---|
| Size | 373.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d54c2ac94d435d66c29669787647a2d6fbed0be0a831f6e5e3a45dcf25d8978
|
|
BLAKE2b-256 checksum How to use checksums |
a83e84b7a3f9a2b1b83bb36a554ef54f7747712d2558895225efb92b2a843dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / pyhwpx-1.7.2-py3-none-any.whl
| Download URL | pyhwpx-1.7.2-py3-none-any.whl |
|---|---|
| Size | 375.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c79d6aa67baae9cd82fd7ae11217e985fa2fe832c61a09a2715aae854a0d1349
|
|
BLAKE2b-256 checksum How to use checksums |
7fa12ad64eb57ba7a3970f72ea656c4cd6f4c8fcc40291bd749964ce07a46a31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Security for pyhwpx 1.7.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.