hwpx-agent
프롬프트를 통해 hwpx을 파일을 생성하고 수정하는 agent
시작하기
pip install hwpx-agent
import asyncio
import os
from hwpx import HwpxDocument
from hwpx_agent.hwpx_agent import HwpxAgent
os.environ["OPENAI_API_KEY"] = "sk-??"
async def main():
agent = HwpxAgent(
model="gpt-4.1-mini-2025-04-14",
)
hwpx_document: HwpxDocument = await agent.generate_template(
prompt="생명과학 논문을 작성하고 싶은데 그거에 대한 초안을 작성해주고, 테이블로 이해하기 쉽도록 작성해줘"
)
hwpx_document.save_to_path("life_science.hwpx")
if __name__ == "__main__":
asyncio.run(main())
결과물 예시
hwpx 파일 생성하기 (generate_template)
프롬프트를 바탕으로 새로운 HWPX 문서 초안을 생성합니다.
시그니처 (Signature)
from hwpx import HwpxDocument
async def generate_template(
prompt: str,
) -> HwpxDocument:
...
파라미터 (Parameters)
| 파라미터 | 타입 | 기본값 | 설명 |
|---|---|---|---|
prompt |
str |
필수 | 생성할 HWPX 문서의 내용, 구조, 구성 요소(표, 제목 등)에 대한 자연어 요청 사항 |
리턴 타입 (Return)
HwpxDocument생성된 HWPX 문서 객체를 반환합니다. 반환된 객체의.save_to_path("파일명.hwpx")메서드를 호출하여 파일로 저장할 수 있습니다.
사용 예시 (Example)
from hwpx import HwpxDocument
hwpx_document: HwpxDocument = await agent.generate_template(
prompt="생명과학 논문 초안 및 요약 표 작성"
)
hwpx_document.save_to_path("output.hwpx")
Metadata
Release files for hwpx-agent 0.0.5
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 |
|---|---|---|---|---|
| hwpx_agent-0.0.5.tar.gz | 9.8 kB | With provenance | Details for hwpx_agent-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hwpx_agent-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for hwpx_agent-0.0.5-py3-none-any.whl |
Total release size: 25.0 kB
Release files / hwpx_agent-0.0.5.tar.gz
| Download URL | hwpx_agent-0.0.5.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ab08e4738b1ca795125aaf0a4b248b31ec7851ede595143f8fc8361ce66d8a4
|
|
BLAKE2b-256 checksum How to use checksums |
b77dd7ee75a8b3d64122252cee54ec95b767fd0fdea08aeb2031e6c9374d8cea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logRelease files / hwpx_agent-0.0.5-py3-none-any.whl
| Download URL | hwpx_agent-0.0.5-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6e5f772c39484371d0c2220eee1e42e3bdfcc0f3a8e8753b9537ed058180fe0
|
|
BLAKE2b-256 checksum How to use checksums |
052194bb8745e6f5ceae4ec075e1e3e0e94fa35ef42f7cd883ef458413b9c845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logSecurity for hwpx-agent 0.0.5
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hwpx_agent-0.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 3, 2026.
Transparency logA 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.