skillfed

pyhwp

hwp file format parser

pyhwp v0.1b15 329.8K downloads/30d#7,543 on PyPI302
AGPL license GNU Affero General Public License v3 or later (AGPLv3+) Active released

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 pyhwp

uv

uv add pyhwp

poetry

poetry add pyhwp

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: JythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text ProcessingTopic :: Text Processing :: Filters

Tags

hwp file parserhwp document extractionkorean word processor formathwp to odt conversionhwp document analysishancom hwp readerhwp stream extraction
document-parsingkorean-office-formatformat-conversion

More Python Modules packages