pyhwp
hwp file format parser
What it is and what it does
pyhwp is a parser and processor for HWP (Hancom Word Processor) Document Format v5 files, the native format used by Korean word processing software. It allows you to read HWP files, analyze their internal structure, and extract embedded streams and content. The package includes experimental features for converting HWP documents to OpenDocument (.odt) or plain text (.txt) formats, making it useful for document analysis, format conversion, and content extraction workflows.
The package depends on cryptography, lxml, and olefile for its core functionality. It is actively maintained and supports multiple Python implementations (CPython, Jython, PyPy) across Python 2.7 and 3.5–3.8. However, it is distributed as a source tarball and remains in beta status, requiring the --pre flag during installation.
Use it for:
- Extract text and metadata from HWP documents for indexing or archival purposes
- Convert HWP files to OpenDocument format for compatibility with other office suites
- Analyze the internal structure and streams of HWP files for forensic or research purposes
- Batch process Korean word processor documents in automated workflows
- Migrate legacy HWP documents to open formats for long-term preservation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and extracts data from HWP Document Format v5 files, with experimental support for conversion to OpenDocument (.odt) or plain text (.txt) formats.
Yes, with conditions. Install if you need to parse or extract data from HWP files and can tolerate beta-status software and high install friction. The package is actively maintained, has no known vulnerabilities, and fills a niche need for HWP document handling. However, be aware that the last release was in 2020, the experimental conversion features may not be production-ready, and AGPLv3+ licensing imposes copyleft obligations on derivative works.
Install
pyhwp on PyPI
pip
pip install pyhwpuv
uv add pyhwppoetry
poetry add pyhwpInstalling pyhwp
Before you install
High install friction due to source distribution and no runtime dependencies listed in metadata. Package is actively maintained with recent commits, but last release was in 2020; requires --pre flag for installation due to beta versioning.
License in practice
Licensed under GNU Affero General Public License v3 or later (AGPLv3+). This is a copyleft license requiring that any modifications or derivative works distributed must also be released under AGPLv3+, and may impose network use restrictions depending on deployment context.
Quickstart
pip install --pre pyhwp
import pyhwp
# Parse HWP file and extract streams
with open('document.hwp', 'rb') as f:
doc = pyhwp.parse(f)
Requires cryptography, lxml, and olefile as runtime dependencies; source distribution requires build tools; Python 2.7 or 3.5+ support declared but package is in beta.
Verify before relying
- Whether the package actually works reliably with Python 3.8+ given the last release was 2020 and Python has evolved significantly
- Current state of the experimental ODT and plain text conversion features and their stability
- Whether cryptography, lxml, and olefile are correctly declared as install-time dependencies despite not appearing in the metadata
Package facts
| License | GNU Affero General Public License v3 or later (AGPLv3+) (agpl) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | actively maintained — 2,267 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 329,765/month — #7,543 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyhwp-0.1b15.tar.gz
Keywords: hwp
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
python-hwpxReads, edits, and creates HWPX documents…
permissive · top 15,000 on PyPI
pyhwpxAutomates HWP (아래아한글) document creation and…
unclear · top 15,000 on PyPI
pyexcel-ezodfCreate, open, and modify OpenDocument Format…
permissive · top 15,000 on PyPI
odfdoodfdo is a Python library for creating,…
permissive · top 15,000 on PyPI
pymupdfproPyMuPDF Pro extends PyMuPDF with commercial…
unclear · top 15,000 on PyPI
docxCreates, reads, and writes Microsoft Office…
unclear · top 15,000 on PyPI
textractExtracts text from documents in multiple…
permissive · top 15,000 on PyPI
olefileolefile parses, reads, and writes Microsoft…
permissive · top 1,000 on PyPI
ezodfezodf creates, opens, and modifies OpenDocument…
permissive · top 15,000 on PyPI