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")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hwpx_agent-0.0.3.tar.gz.
File metadata
- Download URL: hwpx_agent-0.0.3.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3abeb9678cecb4dca1f54857756db02d0df80d3dbf2e88214a9c353b7d4d0f5d
|
|
| MD5 |
b3e3b6a4243ecd9301452057e5d23f9e
|
|
| BLAKE2b-256 |
39422c75c2deea7a33b9163d5e059f215f502344b963c8abbf680b346c2a7b85
|
Provenance
The following attestation bundles were made for hwpx_agent-0.0.3.tar.gz:
Publisher:
workflow.yml on Seungkyu-Han/hwpx-agent-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwpx_agent-0.0.3.tar.gz -
Subject digest:
3abeb9678cecb4dca1f54857756db02d0df80d3dbf2e88214a9c353b7d4d0f5d - Sigstore transparency entry: 2658788407
- Sigstore integration time:
-
Permalink:
Seungkyu-Han/hwpx-agent-python@c6fd145b1f0748c7c8273eb0f0d98627e476e5f7 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/Seungkyu-Han
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@c6fd145b1f0748c7c8273eb0f0d98627e476e5f7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hwpx_agent-0.0.3-py3-none-any.whl.
File metadata
- Download URL: hwpx_agent-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1064fe381856d1f597763618630f6755af20ac00b9d1ea948d37023eb5da8836
|
|
| MD5 |
1a70506e605e8535404b556e9b851d28
|
|
| BLAKE2b-256 |
e5a7252dec84d67b4fbe8d09553c04e25a775d52d3a65c1d5e40e3256bb0b922
|
Provenance
The following attestation bundles were made for hwpx_agent-0.0.3-py3-none-any.whl:
Publisher:
workflow.yml on Seungkyu-Han/hwpx-agent-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwpx_agent-0.0.3-py3-none-any.whl -
Subject digest:
1064fe381856d1f597763618630f6755af20ac00b9d1ea948d37023eb5da8836 - Sigstore transparency entry: 2658788506
- Sigstore integration time:
-
Permalink:
Seungkyu-Han/hwpx-agent-python@c6fd145b1f0748c7c8273eb0f0d98627e476e5f7 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/Seungkyu-Han
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@c6fd145b1f0748c7c8273eb0f0d98627e476e5f7 -
Trigger Event:
release
-
Statement type: