pyhwpx is a Python module designed for automating Hancom HWP (Hangul Word Processor) documents. It leverages the `pywin32` package to interact with the HWP Automation API, providing a more intuitive and Pythonic interface compared to direct `win32com` usage. The library supports various document manipulation tasks such as text insertion, saving, and editing, and aims to add more shortcut methods for common HWP automation patterns. It is actively developed, with a current version of 1.7.2, and requires Python 3.9+ on a Windows operating system with Hancom HWP installed.
pip install pyhwpxVerified import paths — ran on the pinned version, not inferred.
Initializes an HWP automation object, inserts text, saves the document, and then closes HWP. Ensure Hancom HWP is installed on your Windows machine.
Ensure you are running on a Windows OS with Hancom HWP installed.
Refer to the documentation or source code for the correct casing of specific methods. Prioritize PascalCase for direct HWP API calls.
Update your code to align with the new module structure and API changes introduced in version 1.0.0 and later.
Explicitly set `SeveralWords=1` if you rely on the old behavior, and adjust `FindString` usage as needed.